A team adds an LLM router that sends support tickets to billing, technical or account. The product manager tries ten tickets in the playground and every answer looks right, so it ships. A week later, support leads notice refund requests in the technical queue. Nobody can say when it started, whether last Tuesday's prompt tweak caused it, or whether the fix they're about to try will break something else.
The common misconception
"If the outputs look good on the prompts I tried, the feature is ready to ship." It's a reasonable instinct:
LLM outputs read fluently and confidently, so a wrong answer can look as polished as a right one.
The prompts you try are the ones you'd write: clean, typical and in your own phrasing.
Manual testing really works at first. Anthropic's engineers write that teams get "surprisingly far" with manual testing, dogfooding and intuition.
Building evals looks like overhead that slows the first release.
The half-truth: trying outputs by hand is useful, and it's where every eval starts. But it measures your guesses, once, by eye. That's a demo, not a test.
What actually happens
Your handful is a small, biased sample
Real traffic has a long tail: typos, other languages, two questions in one ticket, empty messages, angry customers. The tickets you thought of rarely include them. The HELM benchmark showed how much that can matter: on one reading-comprehension task, one large model dropped from 72.6% accuracy to 38.9% when inputs were perturbed with changes such as typos. HELM also reported significant sensitivity to prompt formatting and to the choice and number of examples in the prompt. A wording change you call an improvement may only have moved the errors to inputs you didn't try.
One run proves little
The same prompt can give different outputs on different runs, which is why Anthropic's evals run several trials per task. Consistency compounds: in their example, an agent that succeeds 75% of the time passes all three of three trials only about 42% of the time, (0.75)³. If customers expect the right queue every time, measure that, not a single lucky run.
"Looks good" isn't a criterion
Anthropic's docs ask for success criteria that are specific and measurable. Their bad example is "the model should classify sentiments well"; the good one names a metric, a threshold, a held-out test set and a baseline. Most features need several criteria at once: accuracy, but also consistency, tone, latency and price. Without them, two people can look at the same output and disagree on whether it passed.
Without a test, every fix is a gamble
Anthropic describes the breaking point teams hit: users say the product feels worse, and the team is "flying blind", fixing one failure while creating others, unable to tell a real regression from noise. That's the router team above. With an they'd rerun the same cases after each change and see the number move.
What an eval actually is
An eval is a set of tasks with defined inputs and success criteria, a grader that scores each output, and a harness that runs them all. Anthropic recommends code-based graders where possible (exact or string match), an with a clear rubric where judgment is needed, and human grading sparingly, mainly to check the LLM grader. The docs also say volume beats polish: more cases with slightly noisier automated grading beat a few hand-graded ones.
Here's the vibe check next to an eval for the router. Both call the same function:
Python · router.py
import anthropicclient = anthropic.Anthropic()def route(ticket): reply = client.messages.create( model="claude-opus-5-5", max_tokens=16000, system=ROUTER_PROMPT, messages=[{"role": "user", "content": ticket}], ) return next(b.text for b in reply.content if b.type == "text").strip()
Python · check_router.py
# Three tickets I thought of, one run each, judged by eyefor ticket in ["I was charged twice", "App crashes", "Change my email"]: print(ticket, "->", route(ticket))# All three look right, so the pull request says "tested"
Python · eval_router.py
CASES = load_cases("routing_cases.jsonl") # real tickets, labeled by supportTRIALS = 3 # outputs vary between runs, so run each case more than oncepassed, failures = 0, []for case in CASES: answers = [route(case["text"]).lower() for _ in range(TRIALS)] if all(a == case["queue"] for a in answers): # every trial must be right passed += 1 else: failures.append((case["queue"], answers, case["text"]))score = passed / len(CASES)print(f"{score:.1%} of {len(CASES)} cases right in all {TRIALS} trials")for want, got, text in failures[:10]: # read the failures, not just the score print(f" expected {want}, got {got}: {text[:50]}")assert score >= 0.95, "Routing below the bar: don't ship"
The eval is barely longer than the vibe check. The work is in the cases: real tickets, labeled by the people who know the right answer, including the messy ones. The grader is plain code because routing has one right answer. And the assert makes the bar part of CI, so a prompt change that drops below it fails the build.
Vibe check
Eval
Inputs
The ones you think of
Real cases, including edge cases and failures
Runs
One
Several trials per case
Judgment
Your impression
A written criterion and a grader
After a change
Try a few again
Rerun the same cases and compare the score
Result
"Looks good"
A number, plus the failing cases to read
How to apply it in your project
Write the success criteria firstState what passing means as a number: "routes at least 95% of labeled tickets correctly in all three runs", not "routes well".
Collect real, balanced casesTake tickets from production or the support queue, label them with the people who own the answer, and include both directions: cases where a behavior should happen and cases where it shouldn't.
Grade with code where you canUse exact or string matching for answers with one right value. Use an LLM grader with a rubric only where judgment is needed, and compare it with human grades on a sample first.
Run it on every changeRun the suite in CI on prompt edits, model upgrades and SDK changes, with several trials per case. Keep cases you've mastered as a regression suite that should stay near 100%.
Read the failuresLook at the failing outputs after each run. Each one is a model problem, a grader problem or an unclear case, and each needs a different fix.
Key takeaways
A few good outputs measure the inputs you thought of, run once, judged by eye.
Real inputs include typos, edge cases and phrasing you didn't predict, and models can be sensitive to all of them.
Outputs vary between runs, so run each case several times and decide whether you need one success or all of them.
An eval is cases with known answers, a written bar, a grader and a harness, run on every change.
Grade with code where possible, calibrate LLM graders against humans, and read the failures before trusting the score.
التعليقات (0)