Retrieval concepts and RAG architectures
Notebook· 06.01· 60–90 min· Lesson 46 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Explain why a model needs retrieval for private or recent facts, and what "grounded" means.
- Name the two phases of RAG: indexing (load → split → embed → store) and retrieval + generation.
- Build a whole (tiny) RAG pipeline offline in a dozen lines with
mastery.rag. - Compare 2-step, agentic and hybrid RAG on latency, cost, control and flexibility.
- Find the current LangChain RAG documentation (the old
langchain/ragURL now redirects).
Before you start
Module 02 (tools and agents), Lesson 03.04 (embeddings, briefly).
