01Chapter 1: Start with the user problem and the scope of the AI featureEvery later step in this tutorial depends on this one. You cannot write a testable requirement, choose a quality dimension, or build an evaluation set for a feature you have not defined. This chapter covers how to state the user problem, decide whether an AI model belongs in the solution, and draw a7 min read
02Chapter 2: Why AI features need different requirementsThis chapter assumes you can read a user story or acceptance criterion, you know roughly what a large language model does (text in, generated text out), and you can follow short Python snippets. It explains why the requirements habits you use for ordinary software break down for AI features. It also6 min read
03Chapter 3: Choosing the quality dimensions that matterThis chapter assumes you have already framed the user problem and scope of your AI feature. It also assumes you know why nondeterministic output means you describe a distribution of behavior and not one exact answer. Here you decide which aspects of the output you will measure. Later chapters turn t7 min read
04Chapter 4: Listing failure modes and ranking their severityThis chapter assumes you can read short Python and JSON snippets. It also assumes you have written product requirements or user stories, and that you know a large language model (LLM) produces different text for the same input. Earlier chapters framed the feature and chose quality dimensions. Here y7 min read
05Chapter 5: Writing requirements you can testThis chapter assumes you have written user stories or product requirements before, know roughly what a large language model does, and can read short Python and JSON snippets. It also assumes you have already picked quality dimensions and listed failure modes for your feature, as covered in the previ6 min read
06Chapter 6: Building an evaluation datasetThis chapter assumes you have read the earlier chapters on quality dimensions, failure modes, and testable requirements. You should be comfortable with short Python and JSON snippets. The goal is to turn requirements such as "at least 95% of refund-policy answers must be grounded" into a concrete se6 min read
07Chapter 7: Grading outputs: code checks, human review, and model judgesA grader is the part of an evaluation that looks at one output from your AI feature and decides how good it is. This chapter assumes you have already named your quality dimensions, written testable requirements, and built an evaluation set. It covers the three kinds of grader and how to pick one for6 min read
08Chapter 8: Turning grades into metricsA grader gives you a verdict for one output. A metric summarizes many verdicts into a number you can compare with a requirement. This chapter assumes you have an evaluation set and graders that return pass or fail per case, as in the earlier chapters. It also assumes you can read short Python. It co6 min read
09Chapter 9: Using and calibrating a model-based judgeThis chapter assumes you have read the earlier chapters on quality dimensions, graders, and metrics. You should be comfortable reading short Python snippets. You should also know that a grader turns one output into a pass or fail verdict, and that the pass rate across an evaluation set is a metric.7 min read
10Chapter 10: Setting acceptance criteria and thresholdsYou have already written testable requirements, built an evaluation set, and chosen graders that turn each case into a pass or fail. You also know how to compute a pass rate from those grades. This chapter covers the next step: deciding what numbers mean "good enough to ship". You should be comforta7 min read
11Chapter 11: Using evaluations as release gatesYou have a set of requirements with thresholds, an evaluation dataset where each case has a severity, and graders that mark each case as passed or failed. You can read short Python. This chapter covers how to turn those results into a decision about whether a change ships.7 min read
12Chapter 12: Offline evaluation versus online monitoringThis chapter assumes you have read the earlier chapters on evaluation datasets, graders, metrics, and release gates. You should be able to read short Python snippets and know what a pass rate and a severity level are.7 min read
13Chapter 13: Keeping the evaluation currentAn evaluation set is accurate on the day you build it. After that, the feature changes, users change, and the policies behind the answers change. If the set stays frozen, a passing score means less each month, and eventually it means almost nothing. This chapter covers how to keep the evaluation use7 min read