Learning Path: A Sequenced Curriculum for RAG Mastery

June 7, 2026 · View on GitHub

A sequenced curriculum for mastering RAG — from fundamentals to research-frontier architectures.


Three Learning Tracks

Choose your track based on your available time and interview target.

TrackTime BudgetRecommended ForWhere to Start
Breadth-First1–2 weeksPhone screens, quick prep, need to know all 12 types at high level00_overview/rag_taxonomy.md, then each file in 02_interview_bank/ Q1–Q3 only
Depth-First4 weeksTechnical interviews, system design rounds, deep expertise on 3–4 types01_concepts/ in full, then 02_interview_bank/ 01–04 in depth
Production-First3 weeksSenior/staff interviews, operations focus, observability and failure modes00_overview/system_design_principles.md, cost analysis (Q11 across all files), evaluation/observability

Week-by-Week Study Plan (4-Week Depth-First)

Week 1: Foundations

Goal: Understand the building blocks all RAG systems rest on.

DayTopicReadQuestions to Answer
1–2Embeddings01_concepts/embeddings.md fullCan you explain cosine similarity? What embedding model fails on domain-specific text?
2–3Chunking Strategies01_concepts/chunking_strategies.md fullWhy does chunk size matter? When do you use parent-child chunking?
4Vector Databases01_concepts/vector_databases.md fullWhat's the difference between HNSW and IVF? When do you choose Qdrant vs. Pinecone?
5Practice Q&AQ1–Q3 from 02_interview_bank/01-naive-rag.mdAnswer cold without notes. Practice explaining to a peer.

Code Exercise: Build a minimal retrieval pipeline: embed a 100-document corpus, store in FAISS, retrieve top-5 for 10 test queries, measure recall. Write down chunk size and embedding model choice and why.


Week 2: Core Architectures

Goal: Master Naive, Advanced, Modular, and Corrective RAG. Understand the retrieval problem deeply.

DayTopicReadQuestions to Answer
1–2Retrieval Strategies01_concepts/retrieval_strategies.md fullWhat's RRF? When does hybrid retrieval beat dense? What is HyDE?
2–3Reranking01_concepts/reranking.md fullWhy use a cross-encoder after dense retrieval? What's the latency cost?
4–5Naive + Advanced RAG Q&AQ1–Q10 from 02_interview_bank/01-naive-rag.md and 02-advanced-rag.mdAnswer all 20 questions cold. These are your baseline
5Corrective RAG02_interview_bank/06-corrective-rag.md Q1–Q5How does validation change retrieval? When does correction help?

Code Exercise: Implement RRF hybrid retrieval (BM25 + dense). Benchmark hybrid vs. pure dense on 10 test queries. Document the recall gain.


Week 3: Advanced & Specialized Architectures

Goal: Understand when to use Agentic, Self-RAG, Graph, Structured, Multimodal, and Long-Context RAG.

DayTopicReadQuestions to Answer
1–2Evaluation Metrics01_concepts/evaluation_metrics.md fullWhat does NDCG@5 mean? What is RAGAS faithfulness?
2–3Agentic RAG02_interview_bank/04-agentic-rag.md Q1–Q8How does an agent decide to re-retrieve? What fails with agents?
3–4Self-RAG + Graph RAG02_interview_bank/07-self-rag.md Q1–Q5, 05-graph-rag.md Q1–Q5Why does Self-RAG require fine-tuning? What does knowledge graph retrieval gain you?
4–5Structured + Multimodal RAG02_interview_bank/12-structured-rag.md Q1–Q5, 09-multimodal-rag.md Q1–Q5When do you route to SQL vs. text? How do you embed images?
5Long-Context RAG02_interview_bank/10-long-context-rag.md Q1–Q5What breaks with context windows >10K tokens? When is long-context better than retrieval?

Code Exercise: Write a retrieval strategy selector: given a query, decide whether to use dense, hybrid, graph-based, or SQL-based retrieval. Justify each choice.


Week 4: System Design & Security

Goal: Integrate knowledge into production-grade systems. Understand cost, observability, and security.

DayTopicReadQuestions to Answer
1–2System Design Principles00_overview/system_design_principles.md fullWhat are the five properties of a production RAG? How do you design for cost?
2Security & Prompt Injection01_concepts/prompt_injection_risks.md fullWhat is indirect prompt injection? How do you mitigate it?
3–4Cost & Observability Q&AQ11 from each of 02_interview_bank/01–05.md (5 cost questions), Q12 from the same files (5 security questions)Can you optimize cost while maintaining recall? Can you detect a prompt injection attack?
4–5Adaptive RAG02_interview_bank/11-adaptive-rag.md Q1–Q10When does adaptive routing beat static retrieval? How do you implement routing?
5Integration & PracticeRe-read 00_overview/rag_taxonomy.md and system_design_principles.mdCan you draw the canonical system design answer from memory?

Code Exercise: Design a RAG system end-to-end: define the 5 properties, draw the pipeline, compute cost for 10K QPS, instrument for observability, mitigate prompt injection. Write as if you're explaining to a senior engineer.


Concept Dependency Graph

This DAG shows prerequisites for each concept. Follow the arrows: if you want to understand X, make sure you understand everything pointing to it first.

Embeddings  ──┐
             ├──► Vector Databases ──┐
Chunking ────┤                       ├──► Naive RAG ──┐
             └──────────────────────►│               │
                                     ├──► Advanced RAG ──┐
Retrieval Strategies ───────────────►│                   │
                                     └──► Modular RAG ───┤
Reranking ──────────────────────────►│                   │
                                     └──► Corrective RAG │
Evaluation Metrics ──────────────────┤                   │
                                     ├──► Agentic RAG ───┤
System Design Principles ────────────┤                   ├──► System Design Round
                                     ├──► Self-RAG ──────┤
Prompt Injection Risks ──────────────┤                   │
                                     ├──► Graph RAG ─────┤
                                     │                   │
                                     ├──► Structured RAG ┤
                                     │                   │
                                     └──► Long-Context RAG┘

Note: No circular dependencies exist. This is a strict partial ordering — you can start at the top and work downward.


Depth Calibration by Interview Type

Different interview types test different depth. Use this to calibrate your study.

Interview TypeExpected DepthWhich Files to Focus OnTime to SpendExample Question
Phone Screen (30–45 min)Breadth (taxonomy)00_overview/rag_taxonomy.md, Q1–Q3 from each of 02_interview_bank/01–03.md3–5 hours"What's the difference between Naive and Advanced RAG?"
Technical Round (60 min, coding)Medium (mechanism + code)01_concepts/ (all), Q1–Q8 from 02_interview_bank/01–04.md1 week"Implement hybrid retrieval with RRF"
System Design (60 min)Deep (architecture + trade-offs)00_overview/system_design_principles.md, Q9–Q12 from all 02_interview_bank/ files2 weeks"Design a RAG system for document search. Requirements: 10M docs, <300ms P95 latency."
ML Systems Design (90 min)Deep + research (evaluation + feedback loops)01_concepts/evaluation_metrics.md, 02_interview_bank/07-self-rag.md, all Q11–Q122–3 weeks"How would you build a self-improving RAG system?"
Take-Home Project (5–8 hours)Deep + implementationAll 01_concepts/, all 02_interview_bank/Intensive week"Build a RAG system for a domain-specific corpus. Measure and optimize retrieval quality."

Self-Assessment Questions

Answer these without notes. If you get stuck, find the answer in the files and re-read that section. These questions span multiple files — forcing cross-topic synthesis.

  1. Embeddings + Chunking: Your system retrieves documents but misses relevant ones. How do you diagnose whether it's an embedding problem or a chunking problem?

  2. Vector DBs + Retrieval: You're evaluating Qdrant vs. FAISS. What's the trade-off? Which would you choose for a 100M vector corpus and why?

  3. Retrieval + Reranking: Your dense retrieval has 40% recall@5, but after reranking, it's 42%. Is reranking worth the latency cost?

  4. Evaluation + Agentic: You measure NDCG@5 = 0.7 and faithfulness = 0.85. What does this tell you about your Agentic RAG system?

  5. Chunking + Reranking: Parent-child chunking vs. fixed-size chunking with reranking — which scales better and why?

  6. Embeddings + Graph RAG: Your system uses both text embeddings and a knowledge graph. How do you choose which retrieval source to use for a given query?

  7. System Design + Cost: At 10K QPS with OpenAI embedding and GPT-4, what's your primary cost center? How do you optimize?

  8. Adaptive RAG + Evaluation: You build an Adaptive RAG that routes queries. How do you measure whether the router improves over Naive RAG?

  9. Reranking + Prompt Injection: A reranker is supposed to filter out irrelevant documents. Can a reranker be tricked by prompt injection attacks?

  10. Retrieval Strategies + Evaluation: You're choosing between BM25 and dense retrieval for a medical question-answering system. How do you decide? What metrics inform the choice?

  11. Long-Context + System Design: With Claude's 200K context window, should you use retrieval or long-context RAG? What's the trade-off?

  12. Self-RAG + Observability: Your Self-RAG system fine-tunes a model to improve. How do you monitor whether the fine-tuned model is actually better in production?

  13. Prompt Injection + Agentic RAG: An agent retrieves a document that contains prompt injection. What happens? How do you prevent it?

  14. Structured RAG + Evaluation: You route some queries to SQL and some to text retrieval. How do you evaluate the system as a whole (one metric across both paths)?

  15. Graph RAG + Chunking: In Graph RAG, how do you chunk documents when building the knowledge graph? Does chunking strategy affect graph quality?


Resources Beyond This Repo

These resources fill gaps this repo intentionally leaves. Use them for context.

ResourceTypeWhat It CoversWhy Use It
LlamaIndex DocumentationCode + TutorialsProduction patterns for ingestion, retrieval, evaluationThis repo is concept-heavy; LlamaIndex is implementation-heavy. Use together.
Langchain Handbook (DeepLearning.AI)CourseEnd-to-end RAG systems with codeComplements the Q&A format with narrative tutorials.
BEIR Benchmark LeaderboardBenchmark DatasetRetrieval evaluation across 18 datasetsTest your understanding of retrieval metrics against real benchmarks.
OpenAI Prompt Injection DocsOfficial GuidancePrompt injection patterns and defensesOfficial best practice; more current than papers.
Banerjee et al., "RAGAS: Automated Evaluation of Retrieval Augmented Generation" (2023)PaperRAGAS framework in-depthDeep dive if you want to implement custom evaluation.

If you're time-constrained, follow this priority order:

  1. Must-know (4 hours): 01_concepts/embeddings.md + 01_concepts/chunking_strategies.md
  2. Essential (6 hours): 01_concepts/vector_databases.md + 01_concepts/retrieval_strategies.md
  3. High-value (4 hours): 02_interview_bank/01-naive-rag.md Q1–Q5 + 02-advanced-rag.md Q1–Q5
  4. Differentiator (4 hours): 00_overview/system_design_principles.md
  5. Advanced (6 hours): 01_concepts/evaluation_metrics.md + 01_concepts/reranking.md
  6. Everything else: Research-frontier (Agentic, Self-RAG, Graph) and specialized (Multimodal, Long-Context) — nice-to-have for senior rounds