Home›RAG Tutorial
Free course
RAG Tutorial
Learn Retrieval-Augmented Generation from zero, one small and easy step at a time. Every idea is explained in plain words, then shown in real Python code with real search results and real model output.
Course contents
Every lesson has its own page with the explanation, code you can copy, the real output, screenshots from the video, and a link that jumps straight to that moment in the video.
1. What Is RAG
- What Is RAG0:00
- Why Models Need RAG1:11
- How RAG Works2:14
2. First Steps
- Setting Up3:20
- Your First Model Call4:17
- RAG by Hand5:06
3. A First RAG App
4. Limits and Choices
5. Loading Documents
- Documents and Metadata12:36
- Loading Files13:35
- Loading PDFs14:29
6. Cleaning and Chunking
- Cleaning Text15:34
- Why Chunk16:42
- Fixed-Size Chunks17:39
7. Smarter Splitting
8. Chunking Practice
9. Embeddings
- What Are Embeddings24:47
- Your First Embedding25:50
- Cosine Similarity26:52
10. Vector Search
- Searching by Meaning27:57
- Gemini Embeddings28:59
- Queries and Documents29:56
11. Vector Stores
- Vector Stores30:59
- LangChain's Vector Store31:56
- FAISS32:57
12. Working with Indexes
- Saving an Index34:05
- Metadata Filters35:07
- Top-k and Scores36:12
13. Scaling Search
- Approximate Search37:14
- Updating the Index38:25
- Vector Search Quiz39:24
14. The RAG Prompt
- The RAG Prompt40:40
- Grounding41:41
- Saying I Don't Know42:39
15. Better Answers
- Citing Sources43:33
- Structured Answers44:26
- Streaming the Answer45:22
16. Chains and Context
- A RAG Chain46:15
- Formatting Context47:07
- The Context Budget47:59
17. Order and Practice
- Order Matters48:50
- Practice: Ask the Help Centre49:47
- Generation Quiz50:44
18. Better Retrieval
- Why Retrieval Fails51:56
- Keyword Search52:56
- When Keywords Win54:00
19. Hybrid Search and Reranking
- Hybrid Search54:50
- Reciprocal Rank Fusion55:41
- Reranking56:37
20. Better Questions
- Cross-Encoders57:31
- Query Rewriting58:36
- Multi-Query59:36
21. Smarter Queries
- HyDE1:00:32
- Query Decomposition1:01:36
- Parent Documents1:02:30
22. Context and Variety
- Chunk Headers1:03:30
- MMR1:04:39
- Filters from the Question1:05:40
23. Routing and Practice
- Routing1:06:27
- Practice: Fix a Bad Retriever1:07:27
- Retrieval Quiz1:08:23
24. Evaluating Retrieval
- Why Evaluate RAG1:09:37
- A Test Set1:10:27
- Hit Rate1:11:14
25. Retrieval and Grounding Metrics
- MRR1:12:03
- Precision and Recall at k1:13:00
- Faithfulness1:13:56
26. Judging Answers
- Answer Relevance1:14:52
- LLM as a Judge1:15:50
- Comparing Settings1:16:46
27. Errors and Regressions
- Error Analysis1:17:41
- Regression Tests1:18:43
- Evaluation Quiz1:19:44
28. Conversations and Agents
- Conversational RAG1:21:00
- Condensing the Question1:21:56
- Agentic RAG1:22:48
29. Self-Correcting RAG
- Corrective RAG1:23:44
- Checking the Answer1:24:40
- RAG with LangGraph1:25:37
30. Tables, Databases and Long Documents
- Tables and Numbers1:26:36
- Two Sources1:27:34
- Long Documents1:28:25
31. Graphs and Images
- GraphRAG1:29:22
- Multimodal RAG1:30:32
- Advanced Quiz1:31:34
32. Speed, Cost and Freshness
- Caching1:32:50
- Cost and Speed1:33:54
- Keeping the Index Fresh1:34:50
33. Trust and Safety
- Duplicates and Old Versions1:35:45
- Access Control1:36:36
- Prompt Injection in Documents1:37:30
34. Serving RAG
- Personal Data1:38:27
- Serving RAG1:39:22
- Streaming over HTTP1:40:15
35. Monitoring and Feedback
- Monitoring1:41:01
- Feedback1:42:00
- Production Quiz1:42:52
36. Project: Plan, Ingestion and Retrieval
- Project: The Plan1:44:02
- Project: Ingestion1:44:59
- Project: Retrieval1:45:56
37. Project: Answers, Chat and Evaluation
- Project: Answers1:46:45
- Project: Conversation1:47:43
- Project: Evaluation1:48:31
38. Project: API and Review
- Project: The API1:49:21
- Project: Final Run1:50:13
- Project Review1:51:11
39. Cheat Sheets and Mistakes
- Cheat Sheet: The Pipeline1:51:59
- Cheat Sheet: Better Retrieval1:53:05
- Common Mistakes1:53:51
40. Choices, Interviews and Next Steps
- Choosing a Vector Database1:54:29
- RAG Interview Questions1:55:35
- What to Learn Next1:56:54