RAG Retrieval Evaluation
Measure whether retrieval returns the documents a question needs, separately from answer generation.
2 objectives 6 steps about 105 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Define precision@k and recall@k from labeled data.
- Compare two retrieval configurations against a test set.
Lesson plan
6 steps, about 105 min · 5 of 5 lessons available so far
- Why Retrieval Is Measured Separately Concept · 10 min
- Precision@k and Recall@k by Hand and in Code Worked example · 20 min
- Building a Labeled Query Set Lab · 20 min
- Lab: Compare Two Retrieval Configurations Lab · 25 min
- Rank-Aware Metrics and the Limits of Labels Concept · 15 min
- Check: Compute and Compare Retrieval Metrics Knowledge check · 10 questions
Practise it
Write 10 representative queries with their expected source document IDs, run your retriever under two configurations, compute mean precision@k and recall@k for each, and analyse at least two missed documents.
Build it from scratch
Practice builds that exercise this skill by re-creating a real technology.
- Build your own Search EngineIntermediate · 8–16 h
- Build your own RAG PipelineIntermediate · 8–16 h
References
Hard prerequisites
Unlocks
On these roadmaps
Progress and evidence for this skill are shared across all of them.