A cheaper model that "seems fine" The team wants to replace the serving model with a 4-bit quantized version to save GPU memory. A few manual chats look the same as before.
A few chats say nothing about the long tail: rare intents, long documents, strict output formats. The question is not "does it work" but "is it at least as good as what runs now, on our tasks".
Build the eval set from real tasks Sample real requests from logs, remove personal data, and attach the expected answer or a grading rubric to each. Add the hard and rare cases that broke before, and group items into slices such as SQL, summaries, and tool use.
Keep the set private and versioned. A few hundred well-chosen items that match your traffic tell you more than a famous public benchmark.
Score each task type the way it can be checked Short factual answers use exact match after normalization. Code uses pass@k: generate k samples and count the task solved if at least one passes the unit tests. Structured output checks that the JSON parses and the fields are right.
Other tasks need their own score: correct tool and arguments for agents, cited sources for RAG, F1 for extraction. Prefer a check a program can run over an opinion.
Key idea pass@1 is what a user sees on one try; a higher pass@k only helps if something downstream tests the samples and picks one.
An LLM judge scores the open-ended answers Summaries and support replies have no single right string. An LLM-as-judge reads the question, a rubric and the answer, then returns a score, or compares two answers and picks the better one.
It scales to thousands of items in minutes. But it is a model too, so its scores need checking before you trust them for a release decision.
Judges prefer the first, the longer, and their own Known judge biases: position bias (favoring the answer shown first), length or verbosity bias (favoring longer answers), and self-preference (favoring answers from its own model family).
Counter them: run pairwise comparisons in both orders and count only consistent wins, tell the rubric to ignore length, and use a judge from a different family than the candidate.
Calibrate the judge against human labels People grade a sample of items with the same rubric. Compare the judge with them: how often do they agree, and on which slices do they differ?
If agreement is low on a slice, fix the rubric or keep humans on that slice. Repeat the check whenever the judge model or rubric changes, because that changes every score.
A suspiciously high score: the test leaked A second candidate scores far above the baseline on one public benchmark but no better on your own set. Its training data likely contained those test items, so it remembers answers instead of solving tasks.
Keep your main eval set private and never train on it. Check training data for overlap with eval items, and refresh the set with new real tasks over time.
A regression gate in CI decides promotion Every new model, prompt or quantization runs the same eval in CI. The gate compares it with the baseline per slice and blocks if any slice drops beyond a set margin, not just the average.
The gate also runs safety and refusal evals: harmful requests must still be refused, and benign requests must not be refused more often. It checks latency and output length too, since a slower or wordier model can fail users without failing accuracy.
Key idea Gate on slices, not just the average. A small overall drop can hide a large one on the task that matters most.
Confirm on live traffic with a canary Offline sets never cover everything. A canary sends a small share of real traffic to the candidate, or an A/B test splits users, while the stable model serves the rest.
Compare quality signals (task success, thumbs down, retries, escalations to humans) and latency (time to first token, p95) between the two. A progressive delivery tool can step the share up and roll back automatically when the numbers cross a limit.
Store every result with what produced it Each run records the model version, prompt version, quantization, serving engine settings, eval set version and judge version, next to the scores per slice.
Then a later drop can be traced to one change, and an old model can be compared with a new one fairly. A score with no versions attached cannot be reproduced.
Offline to block regressions, online to confirm Build the eval set from real tasks and score each type with a check that fits it: exact match, pass@k, or a judge calibrated against humans. Watch for judge bias and contaminated test data.
A CI gate compares every candidate with the baseline per slice, including safety and refusals. A canary then confirms quality and latency on real traffic, and every result is stored with its versions.
Summary When a model change gets complaints, check three things: did it pass the gate per slice, does the eval set still look like current traffic, and what did the canary show?