Lesson 4: Knowledge Systems and Advanced RAG
Learning Outcome
By the end of this lesson, you will be able to:
- Distinguish between 2-step RAG, agentic RAG, and hybrid RAG
- Implement query rewriting and retrieval grading
- Design citation strategies and source trust
- Choose the right retrieval architecture for your use case
Prerequisites
- Chunking and retrieval primitives
- Lesson 3: Context engineering
Concept: RAG as a Family of Architectures
"RAG" is not one thing—it encompasses several patterns:
When to Use Each
| Pattern | Best For | Complexity |
|---|---|---|
| 2-Step RAG | Simple Q&A, document Q&A | Low |
| Agentic RAG | Multi-hop questions, dynamic retrieval | High |
| Hybrid RAG | High recall requirements | Medium |