Artificial Intelligence
RAG (Retrieval-Augmented Generation)
Appears inAIF-C01Gen AI Leader
Technique that combines retrieving relevant information from an external source (vector database, documents) with generation from a language model, enabling answers grounded in up-to-date or private data without retraining the model.
On the exam
A central topic of AIF-C01 Domain 3 and GENAI-L Domain 3. On AWS it's implemented with Amazon Bedrock Knowledge Bases (managed RAG). Typical question: answer questions about internal company documents without fine-tuning → RAG.
Related terms
- EmbeddingsHigh-dimensional numeric representations that capture the semantic meaning of text, images, or other data. Elements with similar meaning end up close to each other in vector space, enabling similarity search.
- Vector databaseDatabase optimized for storing embeddings and performing similarity (nearest neighbor) searches efficiently at scale. On AWS, services like OpenSearch Service, Aurora (with pgvector), Neptune, and RDS for PostgreSQL can act as a vector store.
- Amazon Bedrock Knowledge BasesBedrock feature that implements RAG in a managed way: it ingests documents, converts them into embeddings, indexes them in a vector database, and automatically connects them to a foundation model to enrich its responses with your own context.
- GroundingThe practice of connecting a generative model's responses to verifiable data sources (the company's own data, third-party data, or the real world via web search) to reduce hallucinations and increase the factual accuracy of responses.