Concept
LLM evaluation
Last updated
Also called: evaluation set, evals
LLM evaluation means testing an AI step against a labeled set of real inputs, often 50 to 200 examples including known edge cases, and measuring it with metrics suited to the task: accuracy per class for classification, precision and recall for extraction, and a rubric for drafting. The same set is re-run whenever the prompt, model, or input data changes, so quality is tracked over time.
Why it matters
A prompt that looks good on five examples can fail on a meaningful share of real inputs in ways that matter. Evaluation is what turns "it seems fine" into evidence, catches regressions when a prompt or model changes, and justifies giving a step more autonomy.
Worked example
A reply classifier is tested on 150 hand-labeled replies. Overall accuracy is high, but the confusion matrix shows some unsubscribe requests labeled "interested", which is the costly direction. The team adds explicit opt-out rules ahead of the model, re-runs the set, and keeps it as a regression test for every future prompt change.
Common mistakes
- Judging a prompt on a handful of hand-picked examples.
- Reporting overall accuracy when errors are asymmetric.
- Building the set once and never re-running it after model or prompt changes.
- Skipping the brand-safety question for drafted messages.
Questions
How big should an evaluation set be?
Often 50 to 200 labeled real examples to start, chosen to include common cases and known edge cases. Grow it as you find new failures.
Who should label the examples?
Ideally the people who will use the output, such as reps for research briefs or SDR leaders for reply categories.