An evaluation dataset collects task inputs with expected, verifiable, or human-assessed outputs so a model's performance can be measured. It turns vague impressions into repeatable checks for accuracy, quality, or tone. section 7.10 section 7.9
A small set of examples can function as unit tests: each test checks whether a condition that should always hold is satisfied. Larger datasets support aggregate measures such as pass rate and reveal subtler changes across prompts. section 7.9
Choose the evaluation method according to what can be verified:
- Use deterministic checks for narrow, objective conditions such as multiple-choice answers, extracted information, or response length. section 7.10
- Use expert labels when qualities such as friendliness, enthusiasm, or tone require judgment, while recognizing that manual review is costly and difficult to scale. section 7.10
- Use an LLM judge for scalable subjective evaluation, but validate it against expert-reviewed examples because automated annotators can be biased. section 7.10
- Create prompts manually, synthetically, or from production logs; synthetic prompts scale cheaply but may not represent real user language. section 7.9
Real-estate listing test
Given “2 bed 1 bath condo, Brooklyn, NY,” test whether the generated description identifies two bedrooms. Repeating such checks across examples produces a dataset whose pass rate can track prompt changes. section 7.9
Table 7.6 Methods of generative AI evaluations
| Type of evaluation |
When to use |
Advantages |
Disadvantages |
| Human preference or judgment |
Before an LLM judge is validated, or to confirm hypotheses about human preferences |
|
|
| Heuristic evaluation or verifier |
When “checking” the response or computing a metric can be done deterministically (such as with multiple-choice questions or measures like response length) |
|
|
| LLM as judge |
When the judgment of the response is for any nonverifiable or subjective quality |
|
|
| A/B test |
When interested in user preferences and behavior in a live production setting |
|
|
Compare human judgment, deterministic verification, and LLM judges by cost, scalability, applicability, and limitations. section 7.10


























