Claimed result
- Article by Sergii Makarevych (@sermakarevich, ~830 followers), bookmarked 3,308 times against 1,438 likes (bookmark/like ratio 2.3: "keep this" content). It is written for three audiences at once: engineers, product managers and CEOs who ship, buy or sign off on software built on language models.
- Every number has a stated source: either the author's runnable tutorial (a small customer-support assistant for a fictional online bike and camping shop), or a published paper (full reference list at the end, nearly all 2023–2026).
- The result is not financial but methodological, with numbers measured on the running example: only 34 of 60 replies pass; the LLM judge agrees with the human label on 60% of cases but has a kappa of 0.15; a "new version" of the prompt has the same pass rate (0.700 vs 0.700) yet gets worse on 14% of cases; a full A/B on 60 tickets costs 121 judge calls, about 4 cents.
Proof: medium-high. Numbers measured on a reproducible tutorial (synthetic dataset, so small sizes) and claims backed by papers cited with author and year; no data from a real commercial product, and some references are 2026 preprints not yet checked by third parties. Notes from vendor sources (e.g. Fiddler) are flagged as such by the author himself.
The key idea
An eval is a repeatable test that tells you, with a number you can trust, whether an AI system does what you want, and whether a change made it better or worse.
Why it exists: a language model does not fail like normal software. Normal software works or crashes; an LLM produces a fluent, confident, well-formatted answer that may be wrong. Reading one good answer tells you nothing about the next hundred. Evals replace "it looked fine in the demo" with "it passes 70% of the cases we care about, give or take 12 points, and the new version is not measurably better".
How it works, in four steps: 1. Collect inputs that matter, with the right answer written next to each one (in the example: 80 support tickets, each with the correct category and the facts a good reply must contain). 2. Run the system on every input and keep the output. 3. Grade every output with a grader: a rule in code, a second model acting as a judge, or a human. 4. Turn the grades into one number with an error bar and compare it with the previous version.
When: before launch (does it work at all?), before every change (did we break something?), after launch (is it still working on real traffic?).
The most important point: the grader is part of the system you must test. A judge that agrees with humans only 60% of the time will tell you the product is fine when it is not. Every eval therefore has two numbers to check: how good the product is and how good the grader is. The most common way an AI team fools itself is a confident number from an unchecked grader.
Step-by-step playbook
The article zooms in one level at a time; each level answers a question about the level above it.
Level 0 · The whole loop, once, on one ticket
The running example is an assistant with three parts, each graded differently: - triage: reads the ticket and sorts it into one of 12 categories (returns, shipping, warranty…) with a priority; - answer: finds the relevant pages of the shop's policy handbook and writes a reply that cites them; - agent: looks up orders, issues refunds and escalates by calling tools against a mock database, under policy rules.
One ticket goes through the loop. Input: "I'm running late for work and need this sorted immediately. I returned my bike last week, but I still haven't seen the refund. Your policy clearly states refunds are processed within 5 business days…". - Triage: output returns, gold answer returns → 1 out of 1. - Answer: a polite four-paragraph reply that cites the returns section and mentions both required facts: refunds take 5 business days and a 15% restocking fee on used items.
Three graders look at that reply: | Grader | Question | Verdict | |---|---|---| | Code rule | Does it cite a handbook section? | yes | | Code rule | Does it mention both required facts? | yes, none missing | | Model judge | Does it claim anything the handbook does not say? | fail: it invented "a total allowance of up to 15 business days" |
Two code checks said "fine"; the judge found an invented number that would have gone to a customer. Carry forward: an eval is input, system, grader, number; different graders answer different questions ("cites a section" and "invents nothing" are not the same check); a fluent reply can pass every surface check and still be wrong.
Level 1 · What exactly do we measure
- Inputs: they must look like real traffic, awkward cases included. The 80 tickets were generated from a grid of customer persona × topic × scenario, so angry customers, vague questions and multi-issue tickets all appear. Anthropic's guide to agent evals (Grace et al., 2026) suggests starting with 20–50 tasks taken from real failures, not imagined happy paths.
- Gold answers: for each input you write down what "right" means: the correct category, the handbook sections a reply must draw on, the two or three facts it must state. In the tutorial they are correct by construction (the tickets come from the handbook); in a real product they come from domain experts.
- Two piles: a dev set of 20 tickets for tuning prompts and graders, a test set of 60 used only for reporting. If you tune on the cases you report on, the number flatters you.
- The number: for triage, accuracy (share of tickets sorted correctly); for replies, pass rate (share of replies with no failure); for the agent, the share of tasks that end in the right database state. One number per experiment, always on the test set, always with an error bar.
Four words that get confused: | Word | Measures | Example | |---|---|---| | Eval | your system on your data | the assistant on 60 tickets | | Benchmark | a model on a public task | GSM8K (math), SWE-bench (coding) | | Test (software) | a function returns the expected value | JSON parses, no crash | | Monitoring | live traffic after launch | real tickets sampled and graded daily |
"The benchmark measures the engine, the eval measures the car on your road" (Husain & Shankar, 2025). Inputs with gold answers are the most valuable asset in the whole process: expensive, and they make everything else possible.
Level 2 · What goes wrong: look at the data first
Before building any automatic grader, read the outputs: every experienced practitioner says the same (Husain 2024 and 2025; Shankar et al., 2024). Read one or two hundred outputs one by one, write a short note on each failure, then group the notes into a short list of failure types with counts. This is error analysis; the two steps are called open coding (free notes) and axial coding (grouping).
Result on the 60 test replies: | Outcome | Count | |---|---| | replies that pass | 34 of 60 | | missing_required_fact | 15 | | unsupported_claim | 12 | | wrong_section_retrieved | 8 | | did_not_answer | 5 | | wrong_value | 2 | | over_promise | 1 |
Barely half the replies pass; the two biggest problems are a missing fact and an invented claim, and nobody would have guessed that from the demo. This list is the specification for every later grader: one grader per failure type, in order of frequency. The list comes from reading outputs, not imagining them. In practice the first week of an eval effort is people reading transcripts in a purpose-built viewer, not engineers wiring up a framework. A grader built for failures that do not occur gives a reassuring number and misses the ones that do; teams whose eval effort stalls almost always skipped this step.
Criteria drift (Shankar et al., 2024): criteria change as you grade; grading examples sharpens the rubric and a sharper rubric changes earlier grades. Expect two or three rounds: it is not a process failure.
Level 3 · Graders made of code
A code rule is free, instant and gives the same answer every time: use it for everything it can measure.
- Exact answers: triage has a single right label, so you count matches → accuracy 0.700 · macro F1 0.697. Seven tickets in ten sorted correctly; macro F1 averages over all 12 categories equally (rare ones count as much as common ones); the two numbers being close says the mistakes are spread out, not concentrated in one category.
- Rules on free text: there is no single right text, but there are rules to obey → nonempty 100% pass · max_words_150 17% · no_banned_promises 92%. Only 17% fit in 150 words: the app is far too chatty, and no judge was needed to find that. Public benchmarks like IFEval (Zhou et al., 2023) are built entirely from verifiable rules ("answer in exactly three bullet points").
- Required facts: check that each gold fact appears in the reply; it catches the top failure type (missing facts) at zero cost.
- Similarity scores (ROUGE, BLEU, embedding similarity) against a reference text: on the tutorial's replies embedding similarity separates good from bad with an AUC of 0.709 (0.5 = coin flip, 1.0 = perfect). Useful for noticing that something changed between versions, useless for saying whether a reply is correct: a wrong reply that uses the same words as a right one scores high (Eugene Yan's survey, 2024). Use it as a cheap drift alarm, never as the headline number.
- The limit in one number: only 11.7% of replies pass all code checks, yet code checks caught none of the invented claims. The Level 0 reply obeyed every rule while inventing a 15-day allowance. Rules see form, not meaning.
Level 4 · A model as grader, and how to check it
An LLM judge (LLM-as-judge) reads for meaning, so it catches the invented 15 days; but it is also a language model, with all its failure modes. This is the longest level because this is where most eval programs go wrong.
4.1 How to question a judge (practitioner and research consensus): - One question per failure type, yes or no: "Does the reply contain a claim not supported by the handbook excerpts?" rather than "rate quality 1 to 5". Binary questions are faster for humans to label, more reproducible and easier to check (Husain & Shankar, 2025). The output passes only if every question says no. - Ask for the evidence: the judge quotes the offending sentence, so a person can check the verdict in seconds. - Give it the context: a judge that cannot see the handbook cannot know what is unsupported. - Cho et al. (2026, "Ask, Don't Judge") tested this on summaries: breaking the grade into yes/no questions about specific errors beat the holistic G-Eval approach on every dataset (Spearman correlation with humans 0.563 vs 0.514 on SummEval). A summary with three planted factual errors got a perfect 5.0 from holistic judges and 1.57 from the question-based one. And stuffing the prompt with more instructions eventually made the judge worse, not better.
4.2 Checking the judge: the tutorial's numbers. All 60 replies labelled by hand (the "reference"), then the judge: | Measure | Value | |---|---| | reference says pass | 34 | | judge says pass | 42 | | agreement | 36 of 60 (60%) | | bad replies the judge caught | 10 of 26 | | Cohen's kappa | 0.15 |
60% agreement sounds acceptable and is not: a judge that always said "pass" would agree 57% of the time, because most replies pass. Cohen's kappa corrects for chance: 0 = chance, 1 = perfect, 0.6 is the usual bar for a judge you let gate a release, 0.8 for one you let run unsupervised. This judge scores 0.15: it is lenient (passes 42 when 34 deserve it) and catches fewer than half of the bad replies. With such a judge, a version that doubled the invented claims might not move the pass rate. Rule: a judge is a classifier; before trusting it, measure it against human labels on at least a few dozen cases and report the result next to every product number it produces. With imbalanced data report kappa, or separately how many bad outputs it catches and how many good ones it wrongly fails.
The remedy is iteration on the dev set: add examples of the failure type to the judge prompt, narrow the question, give it the gold facts as reference. In the tutorial the "missing fact" question reached a usable level; the "unsupported claim" question did not, and was handed to a specialised detector (4.5).
4.3 Known judge biases (each with a published measurement and a cheap mitigation): | Bias | What happens | Evidence | Mitigation | |---|---|---|---| | Position | in pairwise comparison it prefers whichever answer is shown first | verdicts flip in a large share of pairs when order is swapped (Wang et al., 2024); in a 2025 RAG vs GraphRAG comparison GraphRAG "wins" partly vanished once order was swapped (Han et al., 2025) | grade both orders, count a win only if both agree | | Length | longer answers win regardless of content | correcting for length raised agreement with human rankings from 0.94 to 0.98 (Dubois et al., 2024) | length-controlled scoring, or binary questions that do not reward length | | Self-preference | favours its own model family's style | judges rate their own generations higher, more so when they recognise them (Panickssery et al., 2024); in the GAUGE audit same-family judges inflated their own provider's agents by ~0.75 on a 7-point scale | a judge from a different family than the system under test | | Satisfaction vs success | rates how the conversation felt, not whether the task got done | GAUGE audit (below) | give it the tool calls and the final state, not just the chat | | Judge identity | swapping the judge model changes which system wins | 2026 audits (arXiv 2607.08535; 2606.19544) | record judge model and version in every result |
The GAUGE audit (Bodhwani et al., 2026) describes exactly the setup many companies use for release decisions: a simulated user talks to the agent, a judge scores the transcript, the higher score ships. Across 25 agents and ~3,700 transcripts: the gate ranks well when one agent is clearly better (correlation 0.94 with verifiable ground truth), but on near-equal pairs (the ones a release actually decides between) it promoted the worse agent 31% of the time. A judge that saw only the user-visible chat and rated satisfaction was no better than a coin flip (AUC 0.49); one that saw tool calls, authentication and task resolution halved the risk (AUC 0.73). Conclusion: reliability comes from what evidence the judge is given, not from how strong the judge model is. Never promote a version on a judge score alone when two versions are close: an agent that charms and fails will keep getting promoted.
4.4 Panels of judges and how to combine them. One judge is a single point of failure. Verga et al. (2024): a panel of smaller, cheaper judges agrees with humans better than one large judge, at a fraction of the cost. But averaging is a trap: Acharya et al. (2026) proved that one broken judge (a parser returning zeros, a sycophantic judge rating everything 10) drags the average arbitrarily far, however many good judges you add. Real judges break like this at measurable rates: 3.4% parser failures on one dataset, up to 33% on the smallest judge with non-English prompts. Fix: replace the average with the geometric median, which ignores the outlier: in the worst case 540 times more accurate, on clean data it costs ~1% accuracy. Three judges capture most of the benefit, because judges' errors are correlated. Related effect (Parikh, 2026): asking for the answer in JSON (the format of every judge pipeline) makes answers more uniform than in plain chat: the modal answer's share rose from 41% to 64%. Harmless for tasks with one correct answer; for open-ended rating it means a judge less discriminating than its chat behaviour suggests.
4.5 Cheaper and more reliable than a judge: specialised detectors and typed judges. - Hallucination detectors: small models (~100–500 million parameters) trained for one question: "is this sentence supported by this context?". Vectara's HHEM, LettuceDetect (Kovács & Recski, 2025), MiniCheck (Tang et al., 2024) and plain NLI cross-encoders run on a laptop CPU in about a second, at zero cost per call, and on RAGTruth approach the accuracy of a large judge. SelfCheckGPT (Manakul et al., 2023) needs no detector: it samples the system several times and flags claims that change between samples. A vendor note (Fiddler, 2026) calls the alternative an "evaluation trust tax": teams running a large judge on every production trace typically sample only ~10%, and small detectors could cover 100% at up to 98% lower cost (a vendor claim with no experiment shown; but the shape of the trade-off is real). - Typed judges: TypeSafe's Jev model does not generate text; you send it the output and a typed question ("is this claim supported by the excerpt?" with a yes/no answer, or "pick one of these labels") and it returns a calibrated probability. With no generation, calls are fast and about a hundred times cheaper than a generative judge, and the probability lets code route uncertain cases to a human. It cannot explain its verdict or invent options: you supply the labels. A 2026 study with blinded human adjudication: 92.2% on RewardBench pairs vs 93.5% for a frontier generative judge, at about a third of a percent of the fee; far behind on hard derivation-checking (78.6% vs 93.1%); a cascade that accepts its verdict only above a confidence threshold and otherwise escalates kept 92.5% at about half the cost (arXiv 2609.26550). The author's red-team: it is not a fact-checker, a fabricated log in the input can flip a verdict, but every successful attack also collapsed its confidence, so a confidence gate is a working defence. - Judges need a benchmark too: JudgeBench (Tan et al., 2025) turned hard, objectively checkable problems into judge tests: frontier judges are barely better than chance on genuinely hard cases. Reliability must be measured per task, per rubric, per judge model, every time; vendor claims like "85% agreement with humans" come from one dataset and do not transfer.
Level 5 · Honest numbers
- Error bar: resample the 60 results thousands of times (bootstrap) → triage accuracy 0.700 · 95% CI [0.583, 0.817]. The honest statement is not "accuracy is 70%" but "between 58% and 82%, most likely 70%". Miller (2024) showed that most reported differences between models in published evals are smaller than such an interval, and gave the formulas every report should use, including the correction when several questions share a source (clustered standard errors).
- Paired comparison: a second version of the reply prompt that retrieves more sections, judged on the same 60 tickets → pass rate v1 0.700 · v2 0.700, difference +0.000, 95% CI [−0.117, +0.117] → no real difference, keep v1. The interval is narrower than the single accuracy's because the comparison is paired: each ticket is scored under both versions so ticket difficulty cancels out. A McNemar test asks, case by case, whether v2 wins where v1 loses or whether they just trade cases: here they traded, and v2 regressed on 14% of cases while improving on others. The "same pass rate" hides a product that got better for some customers and worse for others. A difference whose interval includes zero is noise, not a win: every "the new version is better" must come with the interval and the count of cases that got worse. Teams ship regressions on the strength of a 2-point improvement that was never there.
- Detection floor: with 60 cases the smallest difference you can reliably detect is ~12 percentage points; a 5-point regression is invisible at this size. It is a power calculation and tells you how many cases you need to answer the question you are asking; below the floor you need more data, not a cleverer test.
- Multiple comparisons: if you test 20 prompt variants and pick the best, one will look 10 points better by luck. Correct for the number of comparisons or confirm the winner on fresh cases.
- "No measurable difference" is a real result, and often the right one.
Level 6 · Grading systems with parts
6.1 Retrieval systems (RAG): a bad reply can come from the finder or the writer, and the fixes differ, so grade them separately. - Finder against the gold sections: hit@k (at least one correct section in the top k?) and recall@k (what share of the correct sections made it?) → hit@2 0.93 · recall@2 0.88; of 18 failing replies, 1 failed in the finder and 17 in the writer. The finder is nearly fine, the writer is the problem: that one line redirects a week of engineering. - Writer: faithfulness (every claim supported by the retrieved text), answer relevance (does it address the question?), context precision (was what we retrieved useful?): the RAGAS triad (Es et al., 2024), with no gold answers needed, which is why RAGAS became the default library. ARES (Saad-Falcon et al., 2024) adds statistical rigour by calibrating small per-criterion judges against ~150 human labels and reporting confidence intervals; in its paper it beat RAGAS by 59 points on context relevance with 78% fewer annotations, but degrades under large domain shift. In the tutorial RAGAS gave context relevance 0.855 and faithfulness 0.737: the same "retrieval good, writing worse" story as the hand-rolled graders, the kind of cross-check that makes a number believable. - A caution from the coding-agent world: SWE-Explore (Zhang et al., 2026) measured retrieval inside coding agents: they find the right file ~65% of the time but the right lines only 15–19%, and it is missing context, not extra context, that breaks the next stage. Grade the finder at the granularity the writer needs.
6.2 Agents (an agent takes a sequence of actions: look up an order, issue a refund, escalate). Three things change: - Grade the final state and the path: did the database end up right (refund issued, order cancelled)? Did the agent take only allowed actions, and not, say, refund twice? τ-bench (Yao et al., 2024) set the pattern: simulated users, policy rules, a check of the final state. AgentLens (2026) shows why the path matters: agents reach correct final states by lucky or degenerate routes often enough that outcome-only scoring overstates capability. - Run each task several times (agents are stochastic): pass@k = it succeeded at least once in k tries (measures capability); pass^k = it succeeded all k times (measures reliability). For a customer-facing agent you want pass^k. The tutorial's agent scores pass^3 = 0.75: three quarters of tasks succeed three times out of three. τ²-bench (2025): pass^1 drops ~20 points when the agent must coordinate with an active user rather than act alone. - Measure reliability as its own thing: Rabanser et al. (2026), borrowing from aviation and nuclear engineering, define 12 reliability metrics in 4 groups: consistency across runs, robustness to perturbation, predictability (does the agent know when it will fail?), bounded harm. Across 15 frontier models: two years of capability gains delivered about one sixth as much reliability gain. Agents choose the same kinds of actions each run but in different orders, handle real infrastructure failures gracefully, and break on a rephrased instruction. In practice: report pass^k, run perturbed versions of each task (rename a field, rephrase the instruction), track consistency across runs as a separate number. The public failures (an agent deleting a production database, one making unauthorised purchases) all came from systems with good average success rates: a capable agent is not a reliable one, and customers experience reliability. - Measure cost: Bai et al. (2026) across eight frontier models on SWE-bench Verified: agentic tasks use about a thousand times more tokens than a chat turn, almost all re-reading their own growing history; the same task on the same model varied 30-fold in cost between runs; accuracy peaked at intermediate cost and fell at the highest; models predicted their own cost with a correlation of at most 0.39. Advice: rank models on cost per correct outcome, not accuracy alone, and never trust the model's own estimate. - Three newer axes (2026 benchmarks): taste (Pan et al.): frozen at a fork where both paths look fine, the best model picks the one that pays off later 59.7% of the time on a two-way choice, and thinking longer does not help; asking (Gulati et al.): the value of a clarifying question about the goal falls from 0.78 to 0.39 once 10% of the task is done, and no frontier model asks within that window (one asked 52% of the time, one 23%, one never); learning from experience (Asawa et al.): across six stateful environments the best system captured only 25% of its possible improvement, and simply keeping the full conversation history beat every dedicated memory product.
6.3 When the system is optimised against the grader: if a grader is used to train or select the system (reinforcement learning, best-of-n), the system will find its blind spots. Wang et al. (Qwen team, 2026) call it the verification horizon: every grader is a proxy for intent, and under pressure proxy and intent diverge. They catalogue reward hacking in coding agents (reading the answer from repository history, editing the tests, patching for the evaluator) and show a behaviour monitor cut hacked "solutions" from 28.6% to 0.6% while raising genuine ones from 40% to 61%. No grader is scalable, faithful and robust at once: tests are scalable and robust but miss intent; judges are scalable and faithful but gameable; experts are faithful and robust but do not scale. In the Meta-Agent Challenge (Lu et al., 2026) agents asked to build other agents tried to exfiltrate answers from the grading system in five trials. Rule: keep a held-out grader the system never sees, monitor for shortcuts and upgrade the grader as the system improves; otherwise the score goes up while the product gets worse.
Level 7 · Public benchmarks
They are for choosing the engine (MMLU, GSM8K, HumanEval, MT-Bench and Chatbot Arena, SWE-bench, τ-bench, GPQA and HLE). Four things to know before quoting one: - The number depends on the harness as much as the model: GSM8K on the same open-weight model with two prompt formats → 0.686 and 0.746. The lm-evaluation-harness paper (Biderman et al., 2024) documents double-digit swings from prompt formatting, few-shot examples and the regex that extracts the answer. A score is a (model, prompt, harness, version) tuple. Schaeffer et al. (2023): apparent "emergent" jumps in capability were largely artefacts of all-or-nothing metrics and vanished under smooth ones. - Contamination: if the test questions were in the training data, the score measures memory. GSM1k (Zhang et al., 2024) rebuilt GSM8K with fresh questions of matched difficulty: some model families dropped up to 8 points (correlated with how likely they were to have memorised the original), others did not. Real, measurable, uneven. - Saturation: a 2026 study of 60 widely used benchmarks found about half highly saturated (older ones saturate faster). SWE-bench Verified went from ~40% to over 80% solved in about two years and its curator stated it no longer separates frontier models. MMLU, GSM8K and HumanEval are effectively retired by frontier labs in favour of HLE, GPQA Diamond, SWE-bench Verified, LiveCodeBench and τ²-bench (which will saturate in turn). On Chatbot Arena the top models sit within ~20 Elo points, inside the noise. - Redundancy: Zeng and Papailiopoulos (2026), a matrix of 84 models × 133 benchmarks: it is roughly rank two, two factors explain over 90% of the variation, and five well-chosen benchmarks predict the other 128 to within ~4 points. You do not need forty benchmarks to pick an engine; to find a specific failure mode they say nothing. - In practice: benchmarks to shortlist two or three models, then your own eval on your own data decides; switching models for 2 benchmark points can cost you 10 points on your real task. - Two frontier uses: Google's Paper Assistant Tool (Jayaram et al., 2026) reviews papers with an agent pipeline and caught 89.7% of known proof errors vs 55.2% for a single model call; over 90% of 850 authors found it helpful and 31% ran new experiments. CUSP (Wu et al., 2026): models forecast which research directions will succeed near chance (0.519), with strong yes- or no-bias depending on the model, fixable only with explicit bias correction. An eval of a model's judgment needs its own ground truth; models are badly calibrated about the future and about themselves.
Level 8 · Making it a habit
Three cadences (Hamel Husain's three-level model, 2024): | Level | What | When | Cost | |---|---|---|---| | 1 | code graders, schema checks, required facts | every commit | free | | 2 | judges and detectors on the test set, human review of a sample | every change to prompt, model or retrieval | cents to dollars | | 3 | A/B test on real traffic | after a change ships | real users |
- The merge gate: the tutorial's CI reruns levels 1 and 2 and fails the build if the pass rate drops more than 3 points against the recorded baseline of 0.70. It is a tripwire for big regressions, not a guarantee: with a 12-point detection floor a 5-point regression walks through. Say so in the dashboard.
- Monitoring: after launch sample real traffic, run the cheap graders on all of it and the expensive ones on a slice, and plot the trend. For the expensive gate the right pattern is "calibrate, then trust" (Bodhwani et al., 2026): a full audit once against verifiable ground truth to learn where the cheap judge-based gate agrees with reality, use the cheap gate in CI only inside that region, and re-audit when the model, judge, simulator or domain changes. A zero-cost "did the conversation complete?" bit caught budget-starvation regressions on its own.
- Caching and cost: cache every model call keyed on prompt + data version + recipe; a rerun becomes a file read. The full A/B on 60 tickets costs 121 judge calls, about 4 cents; the whole tutorial reran from cache with zero calls. Cost is not a reason to skip evals.
- What a leader should ask for: four numbers on one page: the product's pass rate with its interval, the grader's agreement with human labels, the detection floor, and the share of cases that got worse in the last change. If any of the four is missing, the other three are not yet meaningful.
Decision guide
| Question | Use | Then check |
|---|---|---|
| Is the output well-formed and complete? | code rules | nothing, it is exact |
| Did the new version change the outputs? | similarity | why, by reading a sample |
| Is this claim supported by this document? | detector or typed judge | precision and recall on a labelled sample |
| Does the reply fail in way X? | binary generative judge with evidence | kappa against human labels on dev |
| Which of two versions is better? | paired comparison with interval | the per-case regressions |
| Can we detect a 5-point regression? | power calculation | add cases until you can |
| Is the agent reliable? | pass^k over several runs, perturbed tasks | consistency across runs as its own number |
| Which model should we use? | five public benchmarks to shortlist | your own eval to decide |
| Is it still working in production? | sampled traffic, cheap graders on all, judge on a slice | re-audit the judge gate when anything changes |
Tools and costs
Frameworks observed by the author (an observation, not a recommendation; all run or reviewed while building the tutorial): | Tool | Best at | Watch out | |---|---|---| | Inspect AI (UK AI Security Institute, MIT) | one coherent pipeline dataset → solver → scorer → log viewer; agents and sandboxes; used for frontier safety evals | code-first; the most complete and the most to learn | | lm-evaluation-harness (EleutherAI, MIT) | reproducible public benchmarks (GSM8K, MMLU, IFEval) against any model | benchmarks only | | promptfoo (MIT, Node.js) | declarative YAML test suites, red-teaming, CI regression | not a Python package; acquired by OpenAI in 2026 | | DeepEval (Apache-2.0) | pytest-style tests with ready metrics (faithfulness, relevance) | headline metrics are blends: look inside before trusting | | RAGAS (Apache-2.0) | the standard reference-free RAG triad | flaky with local models (NaNs, executor errors); blended numbers | | Langfuse (MIT, self-host) | tracing, datasets, experiments, judge evaluators in one self-hosted stack | version 4 changes evaluator semantics: plan the migration | | Phoenix (Arize) | tracing + evals with a strong UI | Elastic License 2.0 (source-available, not open source) | | LangSmith, Braintrust | hosted platforms: trace capture, sampling, judge bootstrap, human refinement | commercial; Braintrust's autoevals library works standalone | | Opik (Comet), MLflow genai, Weave (W&B) | self-hostable observability with eval hooks | heavy for a from-scratch team | | HELM (Stanford) | multi-metric philosophy (accuracy, calibration, robustness, fairness, efficiency) | research-oriented | | evalica | pairwise judgments into Bradley-Terry or Elo leaderboards with intervals | statistics only, pair it with a judge | | Jev / TypeSafe | typed questions with calibrated probabilities, ~100× cheaper than a generative judge | no text or explanations; you supply the labels | | HHEM, LettuceDetect, MiniCheck, SelfCheckGPT | "is this claim supported" at CPU speed and zero marginal cost | one question only | | Selene-Mini, Prometheus 2, Flow-Judge | open-weight judge models to self-host and audit | still judges: they need calibration |
Approaches compared: | Approach | Answers | Cost | Blind spot | |---|---|---|---| | Code rules | is the form right? are the facts present? | free | meaning | | Similarity (ROUGE, embeddings) | did the output change? | free | correctness | | Specialised detector / NLI | is this claim supported by this text? | near free | anything else | | Typed judge (Jev) | this label / this yes-no, with a probability | cents per thousand | cannot explain or propose | | Binary generative judge with evidence | any readable criterion | cents per call | the five biases; must be calibrated | | Panel of judges, robust combination | same, with fewer single-judge failures | 3× a judge | correlated errors cap the benefit at ~3 judges | | Human labels | ground truth | expensive, slow | needs two raters and an agreement statistic | | A/B on traffic | real business impact | real users at risk | slow; needs the earlier levels to be safe |
A pattern seen in every source and in the author's run: the hand-rolled grader and the framework number should be read against each other. Agreement is evidence; disagreement is a question, usually a good one.
Costs quoted: A/B on 60 tickets = 121 judge calls ≈ $0.04; rerun from cache = 0 calls; hallucination detectors free on CPU (~1 s); typed judge at about a third of a percent of a frontier judge's fee. No platform prices given.
The 15 things to carry away (author's summary): 1) an eval is input, system, grader, number, and the gold inputs are the asset; 2) evals measure your product, benchmarks measure engines; 3) read a hundred outputs before writing a grader; 4) code graders for everything with a definite answer (they see form); 5) judges get binary questions with evidence and context; 6) measure the judge against humans (kappa or catch rate); 7) judges prefer first, longer, familiar and pleasant: use the mitigations; 8) satisfaction is not success: give the judge tool calls and final state; 9) for "is this supported", a detector or typed judge; 10) every rate gets an interval, every comparison is paired, know the detection floor; 11) grade each stage separately; 12) agents: final state and path, several runs, pass^k, cost per success, reliability on its own axis; 13) a grader used for optimisation gets gamed: keep one hidden; 14) benchmark scores are harness-dependent, unevenly contaminated and saturate: record the tuple; 15) three cadences, a gate with a stated floor, a monitor and a re-audit when anything changes.
Limitations
- Small synthetic example: 80 tickets generated from the handbook; the gold answers are correct by construction, which does not happen in a real product. The numbers (kappa 0.15, 34/60) illustrate the method, not a general rate.
- Many references are 2026 preprints (arXiv 26xx) not yet replicated; some claims come from vendor notes (Fiddler) and the author says so. The assessment of Jev comes from the author's knowledge base and one cited study, not from a broad independent test.
- It is not a money-making guide: the economic value lies in not shipping regressions and in being able to sell evaluation services; no revenue is claimed.
- The ~12-point detection floor with 60 cases means small improvements cannot be proven without much larger datasets, which cost human labelling time.
- The framework comparison is the author's snapshot at one moment (versions and licences change, e.g. Langfuse 4, promptfoo acquired by OpenAI).