Measuring RAG quality (preview of Module 10)
Notebook· 06.09· 120–150 min· Lesson 54 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Design a golden set: questions, expected sources, expected answer facts, and out-of-corpus questions.
- Compute retrieval metrics (hit rate, recall@k, MRR) and read the per-question misses.
- Score answers: correctness, don't-know accuracy, citation validity.
- Judge groundedness with an LLM-as-judge, and know its limits.
- Save a small report so every change to chunking, embeddings or prompts can be compared.
Before you start
Lessons 06.06–06.08.
Python in this lesson
Python guideNew hereBytes (b"…")
