Evals
A repeatable test set that scores an AI feature, so changes can be measured instead of guessed.
An eval is a repeatable test set for an AI feature: a list of inputs plus a way to grade the outputs, with exact checks, code, or a model as judge. Run it before changing a prompt, a model or a tool, and compare the scores. Without evals, every model upgrade is a leap of faith.
Anthropic’s guide to agent evals (January 2026) sorts graders into three kinds. Code is fast, cheap and reproducible, but brittle on open-ended text. A model is flexible, but has to be calibrated against people. A human is the reference, slow and expensive. Because output varies between runs, each case is run several times. The guide also separates capability evals, which start with a low pass rate and give the team something to climb, from regression evals, which should stay near 100% and catch what a change broke. Its advice is to start with 20–50 tasks taken from real failures instead of waiting for hundreds.
The cases themselves are the golden dataset; the grader may be an LLM judge checked against human evaluation. For agents, grade the path as well as the answer with trajectory evals. A common mistake is a set built only from cases that already work: it scores high and catches nothing.
Sources
- Anthropic: Demystifying evals for AI agents anthropic.com
Related terms
- LLM as judge: Using a model with a rubric to grade another model’s output.
- Prompt regression: An answer that used to be right goes wrong after a change to the prompt or the model.
- Hallucination: A fluent, confident answer that is false or not supported by the sources.
- Model routing and fallback: Sending each request to the model that fits it, and to another one when the first fails.
- Trajectory evals: Tests that grade an agent’s whole path to an answer: which tools it called, in what order, how many steps and at what cost, not only the final output.
- Precision (AI metric): The share of returned results that are actually correct: of everything the system flagged or retrieved, how much was right.
- Ragas: An open-source Python library for evaluating RAG systems with metrics such as faithfulness, answer relevancy, context precision and context recall.
- Golden dataset: A fixed set of real inputs with expected answers or checks, used to test an AI feature after every prompt or model change.
- LLM benchmark: A public, standardized test set used to compare models with each other, as opposed to evals built for your own task.
- Production-ready AI (production readiness): An AI feature that is tested, monitored, capped in cost, limited in permissions and can be rolled back, not one that only worked in the demo.
