02Chapter 2: Define the task and what counts as successThis chapter assumes you can call an LLM API, read and write JSON, and compute a proportion in Python. You do not need an existing dataset. Defining the task comes first, because every later choice depends on it: the case schema, the sources, the labels, and the graders.3 min read
03Chapter 3: Design the test case schemaThis chapter assumes you can read and write JSON and JSONL in Python. It also assumes you have already written down what your app does and what counts as success. The schema turns that definition into fields you can check on each case.2 min read
04Chapter 4: Where cases come fromThis chapter assumes you can read and write JSONL, you know the case schema from the previous chapter (id, input, reference, tags, source), and you have an LLM app that is running or about to run.3 min read
05Chapter 5: Cover the input space with tagged slicesThis chapter assumes you can read JSONL, write basic Python, and know what a proportion and a sample size are. It also assumes you have a test case schema with a tags field, as in the earlier chapter on schema design.2 min read
06Chapter 6: Generating synthetic cases safelyThis chapter assumes you have read the chapters on the case schema, data sources, and coverage slicing. You should be comfortable with JSONL records and with calling an LLM to produce text.2 min read
07Chapter 7: Write reference answers and rubricsThis chapter assumes you can read JSONL, run basic Python, and have a task definition and case schema from the earlier chapters. Here you label cases so a grader can score outputs against something concrete.2 min read
08Chapter 8: Check labeling quality with annotator agreementThis chapter assumes you can read JSONL, write basic Python, and know what a proportion and a sample size are. You should also have a labeled dataset, or the start of one, from the earlier chapter on reference answers and rubrics.3 min read
09Chapter 9: Choose graders and metricsThis chapter assumes you can read Python and JSONL, you have a dataset with the schema from earlier chapters (id, input, reference, tags), and you know what a proportion and a sample mean are. A grader is the code or person that turns one model output into a score. A metric is how you combine those 2 min read
10Chapter 10: Calibrate an LLM judge against human labelsThis chapter assumes you can read Python and JSONL, have called an LLM API, and know what a proportion and a sample size are. It also assumes you have met Cohen's kappa in the annotator agreement chapter. Here you use it to decide whether an LLM judge can stand in for human graders.2 min read
11Chapter 11: Split the data and avoid leakageThis chapter assumes you can read Python and JSONL, have a dataset with stable case ids and tags (from the schema chapter), and know what a proportion and a sample size are.3 min read
12Chapter 12: How many cases are enoughThis chapter assumes you can read Python and JSONL, know what a proportion and a sample size are, and already have a dev/test split and a per-case pass/fail grader. The question here is how much a score can be trusted at your current dataset size.2 min read
13Chapter 13: Version and store the datasetThis chapter assumes you can read JSONL, you know the case schema from the earlier chapter, and you have used git. An eval score only means something if you know which cases produced it. If you edit the dataset between two runs, you can't tell whether the app changed or the test did.3 min read
14Chapter 14: Run the eval and read per-slice resultsThis chapter assumes you have a JSONL dataset with tagged cases, a grader function, and an app that maps an input string to an output string. Earlier chapters covered the schema, graders, and splits. Here you run the eval and interpret what comes out.2 min read
15Chapter 15: Keep the dataset alive with production failuresThis chapter assumes you have a JSONL dataset with the case schema, tags, and dev/test split from earlier chapters, and that you can read per-slice scores. A dataset built once goes stale. Users change how they phrase requests, policies change, and the app gets new features. Production failures are 3 min read