01Chapter 1: Why an LLM app needs its own evaluation datasetThis chapter assumes you can read basic Python and JSON/JSONL (one JSON object per line). It also assumes you have called an LLM API or built a small app on one, and that you know what a prompt and a model output are. You should be comfortable with a mean, a proportion, and the idea of sample size. 6 min read
02Chapter 2: Define the task and what counts as successThis chapter assumes you can read and write basic Python and JSON, and that you have called an LLM API or used an LLM-based app. It also assumes you know what a proportion is. You don't need any evaluation experience.7 min read
03Chapter 3: Design the test case schemaThis chapter assumes you can read and write JSONL, call an LLM app from Python, and compute a mean or proportion. The schema you pick here decides what you can measure later. Slicing, splitting, versioning, and grading all read fields from it, so it is worth designing before you collect many cases.6 min read
04Chapter 4: Where cases come fromThis chapter assumes you can read and write JSONL, call an LLM app from Python, and compute a mean and a proportion. It also assumes you have already defined the task and success criteria, and have a case schema with fields like id, input, reference, tags, source, and difficulty.7 min read
05Chapter 5: Cover the input space with tagged slicesA dataset with 300 cases can still miss the inputs that break your app. If 280 of those cases are easy, common questions, the overall score tells you almost nothing about edge cases or hostile input. This chapter shows how to define slices, tag cases with them, and check coverage before you trust an6 min read
06Chapter 6: Generating synthetic cases safelySynthetic cases are test cases written by a language model instead of collected from users or written by experts. They are cheap and fast to produce. They are also easy to misuse, because a model that writes the questions tends to write questions it can already answer. This chapter shows how to use 5 min read
07Chapter 7: Write reference answers and rubricsThis chapter covers how to attach the "right answer" to each test case. It assumes you have the JSONL case schema from the earlier chapter, can read basic Python, and know what an LLM judge is, though you don't need to have calibrated one yet.5 min read
08Chapter 8: Check labeling quality with annotator agreementThis chapter assumes you can read the JSONL case schema from earlier chapters, write basic Python, and compute a proportion. You also need to know that each case has a reference answer or a rubric label. Here you check whether those labels can be trusted.6 min read
09Chapter 9: Choose graders and metricsThis chapter assumes you can read Python and JSONL, have called an LLM API, and know what a mean and a proportion are. You should also have a dataset with the schema from the earlier chapters, including reference answers or rubrics. Here you decide how each case gets turned into a score, and how tho7 min read
10Chapter 10: Calibrate an LLM judge against human labelsThis chapter assumes you can read and write basic Python, handle JSONL files, and know what a prompt and a model output are. You should also know the mean and a proportion from elementary statistics. You should have a labeled dataset from earlier chapters, with references or rubrics and a measure of7 min read
11Chapter 11: Split the data and avoid leakageThis chapter assumes you can read basic Python and JSONL, have called an LLM API, and know what a proportion and a sample size are. It also assumes you have a tagged dataset like the one built in earlier chapters, where each case has a stable id, an input, a reference, tags, and a source.7 min read
12Chapter 12: How many cases are enoughThis chapter assumes you can write basic Python, read JSONL, and know what a proportion and a sample size are. It also assumes you have a per-case grader that returns pass or fail, as built in the earlier chapters. Here you will learn how much a score moves from sampling noise alone, and how many ca7 min read
13Chapter 13: Version and store the datasetThis chapter assumes you can read and write JSONL files in Python, use Git at a basic level, and know the test case schema and the dev/test split from earlier chapters. By the end you will be able to store an evaluation dataset so that any past score can be reproduced, and so that every change to th6 min read
14Chapter 14: Run the eval and read per-slice resultsYou have a dataset with stable ids, tags, references, and a split. This chapter covers running the app over that dataset and turning the raw pass/fail results into a report you can act on.6 min read
15Chapter 15: Keep the dataset alive with production failuresThis chapter assumes you already have a tagged JSONL dataset with a case schema, a dev/test split by hashed id, and version numbers. It also assumes you can run an eval and read per-slice scores. Here you will learn how to feed real failures back into that dataset without breaking it.5 min read