Measuring retrieval
Chunk size, embedding model, hybrid weights, reranker, top-k. Every one of them changes your search, and you can't feel the difference by trying three queries. Fifty labelled questions and three numbers (recall@k, MRR and nDCG) tell you whether a change helped.
In this lesson you'll learn to
- Build a labelled query set from real questions, with the relevant documents marked for each.
- Compute recall@k and explain why it is the main number for retrieval feeding RAG.
- Compute MRR and nDCG, and explain how they reward putting relevant results higher.
- Use the metrics to compare changes, read failures, and guard against regressions.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.