RAG
RAG (Retrieval-Augmented Generation) is a mechanism that retrieves information from external knowledge sources and uses it to enhance AI responses. It is configured through the Grounding settings of an assistant.
Supported Grounding Types
| Type | Description |
|---|---|
| Kendra Retrieval | Uses Amazon Kendra as a search engine |
| Bedrock Knowledge Base Retrieval | Uses Bedrock Knowledge Base |
Processing Flow
- The user sends a message.
- If Search Query Generation (SQG) is configured, an optimized search query is generated from the user input.
- Related information is retrieved from the configured grounding source.
- Search results are embedded in the RAG prompt template and passed to the AI.
- The AI generates a response referencing the search results.