Skill 2.1.5

Select Retrieval Augmented Generation (RAG) architecture patterns based on use case requirements

Key Concepts

Basic RAG embeds the question, retrieves top-k chunks and generates an answer. Hybrid search adds keyword matching for codes and names; reranking reorders candidates; query reformulation splits complex questions; hierarchical retrieval returns parent context.

GraphRAG with Neptune Analytics follows relationships between entities. Structured data retrieval turns questions into SQL over Redshift. Agentic RAG lets an agent decide when and where to retrieve.