- Newest
- Most votes
- Most comments
To address your need for larger document excerpts in Amazon Kendra, you have a couple of options:
-
Use the Retrieve API: The Retrieve API is specifically designed for use cases requiring longer passages, such as working with large language models (LLMs) or implementing retrieval augmented generation (RAG) systems. This API can return longer semantically relevant passages, up to 200 token words and up to 100 semantically relevant passages. This is in contrast to the Query API, which by default only returns up to 100 token word excerpts.
-
Request a limit increase: If you believe your use case justifies it, you can contact AWS Support to request an increase in the document excerpt size limit. However, it's important to note that AWS Kendra's default limits are typically set for performance and reliability reasons, so increasing these limits might not always be feasible or advisable.
-
Consider refining your query: If you're consistently getting very large result sets, you might want to review your query strategy. Consider using more specific queries or implementing filters to return a more focused set of results. This can help in getting more relevant excerpts within the current limits.
-
Review your indexing configuration: Ensure that your documents are being properly indexed so that the most relevant portions are being captured and returned in search results.
Remember, while it's natural to want longer excerpts, the current limits are often sufficient for most use cases. If you find you need more context, you can always retrieve the full document based on the excerpt provided.
If you decide to pursue a limit increase, be prepared to explain your specific use case to AWS Support, as they will need to understand why the current limits are insufficient for your needs.
Sources
Retrieve - Amazon Kendra API Reference
Kendra search limitation | AWS re:Post
Query - Amazon Kendra API Reference
Relevant content
- asked 2 years ago
- asked 8 years ago
- asked 3 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago