For AI product managers · Free resources
AI evals for product managers
A skincare app's builder graded 50 answers by hand. The judge AI agreed on 48. The 2 it missed were wrong answers it passed: a double cleanse for dry skin, and a five-step routine for a total beginner. Here is how to build evals that catch them.
- Read time
- 30 min read
- Updated
- November 2026
What an eval is
An eval is a repeatable test for an AI feature. You give the system an input, you capture what it does, and you score the result against criteria you wrote down in advance.
The hard parts are choosing the inputs, writing criteria that two people would apply the same way, and reading the numbers honestly.
To start today, go to step 1 of "How to implement it, step by step" below. Pulling the bad answers you already know about takes about five minutes.
The vocabulary
These definitions follow Anthropic's "Demystifying evals for AI agents". Each one comes with a skincare example.
- Task: one test case, an input plus success criteria. Example: "I'm going to the beach tomorrow, what sunscreen should I use?"
- Trial: one attempt at a task. Outputs vary, so you run several. Example: the same question, run 5 times.
- Grader: logic that scores one aspect of the result. A task can have several. Example: "Did it ask about skin type?" and "Did it recommend SPF 30 or higher?"
- Transcript (also trace or trajectory): the full record of a trial, with messages, tool calls, reasoning and intermediate results. Example: the whole chat, plus any product-catalog lookups the app made.
- Outcome: the final state at the end of the trial. Example: the final answer the user saw, or the routine saved to their profile.
- Eval suite: a set of tasks that measures one capability or behavior. Example: 30 phrasings of the beach question, plus 20 routine-building tasks.
- Eval harness: the code or tool that runs everything end to end and records results. Example: a script, a CI job (the automatic checks that run on every code change), or a vendor dashboard.
Capability evals and regression evals
- Capability evals ask "what can this do?" They should start with a low pass rate. They give the team a hill to climb.
- Regression evals ask "does it still do what it used to?" They should sit near 100%. A drop means something broke.
When a capability eval reaches a high pass rate, it graduates into the regression suite.
The worked example used throughout
A skincare assistant gets the same question many ways:
- "beach tomorrow, what sunscreen"
- "I burn easily, going to Bondi, help"
- "what SPF for a day outside"
- and so on, 30 phrasings in total.
Each phrasing runs 5 times. That is 150 transcripts. A grader checks each final answer:
- Did it ask about UV exposure and skin type (or use what it already knows about the user)?
- Did it give safe sun advice (broad spectrum, SPF 30 or higher, reapply)?
You track the pass rate, read the failures, fix the prompt, and re-run. Repeat until the number holds.
- Real user questions“Beach tomorrow, what sunscreen?”
- Tasks30 phrasings of the same question
- Run each one 5 times150 transcripts
- GraderAsked about skin type? SPF 30 or higher?
- Pass rateReport it with its range
- Read the failing transcriptsFind out why they failed
- Fix the prompt or the rubricOne change at a time
- Re-runSame tasks, compare paired
Why product managers need evals
The output is non-deterministic. The same input can give different answers. One good demo tells you almost nothing. You need many trials to know the real rate.
Small changes have wide effects. A one-line prompt edit, a new model version, or a new retrieval source can fix one behavior and break three others. Without a regression suite you find out from users.
Evals turn opinions into decisions. "The new prompt fixed 9 tasks and broke 1, on the same 50 tasks" gives the team something to check.
Evals are your launch gate. Write the gate before the work starts. For example:
- Regression suite: no statistically meaningful drop against the current version (see the numbers section below).
- Safety items: zero failures. A routine that combines clashing actives is a hard block, whatever the average.
- Capability target: the new feature passes at least X% of its tasks, with the confidence interval reported.
Evals make model swaps safer. When a provider ships a new model or retires an old one, you re-run the suite and compare.
Graders
There are three kinds. Most real suites mix all three.
- Can code check it?Format, a required field, a banned ingredient. Use a code grader.
- Does it need judgment?Tone, fit for the skin type. Use an LLM judge, calibrated on human labels.
- High stakes, or a new kind of failure?Add human review.
Code-based graders
Plain code that checks the output. Examples:
- The answer mentions an SPF number, and the number is 30 or higher (regex).
- The routine has at most 3 steps for a user tagged "beginner" (count list items in structured output).
- The JSON matches the schema.
- The agent called
search_catalogbefore recommending a product (check the transcript).
Pros: fast, cheap, objective, reproducible. Cons: brittle. "SPF thirty" fails a regex that wants "SPF 30". Code can't judge tone or nuance.
Use code for anything you can check exactly. It is your first line.
LLM-as-a-judge
A second model grades the answer against a rubric you write. A rubric for the sunscreen and routine answers:
- Did it ask about, or correctly use, the user's skin type? (yes/no)
- Does the sun advice include broad spectrum, SPF 30 or higher, and reapplying? (yes/no)
- Does the routine avoid clashing ingredients? (yes/no)
- Does the routine match the user's level? A beginner gets 3 steps: cleanse, moisturize, SPF. (yes/no)
- Does it avoid steps that are wrong for the skin type? For example, no double cleanse for dry skin. (yes/no)
Design rules that the vendor guidance and research agree on:
- Use pass/fail or pairwise grading. OpenAI's best-practices guide recommends them for reliability. A 1 to 10 score is harder to apply the same way twice. If you do use a scale, set the pass mark in advance (for example 4 or more on a 1 to 5 scale) so every score becomes a pass or a fail.
- Give each criterion its own judge. Anthropic recommends grading each dimension with an isolated judge.
- Reason first, then score. Ask the judge to explain, then give the verdict (OpenAI best practices).
- Give it an escape hatch. Let the judge answer "Unknown" when it lacks information, so it does not guess (Anthropic).
- Grade with a different model from the one that generated where you can (Anthropic docs). This reduces self-preference, covered below.
Pairwise comparison shows the judge two answers (old prompt and new prompt) and asks which is better on a stated criterion. It answers "is version B better than A?" It does not tell you if either one is good enough to ship.
Human review
People grade the outputs. This costs the most. Use it to:
- Create labels to calibrate the LLM judge.
- Spot-check a sample of production traffic on a schedule.
- Settle disagreements between graders.
Humans disagree too. In the MT-Bench study (Zheng et al., 2023), GPT-4 as judge agreed with human experts over 80% of the time. That is about the same rate at which the human experts agreed with each other. If two people on your team grade, measure their agreement first. If they disagree, fix the rubric before you look at the judge.
Calibrating the judge: a worked example
- You grade 50 answers yourself: pass or fail.
- The judge grades the same 50.
- You compare. 48 of 50 agree.
- You read the 2 disagreements. Both are answers the judge passed and you would never pass:
- A dry-skin user got a double cleanse.
- A total beginner got a five-step routine. Beginners get three steps: cleanse, moisturize, SPF.
- You write those rules into the rubric (items 4 and 5 above).
- You re-grade until the judge agrees with you.
- Now the judge checks every answer. You spot-check a sample each week.
- You grade 50 answersPass or fail
- The judge grades the same 50
- CompareRaw agreement and kappa
- Read the disagreements2 answers the judge wrongly passed
- Add the rules to the rubricNo double cleanse for dry skin. Beginners get 3 steps.
- Re-grade and compare againRepeat until agreement holds
- The judge runs on everythingYou spot-check a sample each week
Why 96% agreement hides the problem. Most answers pass, so a judge that says "pass" to everything also scores high agreement. Use Cohen's kappa, which corrects for agreement you would get by chance.
Say you failed 5 answers in total. You passed 45 and failed 5. The judge passed 47 and failed 3.
| You: pass | You: fail | |
|---|---|---|
| Judge: pass | 45 | 2 |
| Judge: fail | 0 | 3 |
- Raw agreement: (45 + 3) / 50 = 96%.
- Chance agreement: (47/50 × 45/50) + (3/50 × 5/50) = 0.846 + 0.006 = 0.852.
- Cohen's kappa = (0.96 − 0.852) / (1 − 0.852) = 0.73.
Now look at the column that matters. You failed 5 answers. The judge caught 3. It missed 40% of the bad answers. That is the real finding, and 96% hides it.
Compare a useless judge that passes everything: raw agreement 45/50 = 90%, kappa = 0.
This effect has a name in the statistics literature: "high agreement but low kappa" (Feinstein and Cicchetti, 1990). With imbalanced classes, report three things together:
- Raw agreement.
- Cohen's kappa.
- The judge's catch rate on the failures you marked (recall on the "fail" class). Google's judge-calibration docs use balanced accuracy for the same reason: the mean of the true positive rate and true negative rate, so the rare class counts equally.
One more caution. With only 5 human fails, "caught 3 of 5" is a very rough estimate. Before you trust the judge on a rare failure type, gather more labeled examples of that failure.
Judge failure modes and fixes
Position bias. In pairwise grading, the judge favors the answer shown first (or second). Fix: run each pair twice with the order swapped. Count a win only if it holds both ways, and call it a tie otherwise. Google's judge config calls this "response flipping". Sources: Zheng et al. 2023; Wang et al. 2023; Google judge-model docs.
Verbosity bias. The judge prefers longer answers even when they add nothing. Fix: put length rules in the rubric ("a beginner routine has 3 steps"), control for length when comparing, and use binary checks on specific facts. Sources: Zheng et al. 2023; OpenAI best practices.
Self-preference. A model grades its own outputs higher than humans would. Fix: use a judge from a different model family than the generator, and calibrate against human labels. Sources: Panickssery et al. 2024; Anthropic docs.
Rubric ambiguity. "Good sun advice" means different things to different graders, and kappa between humans is low. Fix: rewrite until two domain experts give the same verdict, and add worked pass and fail examples. Expect criteria to shift as you read outputs ("criteria drift"). Sources: Anthropic engineering post; Shankar et al. 2024.
Judge drift. You upgrade the judge model and scores move, though your product did not change. Fix: pin the judge model version and keep your human-labeled calibration set. Re-run it and re-check kappa before any judge change. Treat a judge change like a product change. Source: Zheng et al. 2023 note that absolute scores fluctuate more than pairwise results when the judge changes.
Weak reasoning on hard checks. The judge gets misled by the answer it is grading. Fix: give the judge a reference answer. In the MT-Bench study, GPT-4 judged answers to 10 math questions, 20 judgments with positions swapped. It called a wrong answer correct in 14 of 20 with the default prompt (70%), 6 of 20 with chain-of-thought (30%), and 3 of 20 when given its own reference answer (15%). Source: Zheng et al. 2023.
Randomness in the judge. The same answer gets different verdicts on different calls. Fix: sample the judge several times and take the majority. Google's judge config supports 1 to 32 samples, default 4, at the cost of latency. Source: Google judge-model docs.
A note on evidence: Zheng et al. found signs of self-preference but said their data could not confirm it. Panickssery et al. (2024) studied it directly and found that LLMs can recognize their own outputs, and that this ability correlates with how strongly they favor them.
Reading the numbers
A pass rate on 50 tasks is a range
Say 40 of 50 tasks pass. The pass rate is 80%. How sure are you?
Use the Wilson score interval. It behaves well at small samples and near 0% or 100%, where the simple formula breaks.
With p = 0.80, n = 50, z = 1.96 (95% confidence):
center = (p + z²/2n) / (1 + z²/n)
= (0.80 + 0.0384) / 1.0768
= 0.779
half-width
= [z / (1 + z²/n)]
× sqrt(p(1−p)/n + z²/4n²)
= 1.820 × sqrt(0.0032 + 0.000384)
= 1.820 × 0.0599
= 0.109
95% interval ≈ 67% to 89%
So "80% on 50 tasks" means "somewhere between about 67% and 89%". That is a 22-point range. The same 80% on 500 tasks gives 76% to 83%.
The simple (Wald) formula, p ± 1.96 × sqrt(p(1−p)/n), gives 69% to 91% here. It fails at the edges: for 48 of 50 it gives 90.6% to 101.4%, which is impossible. Wilson gives 86.5% to 98.9%.
How the 95% range shrinks with more tasks, at an 80% pass rate:
| Tasks | Wilson 95% interval | Width |
|---|---|---|
| 50 | 67.0% to 88.8% | ~22 pts |
| 200 | 73.9% to 85.0% | ~11 pts |
| 1,000 | 77.4% to 82.4% | ~5 pts |
Four times the tasks halves the width.
When a 2-point gain is noise
Your new prompt scores 82% and the old one 80%, on 50 tasks. That is one more task passing. With intervals 22 points wide, that tells you nothing.
To detect a 2-point gain (80% to 82%) between two independent samples, with a 5% false-alarm rate and 80% power, you need roughly 6,000 to 6,300 tasks per arm, depending on the formula:
n ≈ (1.96 + 0.84)² × 2 × 0.8 × 0.2
/ 0.02²
≈ 6,300
You almost never have that. So use a paired comparison.
Paired comparisons
Run the old and new prompt on the same tasks. Then ignore the tasks where both pass or both fail. Look only at the tasks that changed.
- Fixed: failed before, passes now.
- Broken: passed before, fails now.
If the change did nothing, fixed and broken are a coin flip. Test that with a sign test (McNemar's test is the same idea).
| Fixed / broken | p-value (two-sided) | Read it as |
|---|---|---|
| 6 / 5 | 1.0 | Noise. The prompt shuffled results. |
| 8 / 1 | 0.04 | Likely real. |
| 9 / 1 | 0.02 | Likely real. |
| 10 / 0 | 0.002 | Real. |
Pairing removes the task-difficulty noise, which is often a large share of it. This is recommendation 4 in Evan Miller's "Adding Error Bars to Evals" (2024): compute the error bars on the question-level paired differences.
Also read the "broken" list by hand. One broken safety task can outweigh nine fixed style tasks.
Trials are not independent samples
Thirty phrasings run 5 times each gives 150 transcripts. Runs of the same phrasing tend to pass or fail together, so count the 30 tasks as your sample size. Miller's paper recommends clustered standard errors when questions come in related groups, and resampling answers to cut per-question variance. In plain terms: more trials per task make each task's score more stable. To narrow the range on the pass rate, add tasks.
pass@k and pass^k
Two ways to summarize k trials of the same task:
- pass@k: the chance that at least one of k trials passes. First used for code generation by Kulal et al. (2019) in SPoC. Chen et al. (2021) gave the unbiased estimator. Fits cases where the user can pick the best of several, or a tool can retry until a check passes.
- pass^k ("pass hat k"): the chance that all k trials pass. Introduced in τ-bench (Yao et al., 2024) to measure consistency. Fits customer-facing assistants, where many users ask the same thing and every answer has to be right.
Worked number. Suppose each trial passes 90% of the time, independently:
pass@5 = 1 − 0.10⁵ = 99.999%
pass^5 = 0.90⁵ = 59%
Both numbers describe the same system. pass^5 is the consistency number: someone who asks five times will see at least one bad answer 41% of the time.
Anthropic's post gives the same shape: 75% per trial gives about 42% for passing all three (0.75³ ≈ 0.42).
For a skincare assistant, report pass^k beside the pass rate. Thousands of people ask the beach question, and each one needs a right answer.
In practice you estimate both from n trials with c passes per task. Chen et al. give the unbiased estimator pass@k = 1 − C(n − c, k) / C(n, k). τ-bench defines pass^k = C(c, k) / C(n, k). Average each across tasks.
Grade the outcome, read the transcript
Grade the outcome by default. Did the user end up with a safe, correct routine? Anthropic's guidance is to grade what the agent produced, because agents find valid paths you did not plan for. A grader that demands "call tool A, then tool B" fails good solutions.
Grade the path when the path is the product or the risk. Check the transcript when:
- A step has side effects (it saved a routine, sent an email, placed an order).
- A required step can be skipped and still give a plausible answer (it recommended a product without checking the catalog, so the product may not exist).
- Cost or latency matters (it made 14 tool calls to answer a 1-call question). Google ADK reports tool call counts, token usage and duration as efficiency metrics.
Use partial credit for multi-part tasks. A routine task can have five checks. Score each one. "4 of 5" tells you more than "fail", and shows which part regressed. Keep hard safety checks as pass/fail gates on top of the partial score.
Read transcripts every week. They show why a score moved, and they show when the grader is wrong. Anthropic's advice: if many trials score 0%, suspect a broken task or grader before you blame the model.
How to implement it, step by step
-
Start from real failures. Pull the bad answers you already know about: support tickets, user complaints, your own testing notes, low-rated chats. Add the most common real user queries. Prioritize by user impact.
-
Write 20 to 50 tasks. Anthropic recommends starting with 20 to 50 simple tasks drawn from real failures. Early changes have big effects, so a small set is enough to see them. Include both sides: cases where a behavior should happen (ask about skin type) and cases where it should not (don't ask again if the profile already has it).
-
Make each task unambiguous. Two domain experts should reach the same verdict. Write a reference answer for each task.
-
Write the rubric. Binary checks. One criterion per check. Code graders first, then an LLM judge for what code can't check.
-
Calibrate the judge. Label 50 or more outputs yourself. Compare. Report raw agreement, kappa, and catch rate on failures. Fix the rubric where it misses. Re-grade.
-
Set the baseline. Run the current production version. Record the pass rate with its interval, pass^k, cost and latency. Pin the model versions, judge included.
-
Split off a held-out set. Keep 20 to 30% of tasks out of daily prompt work. More on this in the next section.
-
Run it in CI. Every prompt, model, retrieval or tool change runs the regression suite. Compare paired against the baseline. Block the merge on any safety failure or a significant drop.
-
Monitor production. Sample live traffic and run the judge on it. Spot-check a sample by hand weekly. Feed new failures back as tasks.
-
Retire saturated tasks. When a suite sits near 100% for months, it has stopped telling you anything new. Keep it as regression and build new capability tasks.
- Offline evals in CIOn every prompt or model change
- Launch gateThresholds agreed before the work
- Online monitoringJudge a sample of live traffic
- New failuresGo back into the eval set
Overfitting and contamination
Overfitting to your eval set. If you tune the prompt against the same 50 tasks every day, you end up with a prompt that is great at those 50 tasks. The score goes up. Users may not notice.
Fixes:
- Keep a held-out set you never look at while editing prompts. Check it only at release time. If the dev set score rises and the held-out score does not, you overfit.
- Refresh from production. Each week, add new failures from real traffic, so the eval tracks what users ask now.
- Vary phrasing. The 30 phrasings of the beach question exist for this reason. They test the behavior across the ways people ask.
Contamination. Public benchmarks can leak into model training data. Then a model "knows" the answers and the score overstates its ability. Oren et al. (2023) show ways to detect this in black-box models. Your private eval set built from your own users is much less exposed. Still, don't publish it, and don't paste it into tools that may train on inputs.
Vibe checks and the limits of evals
Vibe checks are trying a few prompts by hand and judging by feel. They help with discovery: finding new failure types, getting a feel for a new model. OpenAI's best-practices guide lists "vibe-based evals" as an anti-pattern for decisions. Use vibe checks to find what to test, then turn what you find into eval tasks.
What evals cannot do:
- They only measure what you wrote down. A 100% pass rate means "no failures of the kinds we thought of".
- A pass rate measures answers. To learn whether people trust the answer, follow the routine, or come back, pair evals with product metrics and user research.
- LLM judges inherit LLM weaknesses. Shankar et al. (2024) make this point directly, and it is why the human-labeled calibration set never goes away.
- Small suites give wide intervals. 50 tasks can catch a big regression. Ranking two close prompts needs more.
- Criteria change as you learn. Grading outputs is how you find out what "good" means (Shankar et al. call this criteria drift). Expect to rewrite the rubric.
- For health-adjacent advice, a qualified human still owns the policy the rubric encodes. A passing suite doesn't replace that sign-off.
Cost and latency
Count model calls first:
calls per run = tasks × trials
× (1 generation
+ judge criteria × judge samples)
The beach suite: 30 phrasings × 5 trials × (1 + 3 criteria × 1 sample) = 600 calls per run.
Switch the judge to Google's default of 4 samples per verdict and it becomes 30 × 5 × (1 + 12) = 1,950 calls.
Then multiply by tokens per call and your provider's current price. Judge calls are often longer than the generation, since they include the full answer and the rubric.
Ways to keep it cheap and fast:
- Code graders first. They cost nothing. Only send to the judge what code can't check.
- Tier the suites. A small smoke suite on every commit. The full suite with many trials nightly or before release.
- Batch APIs for non-urgent runs. Anthropic's Message Batches API and OpenAI's Batch API both cut cost by 50%, and return results later. Anthropic says most batches finish in under an hour. OpenAI states a 24-hour completion window. Use them for nightly runs. A merge check needs results in minutes.
- Run trials in parallel, within your rate limits.
- Sample production if volume is high, and judge the sample.
Track eval cost per run as a number, like any other infrastructure cost.
Which one when
- Single prompt, no code, want answers this week. Start with Claude Console Evaluate, OpenAI Datasets, or the Google Cloud console evaluation UI. You upload cases, compare versions and grade in a browser.
- Single prompt, engineers available, any provider. Start with promptfoo or DeepEval in CI. Config or pytest files live with the code and run on every change.
- RAG feature (retrieval-augmented generation: the AI answers from your documents). Start with Ragas, or Bedrock RAG evaluation on AWS. Both score retrieval and answers separately, and most RAG failures are retrieval failures.
- Agent on AWS Strands. Strands Evals SDK in development, AgentCore Evaluations in production. You get native trajectory and tool checks, and online sampling of live traffic.
- Agent on Google ADK. ADK eval (
adk eval, pytest) plus the Gen AI evaluation service. Trajectory scores and rubric metrics are built for ADK sessions. - On Google Cloud, comparing models. Gen AI evaluation service. Adaptive rubrics and model comparison, including third-party models.
- On AWS, comparing models. Bedrock model evaluation (judge or human jobs). No harness to build, and you can bring your own responses from non-Bedrock models.
- On OpenAI. Datasets plus graders. Plan your move off the old Evals API: the platform shuts down on 30 November 2026.
- Multi-provider, want rigor and sandboxed agent tasks. Inspect AI. It works with any provider.
- Need tracing plus evals in production. LangSmith, Braintrust, or Arize Phoenix. Evaluate live traces and turn bad ones into test cases.
- Regulated or health-adjacent advice. Any harness above, plus a human review queue. The judge grades at scale. A qualified human owns the rubric and the spot checks.
What each vendor offers
Anthropic
"Demystifying evals for AI agents" (engineering post). Defines task, trial, grader, transcript, outcome, harness and suite. Covers capability and regression evals, the three grader types, and pass@k and pass^k. Also covers starting with 20 to 50 tasks from real failures, grading the outcome by default, and calibrating model graders against humans. Use it as the team's shared vocabulary before you build anything. Read the post (the original /engineering/ URL redirects here)
"Define success criteria and build evaluations" (docs). How to write criteria that are specific, measurable, achievable and relevant. Worked examples of graders: exact match, cosine similarity, ROUGE-L, LLM Likert scale, LLM binary classification. Principles: be task-specific, automate grading, prefer volume over a few hand-graded cases, use a different model to grade. Use it when writing your first rubric and success criteria. Read the docs (the older "define success" URL now lands on this page)
Claude Console Evaluate tool. A no-code way to test a prompt: add test cases by hand, import a CSV, or have Claude generate them. Run them all at once, compare prompt versions side by side, and have subject matter experts rate outputs on a 5-point scale. Your prompt needs at least one variable, written in double curly braces around a name. Use it for a quick no-code check of a single prompt. Anthropic's July 2024 announcement describes the feature. Anthropic's docs no longer have a page for this tool. Check your Console before you plan around it. Read the announcement
OpenAI
OpenAI is retiring its Evals platform. Per the docs, evals became read-only for existing users on 31 October 2026, and the platform is scheduled to shut down on 30 November 2026. The docs point new users to Datasets. Don't start new work on the Evals API.
Evals API and dashboard (deprecated). Define an eval with a data schema and testing criteria (graders), upload a JSONL dataset, run it against a prompt, and see per-criterion results in the dashboard. Use it only to read or export existing evals before shutdown. Evals guide
Datasets. Build a dataset or upload a CSV, attach prompts, generate outputs, add human annotations (good/bad, critiques), and run graders from the dashboard. Use it for new prompt-level evals on OpenAI. This docs page also carries the Evals platform deprecation notice, so confirm the current status before committing. Datasets guide
Evaluation best practices. Eval-driven development. Process: define the objective, collect data, define metrics, run and compare, evaluate continuously. Names anti-patterns (vibe-based evals, generic metrics, biased datasets). Covers LLM-judge biases (position, verbosity) and recommends pairwise or pass/fail grading, reasoning before scoring, and calibrating judges against human feedback. Applies whatever stack you run. Evaluation best practices
Graders. Building blocks: string check (exact or contains), text similarity (BLEU, ROUGE, cosine, fuzzy match and others), score model (an LLM returns a score), Python (your own grade function), and multigrader (combines several, currently used only in reinforcement fine-tuning).
Use it as a menu of grader types, even outside OpenAI.
Graders guide
openai/evals repo. The original open-source framework and registry of benchmarks, with YAML-defined and model-graded evals. The README now points to the dashboard. Last push to the repo: April 2026. Use it for reference and examples. openai/evals on GitHub
Naming. Google's Vertex AI generative AI docs now redirect to docs branded Gemini Enterprise Agent Platform. The SDK code samples still import vertexai. The service is still called the Gen AI evaluation service.
Gen AI evaluation service. Evaluates models and agents. Methods: adaptive rubrics (recommended: auto-generated pass/fail tests for each prompt), static rubrics, computation-based metrics (ROUGE, BLEU), and custom Python functions. Works in the Cloud console or the Python SDK. Datasets can come from files, production logs, or synthetic generation. Supports comparing models, including third-party ones. Use it if you run on Google Cloud, or want auto-generated per-prompt rubrics. Gen AI evaluation service overview
Define your evaluation metrics. The rubric menu: GENERAL_QUALITY, INSTRUCTION_FOLLOWING, TEXT_QUALITY, multi-turn metrics, and agent metrics such as final_response_quality, hallucination and tool_use_quality. You can steer rubric generation with plain-language guidelines.
Define your evaluation metrics
Judge model (autorater) guidance. Two pages. "Evaluate a judge model" compares the judge with human ratings using balanced accuracy, balanced F1 and confusion matrices. "Configure a judge model" covers system instructions, response flipping (to reduce position bias in pairwise grading), multi-sampling (1 to 32 calls, default 4) and tuned judge models. Use it for the calibration step above, done Google's way. Evaluate a judge model · Configure a judge model
Agent Development Kit (ADK) evaluation. For agents built with ADK. Test files (one session, unit-style) and evalset files (many sessions, integration-style). Scores the tool-call trajectory, intermediate responses and final response. Criteria include tool_trajectory_avg_score, response_match_score, and rubric-based quality and tool-use checks. Others cover hallucinations_v1, safety_v1, multi-turn and user simulation. Efficiency metrics count tool calls, tokens and duration. Run it from adk web, pytest, or adk eval. The docs now live at adk.dev, which the official google/adk-docs repo lists as its homepage.
Use it if your agent is built on ADK.
ADK evaluation docs
AWS
Strands Evals SDK. The evaluation framework for Strands Agents: package strands-agents-evals, imported as strands_evals, Python 3.10+. Core pieces: Cases (input, expected output), Experiments (cases plus evaluators), and evaluators. Built-in evaluators cover output quality (with your own rubric), trajectory, helpfulness, faithfulness, correctness, safety (harmfulness, refusal, stereotyping), and agentic checks such as goal success rate and tool selection accuracy. It also has user and tool simulators and an experiment generator that drafts test cases.
Use it if your agent is built on Strands.
Strands Evals SDK quickstart · strands-agents/evals on GitHub
Amazon Bedrock evaluations. Four job types: programmatic (automatic metrics on your dataset or built-in ones), human workers (your team or subject experts), judge model (a second LLM scores each response and explains why), and RAG evaluations for knowledge bases. You can bring your own responses from non-Bedrock models. Use it to compare models or a knowledge base on AWS without writing a harness. Amazon Bedrock evaluations
Bedrock LLM-as-a-judge. Needs a generator model and an evaluator model. Built-in metrics plus custom metrics. Results show score histograms and per-response explanations, with the full report in S3. Bedrock LLM-as-a-judge
Bedrock RAG evaluation. Scores retrieval and generated answers for a Bedrock Knowledge Base or an external RAG source, against ground-truth answers. Bedrock RAG evaluation
Amazon Bedrock AgentCore Evaluations. Built for agents. Scores goal completion, tool-call accuracy and custom metrics. Runs online (sampled live traffic, results in CloudWatch), on demand for specific traces, or in batch. Works for agents hosted on AgentCore Runtime or elsewhere. AWS announced general availability in March 2026. Use it for production monitoring of AWS-hosted agents. How AgentCore Evaluations works · GA announcement
Open-source and other tools
- Inspect AI. Python framework for evals, including agentic tasks with sandboxed tools. Built by the UK AI Security Institute and Meridian Labs.
- promptfoo. CLI and config-file evals for comparing prompts and models across many providers, plus red teaming.
- DeepEval. Pytest-style LLM evals with ready-made metrics, run locally. Optional hosted platform (Confident AI).
- Ragas. Metrics and workflows for evaluating RAG and other LLM apps.
- LangSmith. Datasets, offline experiments, and online evaluation of production traces, from LangChain.
- Braintrust. Hosted observability platform for tracing and evaluating agents.
- Arize Phoenix. Open-source tracing and evaluation built on OpenTelemetry.
Common mistakes
- Shipping on a demo. One good answer says nothing about the rate. Run trials.
- Reporting a single number. "80%" without the interval and the task count hides how uncertain it is.
- Calling a 2-point gain a win. On 50 tasks it is noise. Compare paired: fixed against broken.
- Trusting raw judge agreement. 96% can mean the judge misses 40% of failures. Report kappa and catch rate.
- Grading with the same model that generated. Use a different model family where you can.
- One judge prompt for everything. Split criteria. One judge per check.
- 1 to 10 scales. Vague and unstable. Use binary checks or pairwise.
- Never reading transcripts. Transcripts show why the score moved, and whether the grader is wrong.
- Tuning on the test set. Keep a held-out set. Refresh from production.
- Grading the path when the outcome is what matters. Rigid step checks fail good solutions.
- Swapping the judge model without re-calibrating. Pin the version. Re-check against your labels.
- Only testing what should happen. Also test what should not (don't re-ask a known skin type, don't add a fourth step for a beginner).
- Letting the suite saturate. Near 100% for months means it stopped teaching you anything. Add harder tasks.
- Ignoring cost. Count calls per run. Tier suites. Batch the nightly run.
Glossary
- Agreement rate (raw): share of items where two graders give the same verdict.
- Balanced accuracy: the average of the true positive rate and true negative rate. Treats rare classes fairly.
- Baseline: the score of the current version, recorded before you change anything.
- Capability eval: a suite that measures what the system can do yet. Starts with a low pass rate.
- Cohen's kappa: agreement corrected for chance. 0 means no better than chance. 1 means perfect.
- Confidence interval: the range the true pass rate likely sits in, given your sample.
- Contamination: test items leaked into a model's training data, inflating scores.
- Criteria drift: the rubric changes as you read more outputs and learn what "good" means.
- Held-out set: tasks you never look at while tuning, used to check for overfitting.
- LLM-as-a-judge (autorater): a model that grades another model's output against a rubric.
- Paired comparison: running two versions on the same tasks and counting what flipped.
- Pairwise comparison: a judge picks the better of two answers.
- pass@k: chance at least one of k trials passes.
- pass^k: chance all k trials pass. The consistency number.
- Position bias: a judge favoring an answer because of where it appears.
- Regression eval: a suite that checks the system still does what it used to. Should sit near 100%.
- Rubric: the written criteria a grader applies.
- Self-preference: a judge favoring outputs from its own model.
- Verbosity bias: a judge favoring longer answers.
- Wilson interval: a confidence interval for a pass rate that works at small samples and near 0% or 100%.
Questions to ask your team
- What is the range on that pass rate, and how many tasks is it based on?
- On the same tasks, how many did the change fix and how many did it break?
- What are the judge's kappa and catch rate on the failures we marked by hand?
- What is pass^k, alongside the single-run pass rate?
- Do we keep a held-out set, and what does it score?
- What human labels was the judge calibrated on, and when did we last re-check them?
Go further
The AI for Product Managers course covers evals in two chapters. One explains how to judge AI quality and what to ask the team. In the lab, you build an eval for a vet clinic message assistant, run it three times, and read the judge's reasons.
Sources
All links opened and checked on 1 November 2026. Where a URL redirects, the final URL is listed.
Vendor docs
- Anthropic, "Demystifying evals for AI agents". Redirected from /engineering/demystifying-evals-for-ai-agents.
- Anthropic docs, "Define success criteria and build evaluations". The define-success URL redirects here.
- Anthropic, "Evaluate prompts in the developer console" (July 2024). The eval-tool docs page now redirects to #2. Anthropic's docs no longer have a page for this tool. Check your Console.
- Anthropic docs, Batch processing. 50% cost reduction.
- OpenAI docs, Evals guide, including the deprecation notice. Redirected from platform.openai.com.
- OpenAI docs, Datasets (evaluation getting started).
- OpenAI docs, Evaluation best practices.
- OpenAI docs, Graders.
- OpenAI, openai/evals repo.
- OpenAI docs, Batch API. 50% discount, 24-hour window.
- Google Cloud, Gen AI evaluation service overview. Redirected from cloud.google.com/vertex-ai.
- Google Cloud, Define your evaluation metrics.
- Google Cloud, Evaluate a judge model.
- Google Cloud, Configure a judge model.
- Google ADK, Evaluate. Redirected from google.github.io/adk-docs. adk.dev is the homepage of github.com/google/adk-docs.
- Strands Evals SDK quickstart.
- strands-agents/evals repo.
- Amazon Bedrock evaluations.
- Amazon Bedrock LLM-as-a-judge.
- Amazon Bedrock RAG evaluation. Page loads. Content summarized from #18.
- Amazon Bedrock AgentCore Evaluations, How it works.
- AWS What's New, AgentCore Evaluations GA. Posted 31 March 2026.
Tools
- Inspect AI.
- promptfoo.
- DeepEval.
- Ragas.
- LangSmith evaluation concepts. Redirected from docs.smith.langchain.com/evaluation.
- Braintrust. Redirected from braintrust.dev/docs.
- Arize Phoenix.
Papers and statistics
- Zheng et al. (2023), "Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena". Sections 3.3 and 3.4 read.
- Wang et al. (2023), "Large Language Models are not Fair Evaluators".
- Panickssery, Bowman, Feng (2024), "LLM Evaluators Recognize and Favor Their Own Generations".
- Shankar et al. (2024), "Who Validates the Validators?".
- Kulal et al. (2019), "SPoC: Search-based Pseudocode to Code" (first use of pass@k, as credited by Chen et al.).
- Chen et al. (2021), "Evaluating Large Language Models Trained on Code" (unbiased pass@k estimator). Title checked only.
- Yao et al. (2024), "τ-bench" (pass^k).
- Miller (2024), "Adding Error Bars to Evals".
- Oren et al. (2023), "Proving Test Set Contamination in Black Box Language Models". Title checked only.
- Wilson (1927), "Probable Inference, the Law of Succession, and Statistical Inference", JASA. DOI metadata via Crossref.
- Cohen (1960), "A Coefficient of Agreement for Nominal Scales", Educational and Psychological Measurement. DOI metadata via Crossref.
- Feinstein and Cicchetti (1990), "High agreement but low kappa: I. The problems of two paradoxes", J Clin Epidemiol. DOI metadata via Crossref.