D2: RAG Architecture Patterns
AWS Certified Machine Learning Engineer – Associate exam practice questions · 10 flashcards
Question
Basic (naive) RAG?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 RAG Architecture Patterns practice questions and answers
- Basic (naive) RAG?Embed query → vector search → stuff top chunks into prompt → generate.
- Hybrid search RAG?Combine keyword (BM25) and semantic search to improve recall for exact terms.
- Reranking RAG?Retrieve many candidates then rerank with a reranker model for precision.
- Query rewriting/decomposition?Reformulate or split complex queries into sub-queries before retrieval.
- GraphRAG?Use knowledge graphs (Neptune Analytics) for multi-hop relationship questions.
- Agentic RAG?An agent decides when/where to retrieve, iterates and uses tools.
- Structured data RAG?Natural language to SQL over warehouses (Bedrock Knowledge Bases structured retrieval with Redshift).
- Multimodal RAG?Retrieve images/diagrams along with text.
- When RAG over fine-tuning?Frequently changing knowledge, need for citations, access control by document.
- Scenario: answers fail on exact product codes. Pattern fix?Hybrid search.