01Chapter 1: What a RAG system does and where quality can be measuredA retrieval-augmented generation (RAG) system answers questions from documents it did not memorize. This chapter maps the pipeline and marks the places where you can measure it. The rest of the tutorial builds on that map.6 min read
02Chapter 2: Retrieval failures versus generation failuresThis chapter assumes you know how a RAG pipeline works: chunking, embedding, vector search, and prompting an LLM with the retrieved text. It also assumes you can read Python and know precision and recall from classification. Here you learn to separate the two places a RAG system can go wrong. Every 6 min read
03Chapter 3: Building an evaluation set with relevance labelsEvery metric later in this tutorial, including precision@k, recall@k, MRR, and nDCG, is computed against an evaluation set. If the set is small, skewed, or mislabeled, the numbers will look precise and still mislead you. This chapter covers how to build a set you can trust.6 min read
04Chapter 4: Precision@k, recall@k, and hit rateThis chapter covers the set-based metrics for a retriever. They treat the top k results as an unordered set and ask how many of them are relevant. The next chapter adds rank-aware metrics.7 min read
05Chapter 5: Rank-aware metrics: MRR, MAP, and nDCGThis chapter assumes you can read Python, know precision and recall from classification, and have already met precision@k, recall@k, and hit rate. It also assumes you have an evaluation set where each question has labelled relevant documents.5 min read
06Chapter 6: Faithfulness: is the answer supported by the context?This chapter assumes you know how a RAG pipeline works (chunking, embedding, vector search, prompting an LLM) and can read Python. It also assumes you are comfortable with averages and with precision and recall. Earlier chapters covered retrieval metrics, which score the retriever. This chapter star7 min read
07Chapter 7: Answer relevance: does the answer address the question?This chapter assumes you know how a RAG pipeline works, can read Python, and understand precision and recall. You should also know how faithfulness is defined: an answer is faithful when the retrieved context supports its claims. Here we look at a different property, answer relevance.6 min read
08Chapter 8: Scoring faithfulness claim by claimThis chapter assumes you can read Python and know how a RAG pipeline passes retrieved passages to a generator. It also assumes you know the earlier distinction in this tutorial: faithfulness asks whether the answer is supported by the retrieved context, not whether it is true in the world.6 min read
09Chapter 9: Using an LLM as a judge, and where it goes wrongThis chapter assumes you have read the earlier chapters on claim-level faithfulness scoring. It also assumes you can read Python and know what precision and recall mean. Claim-level scoring needs a verifier, a function that decides whether a claim is supported by the context. This chapter covers the7 min read
10Chapter 10: Judging context relevance when you have no labelsYou should know how a RAG pipeline retrieves passages and passes them to a generator. You should also know precision@k and recall@k from earlier chapters, and you should be able to read short Python functions. This chapter also uses the idea of an LLM judge, which is a language model prompted to gra5 min read
11Chapter 11: Checking a judge against human labelsAn LLM judge is a measuring instrument, and an instrument needs calibration before you trust its readings. This chapter shows how to test a judge against human labels, which numbers to report, and how to decide whether the judge is good enough to use.6 min read
12Chapter 12: Citation accuracy: do cited passages support the claims?Many RAG systems attach citations to their answers, such as [2] or a document ID after a sentence. A citation promises that a specific passage backs up that statement. This chapter shows how to measure whether the promise holds.6 min read
13Chapter 13: Finding out whether the retriever or the generator is at faultThis chapter assumes you can read Python, know precision and recall, and have already built an evaluation set with relevance labels. You should also know how to compute recall@k, faithfulness, and answer relevance from the earlier chapters. Here you combine those scores to decide which component to 5 min read
14Chapter 14: Sample size, variance, and confidence intervalsThis chapter assumes you can compute the retrieval metrics and faithfulness scores from earlier chapters. It also assumes you know what a mean and a standard deviation are. By the end you should be able to attach an uncertainty range to any evaluation number and decide whether a change in score is r6 min read
15Chapter 15: Regression tests and production monitoringThis chapter closes the tutorial. You already have retrieval metrics, claim-level faithfulness scoring, a validated judge, and confidence intervals. Here you turn them into two habits: a regression test that runs before every change ships, and monitoring that runs after it ships.6 min read