概念 · 基于 AIF-C01
RAG architecture patterns
Naive, advanced, graph, agentic and multimodal RAG, and when each one fits.
本课尚未翻译,暂以英文显示。
你在AI Practitioner中已学过
- RAG retrieves relevant passages, adds them to the prompt, and generates a grounded answer.
- It uses embeddings and a vector store, so the model needs no retraining.
- Amazon Bedrock Knowledge Bases is the managed way to do RAG on AWS.
Naive RAG
- Adds
- One vector search
- Pick when
- Simple lookups
Advanced RAG
- Adds
- Rewrite, hybrid search, rerank
- Pick when
- Answers miss or are noisy
GraphRAG
- Adds
- Entity graph in Neptune Analytics
- Pick when
- Facts linked across documents
Agentic RAG
- Adds
- An agent plans searches
- Pick when
- Multi-step, many sources
Multimodal RAG
- Adds
- Images, audio, video
- Pick when
- Content is not only text
| Pattern | Adds | Pick when |
|---|---|---|
| Naive RAG | One vector search | Simple lookups |
| Advanced RAG | Rewrite, hybrid search, rerank | Answers miss or are noisy |
| GraphRAG | Entity graph in Neptune Analytics | Facts linked across documents |
| Agentic RAG | An agent plans searches | Multi-step, many sources |
| Multimodal RAG | Images, audio, video | Content is not only text |
1 / 2
Naive RAG
- Adds
- One vector search
- Pick when
- Simple lookups
Advanced RAG
- Adds
- Rewrite, hybrid search, rerank
- Pick when
- Answers miss or are noisy
GraphRAG
- Adds
- Entity graph in Neptune Analytics
- Pick when
- Facts linked across documents
| Pattern | Adds | Pick when |
|---|---|---|
| Naive RAG | One vector search | Simple lookups |
| Advanced RAG | Rewrite, hybrid search, rerank | Answers miss or are noisy |
| GraphRAG | Entity graph in Neptune Analytics | Facts linked across documents |
2 / 2
Agentic RAG
- Adds
- An agent plans searches
- Pick when
- Multi-step, many sources
Multimodal RAG
- Adds
- Images, audio, video
- Pick when
- Content is not only text
| Pattern | Adds | Pick when |
|---|---|---|
| Agentic RAG | An agent plans searches | Multi-step, many sources |
| Multimodal RAG | Images, audio, video | Content is not only text |
是什么
Naive RAG is the basic loop: embed the question, fetch the top matching chunks from one vector store, and generate. It is quick to build and fine for simple lookups. When answers miss, move to advanced RAG, which adds steps around the loop: rewrite or split the question, search with hybrid search (meaning plus keywords), filter by metadata, and rerank the results before generation.
是什么
Some questions need more. GraphRAG links entities and their relations in a graph, so the system can connect facts across documents. Amazon Bedrock Knowledge Bases supports GraphRAG with Amazon Neptune Analytics. Agentic RAG lets an agent decide whether to search, which source to use and whether to search again, which suits multi-step questions over several sources. Multimodal RAG indexes images, audio or video as well as text, so a question can retrieve a chart or a clip.
是什么
Managed or custom? Knowledge Bases handle ingestion, chunking, embedding, storage and retrieval, which makes them the right default. Build a custom pipeline when you need a control the managed service lacks, such as a special chunker, a retriever you already run, or a store it does not support. RAG and fine-tuning solve different problems: RAG supplies facts at question time, fine-tuning changes behavior.
要记住
- Naive RAG: embed, retrieve the top chunks, generate.
- Advanced RAG adds query rewriting, hybrid search, metadata filters and reranking.
- GraphRAG: an entity and relation graph, for questions that link facts across documents.
- Agentic RAG: an agent plans the searches and picks the sources.
- Multimodal RAG: images, audio and video are searchable too.
要记住
- Managed Knowledge Bases first. A custom pipeline only for a control you cannot get.
考试中
- “Answers must connect facts spread across many documents” points to GraphRAG.
- “The model must choose which source to search, and search again if needed” points to agentic RAG.
- “Exact product codes are missed by embedding search” points to hybrid search.
- “Add current facts without retraining” points to RAG, not fine-tuning.
本任务内容 · 2.1
- Choosing a foundation model in Bedrock
- Custom, managed, pre-trained or foundation model
- Selecting ML models and algorithms
JumpStart and AutoML
- Fine-tuning strategies for foundation models
- RAG architecture patterns
- Training time, cost and performance trade-offs
- FM performance, latency and cost trade-offs
Textract
Rekognition
Comprehend
Transcribe
Translate, Polly, Lex
Personalize and health AI