Can version 9 ship?
A hotel-booking site runs an assistant that answers guests in chat: whether a booking can still be cancelled for free, when check-in opens, whether a cot fits in the room. Guests found its answers long, so an engineer rewrote the prompt to be shorter, and the product manager asks whether version 9 is better than version 8. The engineer pasted 15 questions into both and read the answers side by side. Version 9 looked better on 13.
A reasonable first look, and a poor release decision. The 15 questions are the ones the prompt's author had in mind, out of some 40,000 conversations a day. The same question asked twice can get two different answers. And "looked better" is one person's reading on one afternoon, which nobody can repeat for version 10 next month.
A model that predicts a label or a number is easier to score: compare its outputs with known answers (serving and rolling out such models is Model serving: inference, versions & safe rollout). A chat answer has no single correct string. The team needs the same idea adapted to free text: a fixed set of cases, a scoring method that repeats its verdicts wherever it can, and a rule saying which result stops the release. Run before release rather than on live traffic, that is an offline eval.
Cases from the conversations guests actually have
The cases come from production. The team samples logged conversations by topic, not only by volume: cancellations are almost a third of the traffic, but rare questions about pets, accessible rooms and group bookings still have to be right. The result is the golden set, 1,200 cases in its third version. Each case holds:
- The input: the guest's message and everything the assistant saw, including the booking record and the hotel's cancellation policy as they were then, frozen so the expected answer stays valid after the policy changes.
- What a good answer must do: an exact fact where there is one (cancelling booking HX-4471 now costs €312, the full amount, because its rate is non-refundable) and written criteria where there is not.
- Tags, such as topic, language and rate type, so results can be read per slice of the set and not only as one total.
Names, emails and phone numbers are removed first, since every future run copies the case, and no golden case appears among the examples inside the prompt under test. The set is versioned like code: a score means something only next to the set version it was measured on.
What code can grade, and what it cannot
Many cases can be graded without any model. Code can check that the answer states the fee computed from the case's booking, is in the guest's language and parses into the structure the chat widget renders. These deterministic checks are cheap, fast and give the same verdict every time they see the same answer, so the team writes one wherever a rule exists.
What is left is open-ended. Did the answer address what the guest asked? Is the tone right for someone whose flight was just cancelled? When the policy says nothing about pets, did it say so instead of inventing a rule? No string comparison decides that, and people grading 1,200 answers per candidate is too slow for every change.
A model grading a model
An LLM judge is a second model call that receives the guest's message, the candidate's answer and the case's criteria, and returns a verdict per criterion with a short reason. Here a case passes only when every deterministic check and every criterion graded for it pass. Specific questions work better than a general score: Does the answer tell the guest what to do next? yes or no is more repeatable than Rate helpfulness from 1 to 10, whose scale drifts from one call to the next.
The judge's prompt sits in the Prompt Registry beside the assistant's, and every score records that prompt's version and the judge's model; change either and the scores move, so runs graded by different judges are not compared.
It also has biases. Comparing two answers, judges tend to favour one position, often the first (position bias), so pairs are compared in both orders, and a pair whose two verdicts disagree counts as a tie. They tend to prefer longer answers (verbosity bias), awkward when version 9 exists to be shorter, and can favour their own model family, one reason to pick a judge from another provider.
So the judge is checked against people. In Human Review, people grade a few hundred answers the judge also graded, and the team tracks how often the two agree, per slice. Where agreement is low, say on German answers, the judge's verdicts there do not count toward the gate until its prompt is fixed, and a guarded slice left with no verdicts that count holds the release rather than passing it. A new judge prompt or model is a new judge, calibrated again.
From scores to a deploy that waits
The deploy pipeline hands the candidate (prompt version 9, same model and parameters) to an Eval Harness, which runs every case through the LLM Gateway production uses, applies the checks, sends the open-ended answers to the judge, and stores the run with every version it touched.
Candidate answers and judge grades both go through the production gateway. Every run is stored with the versions it used, beside the human grades that keep the judge honest.
Version 9 passes 1,092 of 1,200 cases, against 1,068 for version 8. Better overall. But on cancellations of non-refundable bookings it passes 98 of 120, where version 8 passed 116: the shorter prompt had lost the line telling the model to check the rate type before quoting a refund, and it now promised money back. An average would have shipped that.
So the release gate compares slices. Each slice where a wrong answer costs money or trust, refunds and fees above all, has a threshold: it may not fall more than a set number of percentage points below production's last run on the same set version. Other slices are reported without blocking. A candidate that is a new model rather than a new prompt, such as one fine-tuned on the assistant's own conversations, faces the same gate (Fine-tuning an LLM: when it beats prompting, and how to prove it). The pipeline refuses to deploy a failing candidate, and refuses too when the harness itself fails, say because the provider went down mid-run. Passing it does not end the release: showing the new version to a share of guests first is Progressive delivery: blue-green, canary & rollback.
When the same case gives a different answer
Run version 8 twice on the same set and its results differ. Models sample their output, providers warn that even at temperature 0 identical inputs can produce different outputs, and the judge varies too. On the 120 refund cases, the runs of version 8 the team repeated differed by up to three cases; a drop of 18 is far larger than anything those runs showed, enough to stop the release and look. On the 25 accessibility cases, the same two or three flips move the slice by eight to twelve points, and a drop that size proves nothing.
So the gate does not trust a single run: the harness runs each guarded case several times, for the candidate as it did for production's version, scores the share that pass, and counts a regression only when the candidate's drop is clearly larger than the variation those repeats show. A few repeats estimate that variation without bounding it, so a drop close to it gets more runs before anyone calls it either way. A slice too small to tell a real drop from chance needs more cases before it can guard a release. The repetition has a price: with the 360 guarded cases run three times, for the candidate and for production's version, a full run takes several thousand model calls, judge included, drawn from the provider limits production uses, so a 150-case smoke set runs on every prompt commit and the full set before a release.
Version 9 is the case to test a design against in the AI Assistant Release Evals Challenge, which asks for this pipeline around a support assistant. A design that would have stopped it compares per-category thresholds (the slices here) instead of one average, holds the deploy when the harness itself fails, sends the judge's calls through the same gateway as the candidate's, and has a path by which a production failure, stripped by PII Redaction, becomes a golden case.
What the set has never seen
Two months later the hotel group launches a semi-flexible rate, refundable until seven days before arrival. Version 11 passes the gate, and guests on the new rate get wrong refund dates: no golden case has that rate. Offline evals catch only what their dataset covers. A judge grading a sample of live conversations, with people confirming its failures, is in Serving LLMs: gateways, fallback & token budgets; here, each confirmed failure is redacted and becomes a new case, in set version 4. The gate refuses only the kinds of failure the set already holds, so a product change such as a new rate needs its cases written before launch, or guests find its failures first.