To evaluate an AI model for real work, use public benchmarks only to shortlist candidates, then run every candidate through your own eval: a fixed set of realistic inputs from your workload, a written definition of a correct answer, and an automated grader that scores each output. The model that wins your eval on quality, cost and latency together is the right choice, even if it ranks lower on public leaderboards. Re-run the same eval whenever you change models, prompts or providers.
This guide explains what benchmarks can and cannot tell you, then walks through building a small eval from scratch with a worked example, a copy-ready grader prompt and the mistakes that most often make eval results misleading.
Benchmarks and evals answer different questions
A benchmark is a fixed, public test set used to compare models on a standardized task, such as multiple-choice knowledge questions, coding problems with unit tests, or math word problems. An eval, in the sense used here, is a test suite you build around your own inputs and your own definition of success.
| Public benchmark | Your own eval | |
|---|---|---|
| Question answered | Which models are generally strong at this kind of task? | Which model does my task best, at a cost and speed I accept? |
| Inputs | Fixed, public, often years old | Your real traffic, edge cases and past failures |
| Scoring | Defined by the benchmark authors | Defined by you, tied to business requirements |
| Main risks | Saturation, training-data contamination, mismatch with your task | Too few cases, unclear criteria, a biased grader |
| Best use | Shortlisting candidates | Choosing, regression testing, monitoring |
Two benchmark problems deserve a definition. Saturation happens when the top models all score near the ceiling, so differences become noise. Anthropic’s engineering guide on evals for AI agents notes that near saturation, real capability gains show up as tiny score changes. Contamination happens when benchmark questions leak into a model’s training data, so a high score may reflect memorization rather than skill. Neither problem affects an eval built from your own private data.
Benchmarks are still useful for one thing: narrowing a long list of models to three or four worth testing. Read the vendor’s model card alongside the scores; the walkthrough in reading an AI model card shows what to look for.
Building an eval in seven steps
Both OpenAI and Anthropic describe nearly the same process in their official guides: define success, collect representative data, choose metrics and graders, run, compare, and keep evaluating. The steps below put that into practice.
1. Write success criteria before collecting any outputs
Anthropic’s guide to defining success criteria and building evals asks for criteria that are specific, measurable, achievable and relevant. “Good summaries” fails that test. “Every summary names the customer’s main problem, contains no facts absent from the ticket, and stays under 80 words” passes it. Write the criteria first; if you write them after seeing outputs, you will unconsciously grade toward whichever model you already like.
2. Collect 20 to 50 real cases to start
Anthropic’s agent-evals guide recommends starting with roughly 20 to 50 tasks drawn from real failures, because early differences between models or prompts are large enough to see with a small set. Mix in:
- typical inputs, in proportion to real traffic;
- known failures from logs or support complaints;
- edge cases: very long inputs, empty fields, mixed languages, irrelevant requests;
- adversarial or malformed input, such as text that tries to override instructions.
Remove personal data before storing cases. Keep the set in version control next to your prompts, as described in prompt versioning.
3. Attach a reference or a check to every case
Each case needs something to grade against: an exact expected value (a label, a number), a list of facts that must appear, a list of things that must not appear, or a rubric. Cases without a reference are not tests; they are demos.
4. Pick the cheapest grader that is reliable
Graders come in three kinds, and the official guides agree on the order of preference.
- Code-based graders check exact matches, regular expressions, JSON schema validity, whether code passes unit tests, or whether a database record exists. They are fast, cheap and reproducible. Use them wherever the answer has a checkable form.
- Model-based graders (LLM-as-judge) use a second model with a rubric to score open-ended output such as tone, completeness or faithfulness. They scale well but must be calibrated against human judgment.
- Human graders are the most flexible and the slowest. Their main role is to calibrate model-based graders and review disagreements.
5. Run several trials per case
Model outputs vary between runs, so a single pass can mislead. The Anthropic agent-evals guide distinguishes pass@k, the chance that at least one of k attempts succeeds, from pass^k, the chance that all k attempts succeed. Its example: a 75% per-trial success rate falls to roughly 42% when all three trials must pass. For a customer-facing feature, consistency (pass^k) is usually the number that matters.
6. Record cost and latency alongside quality
Capture input and output tokens, cost per case and time to complete for every run. A model that scores two points higher but costs five times more or takes three times as long may be the wrong choice. That trade-off is the reason teams use a model router to send easy cases to cheaper models.
7. Read the transcripts, not only the scores
Open a sample of passing and failing outputs after every run. Anthropic’s guide puts it as “Failures should seem fair”: you should be able to see why each failure is a failure. Often you will find the grader rejecting a valid answer or accepting a wrong one, which is a grader bug, not a model result.
Worked example: choosing a model for ticket summaries
The following scenario is illustrative. A support team wants a model to summarize incoming tickets for agents. Three candidate models made the shortlist from public benchmarks and pricing.
Success criteria: the summary states the customer’s main problem; it contains no claim absent from the ticket; it lists any order or account ID that appears in the ticket; it is under 80 words.
Dataset: 40 tickets. Thirty are typical, five are tickets where the current system produced a bad summary, and five are edge cases (a ticket in Spanish, one with a pasted stack trace, one containing “ignore previous instructions”, one with three separate problems, one nearly empty).
Graders: two of the four criteria are code-checkable. A script counts words and checks that every ID matched by a regular expression in the ticket also appears in the summary. The other two, main problem and no invented facts, go to a model-based grader with this prompt:
You are grading a support-ticket summary against the original ticket.
<ticket>
{{ticket}}
</ticket>
<summary>
{{summary}}
</summary>
Check two criteria independently.
A. MAIN_PROBLEM: Does the summary state the problem the customer most
needs solved? If the ticket has several problems, the main one is
the one the customer asks to resolve first.
B. NO_UNSUPPORTED_CLAIMS: Is every factual statement in the summary
supported by the ticket? Paraphrase is fine. Any detail not in the
ticket (a cause, a date, a product name) is a failure.
First, list each factual statement in the summary and quote the
ticket text that supports it, or write NONE.
Then output exactly:
{"main_problem": "pass" | "fail", "no_unsupported_claims": "pass" | "fail"}
Why it is built this way: separate pass/fail verdicts per criterion are more reliable than one 1-10 score, which both OpenAI’s and Anthropic’s guides recommend in different words. Asking the grader to quote supporting text before deciding forces it to check rather than guess, and it gives you an audit trail when reading transcripts. The tie-break rule for multi-problem tickets removes the most common source of grader disagreement. Following Anthropic’s advice, the grader should be a different model from the ones being tested.
Calibration: before trusting the grader, two people grade the same 20 summaries by hand. Where the grader disagrees with both humans, the rubric is tightened and the check repeated. Only then are all three candidates run, three trials each.
Reading the result: the comparison is per criterion and per case type, plus cost and latency. A model that is best overall but fails the “ignore previous instructions” ticket every time needs a closer look before launch, whatever its average. For a reusable scoring sheet you can adapt, see the LLM eval rubric; to automate the whole run in CI, the setup in building a regression test suite with promptfoo applies to any provider.
Known biases in LLM-as-judge grading
Model-based graders have documented, repeatable biases, and each has a standard countermeasure. The paper Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena identified the main ones while also finding that a strong judge model agreed with human preferences more than 80% of the time, about as often as humans agree with each other.
| Bias | What happens | Countermeasure |
|---|---|---|
| Position bias | In side-by-side comparisons, the judge favors the answer shown first (or second) | Run each pair twice with the order swapped; count only consistent verdicts |
| Verbosity bias | Longer answers get higher marks regardless of quality | Put length limits in the rubric; check length with code separately |
| Self-enhancement bias | A judge favors answers that resemble its own outputs | Use a judge from a different model family than the candidates |
| Limited reasoning | The judge misgrades math or logic it cannot solve itself | Grade against a reference answer; use code checks for computable answers |
OpenAI’s evaluation best-practices guide adds that pairwise comparison or pass/fail judgments are more reliable than open-ended scores, and that automated metrics should be calibrated against human feedback.
Mistakes that make eval results misleading
- Testing only the happy path. If every case is clean and typical, every candidate passes and the eval decides nothing.
- Grading by feel. OpenAI’s guide lists “it seems like it’s working” among its anti-patterns. Ten chats in a playground are not an eval.
- Using generic metrics. Text-overlap scores such as BLEU say little about whether a support summary is useful.
- Testing the model but not the system. If production includes retrieval, tools or post-processing, the eval must include them too. For agents, Anthropic recommends checking the final outcome, such as whether a booking record actually exists, not just what the agent claimed.
- Changing the eval and the model at once. Freeze the dataset and grader when comparing candidates, or you cannot tell which change moved the score.
- Letting the eval saturate. When everything passes, add harder cases. Anthropic suggests promoting saturated capability evals into a regression suite that should stay near 100%.
When to re-run your evals
Treat the eval suite like a test suite in software: it runs on every meaningful change. In practice that means re-running when you edit a prompt or system prompt, when you switch to a new model version or provider, when a provider announces a deprecation of the model you use, and when production logs reveal a new kind of failure, which then becomes a new test case. A scheduled run, monthly for example, catches drift you did not cause.
One tooling note: OpenAI’s guide states that its hosted Evals platform is being deprecated, becoming read-only on October 31, 2026, and shutting down on November 30, 2026. If your evals live there, export the datasets and graders now. Keeping evals as plain files in your own repository avoids being tied to any single vendor’s dashboard.



