Lesson 05.10 · Phase 05 · Retrieval & Agentic RAG
Evaluating retrieval quality
Every lesson in this phase claimed one retriever beats another. Prove it: labelled queries, standard metrics, results per query kind, and a check of whether your test set is big enough to tell the difference.
Learning objectives
- Build a labelled query set with graded relevance judgements (qrels), split by query kind.
- Implement hit@1, recall@k, precision@k, MRR and nDCG@k, and say what each one rewards.
- Compare retrievers overall and per query kind, and read the per-kind breakdown before the average.
- Use a paired bootstrap to tell whether a difference is real or within the noise of a small test set.
Lessons 1 to 9 each changed how retrieval works and showed it helped on a handful of hand-picked questions. That is how you learn a technique. It's not how you decide to ship one. Hand-picked questions favour the technique being demonstrated, and five questions can't distinguish a real improvement from luck.
Loading the full lesson…