AI Hints
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.

📚 120 lessons▶ 1:56:54+ of video💻 106 code examples🖼 138 screenshots
The complete RAG course, free on YouTubeWatch on YouTube ↗

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.

5. Loading Documents

  1. Documents and Metadata12:36
  2. Loading Files13:35
  3. Loading PDFs14:29

6. Cleaning and Chunking

  1. Cleaning Text15:34
  2. Why Chunk16:42
  3. Fixed-Size Chunks17:39

11. Vector Stores

  1. Vector Stores30:59
  2. LangChain's Vector Store31:56
  3. FAISS32:57

12. Working with Indexes

  1. Saving an Index34:05
  2. Metadata Filters35:07
  3. Top-k and Scores36:12

14. The RAG Prompt

  1. The RAG Prompt40:40
  2. Grounding41:41
  3. Saying I Don't Know42:39

16. Chains and Context

  1. A RAG Chain46:15
  2. Formatting Context47:07
  3. The Context Budget47:59

18. Better Retrieval

  1. Why Retrieval Fails51:56
  2. Keyword Search52:56
  3. When Keywords Win54:00

19. Hybrid Search and Reranking

  1. Hybrid Search54:50
  2. Reciprocal Rank Fusion55:41
  3. Reranking56:37

20. Better Questions

  1. Cross-Encoders57:31
  2. Query Rewriting58:36
  3. Multi-Query59:36

21. Smarter Queries

  1. HyDE1:00:32
  2. Query Decomposition1:01:36
  3. Parent Documents1:02:30

22. Context and Variety

  1. Chunk Headers1:03:30
  2. MMR1:04:39
  3. Filters from the Question1:05:40

23. Routing and Practice

  1. Routing1:06:27
  2. Practice: Fix a Bad Retriever1:07:27
  3. Retrieval Quiz1:08:23

24. Evaluating Retrieval

  1. Why Evaluate RAG1:09:37
  2. A Test Set1:10:27
  3. Hit Rate1:11:14

25. Retrieval and Grounding Metrics

  1. MRR1:12:03
  2. Precision and Recall at k1:13:00
  3. Faithfulness1:13:56

26. Judging Answers

  1. Answer Relevance1:14:52
  2. LLM as a Judge1:15:50
  3. Comparing Settings1:16:46

27. Errors and Regressions

  1. Error Analysis1:17:41
  2. Regression Tests1:18:43
  3. Evaluation Quiz1:19:44

28. Conversations and Agents

  1. Conversational RAG1:21:00
  2. Condensing the Question1:21:56
  3. Agentic RAG1:22:48

29. Self-Correcting RAG

  1. Corrective RAG1:23:44
  2. Checking the Answer1:24:40
  3. RAG with LangGraph1:25:37

30. Tables, Databases and Long Documents

  1. Tables and Numbers1:26:36
  2. Two Sources1:27:34
  3. Long Documents1:28:25

31. Graphs and Images

  1. GraphRAG1:29:22
  2. Multimodal RAG1:30:32
  3. Advanced Quiz1:31:34

32. Speed, Cost and Freshness

  1. Caching1:32:50
  2. Cost and Speed1:33:54
  3. Keeping the Index Fresh1:34:50

34. Serving RAG

  1. Personal Data1:38:27
  2. Serving RAG1:39:22
  3. Streaming over HTTP1:40:15

35. Monitoring and Feedback

  1. Monitoring1:41:01
  2. Feedback1:42:00
  3. Production Quiz1:42:52

36. Project: Plan, Ingestion and Retrieval

  1. Project: The Plan1:44:02
  2. Project: Ingestion1:44:59
  3. Project: Retrieval1:45:56

37. Project: Answers, Chat and Evaluation

  1. Project: Answers1:46:45
  2. Project: Conversation1:47:43
  3. Project: Evaluation1:48:31

38. Project: API and Review

  1. Project: The API1:49:21
  2. Project: Final Run1:50:13
  3. Project Review1:51:11

39. Cheat Sheets and Mistakes

  1. Cheat Sheet: The Pipeline1:51:59
  2. Cheat Sheet: Better Retrieval1:53:05
  3. Common Mistakes1:53:51

40. Choices, Interviews and Next Steps

  1. Choosing a Vector Database1:54:29
  2. RAG Interview Questions1:55:35
  3. What to Learn Next1:56:54