# LLM evaluation

> Concept page from *The GTM Engineering Handbook* by Jared Waxman (GTM Engineer School).  
> Web version: https://gtm-engineer-school.com/resources/gtme-handbook/concepts/llm-evaluation/  
> Last updated: 2026-11-27  
> © 2026 Jared Waxman. All rights reserved. Short quotations with attribution and a link are welcome.

**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.

## Related concepts

- [Human-in-the-loop](https://gtm-engineer-school.com/resources/gtme-handbook/concepts/human-in-the-loop.md)
- [Prompt injection](https://gtm-engineer-school.com/resources/gtme-handbook/concepts/prompt-injection.md)
- [Context engineering](https://gtm-engineer-school.com/resources/gtme-handbook/concepts/context-engineering.md)
- [Holdout testing](https://gtm-engineer-school.com/resources/gtme-handbook/concepts/holdout-testing.md)

## Where the book covers it

- [Chapter 12 · 12.5 Evaluation](https://gtm-engineer-school.com/resources/gtme-handbook/ai-agents.md)
- [Chapter 13 · 13.11 Metrics and evaluation](https://gtm-engineer-school.com/resources/gtme-handbook/context-layer.md)

---

All concepts: [concepts.md](https://gtm-engineer-school.com/resources/gtme-handbook/concepts.md) · Practitioner questions: [questions.md](https://gtm-engineer-school.com/resources/gtme-handbook/questions.md) · All chapters: [llms.txt](https://gtm-engineer-school.com/resources/gtme-handbook/llms.txt)
