Build a Golden Eval Set From Production Traffic
You change a prompt, or a provider silently ships a new checkpoint under the same model ID, and something in production regresses. The week’s user complaints look slightly different from the week before, and you cannot point to why. MMLU will not catch it. Neither will any leaderboard you are tracking, because a benchmark measures general capability across academic subjects — not how a model handles the traffic your product actually serves.
OpenRouter published a tutorial on September 30, 2026, that closes exactly this gap, and it is the most useful evaluation document I have read this year. The core idea: build a “golden eval dataset” from your own logged production traffic — a curated set of real inputs paired with reviewed expected outputs, versioned in Git, and run before every meaningful change. It is a regression test suite for behavior rather than code, and it is how teams that route between open source AI models and proprietary ones decide which model to send each request to on evidence, not on leaderboard rank.
This guide walks through what a golden set is, why production data beats synthetic data, the five-step process, and how to run the same set across many models through one API.
What a Golden Eval Set Actually Is
A golden eval dataset is a collection of production examples with reviewed expected outputs, held out from training and evaluated on every release candidate. The word “reviewed” carries the whole load here. Someone with domain knowledge confirmed each expected output — or explicitly decided the item does not need one, because a reference-free check like format, safety, or tone is the pass criterion.
That review is what makes the set useful. Without it, when a score drops, you cannot tell whether the change regressed quality or whether item 23 simply had a wrong label. The two failure modes look identical in the aggregate number, and they demand opposite responses. A reviewed set resolves that ambiguity before it costs you a deploy.
Treat it as a regression test suite for behavior. It runs in CI, it has known-good expected outputs, and it catches drift between deploys. The difference from a unit test is that the expected output is a judgment call — so the harness has to grade, not just diff strings. That is the second load-bearing idea, and I will come back to it, because most teams build the dataset correctly and then grade it wrong.
OpenRouter frames the sizing advice in a way that is easy to internalize. Roughly ten items let you explore a single issue. One hundred to one thousand items make a full regression set. The right size depends on the metric, its variance, and the smallest difference you actually need to detect. If two candidate models are close, a fifty-item sample will not separate them — normal variation dominates small samples, so you need two hundred or more representative examples before a few-point gap is meaningful.
Why Production Traffic Beats Synthetic Data
OpenRouter gives three reasons the foundation should be real traffic rather than imagined examples, and all three hold up in practice.
First, the distribution is right. If 70% of your traffic is about pricing, then 70% of your eval set should be about pricing too. That is what makes a regression score reflect user impact rather than a hypothetical benchmark score. A synthetic set can be carefully balanced and still describe a product you do not actually ship.
Second, the failure modes are real. Users paste error logs, mix three languages in one message, and reference a feature you renamed last month. Synthetic sets only contain failures someone imagined, and the imagination of a model-builder tends to be far tidier than the chaos of actual users. The edge cases that break you are the ones nobody thought to write down.
Third, examples track your product. A set drawn from live traffic drifts as your product drifts — new features enter, renamed features disappear, and your coverage stays current. A set frozen at launch describes the product you had at launch, which is not the product you are running now.
Synthetic data still earns a place, but only as a minority filler. For rare failure modes you lack real examples of — a specific compliance edge case, an unusual language pair — a handful of synthetic items with a synthetic: true marker in the metadata is the right tool. The point is proportion: synthetic examples should patch holes, not form the foundation.
The Five-Step Process
Here is the process compressed, with the details that actually bite.
Step 1: Sample production traffic
Log one to two weeks of inputs, and log every field you might slice on later at capture time — intent, model version, prompt version, session length. You cannot reconstruct metadata after the fact, and re-annotating a raw log dump without it is a slow, error-prone mess. Scrub PII before the data reaches the harness; this is non-negotiable, and it is easiest to do at the capture boundary where you still know which fields are sensitive.
Step 2: Deduplicate and cluster
Exact match misses paraphrases, so compare embeddings rather than strings. Fifty variations of a password-reset question should collapse into one example, not fifty — otherwise your set is secretly measuring “how many times users ask the same thing,” which is not a capability signal. Weight the survivors toward the failure modes you cannot afford to miss.
Step 3: Add expected outputs
Use a rubric, not a string. For crisp tasks, binary criteria work: MET or UNMET. For open-ended generation, use an analytic rubric that scores each criterion separately — factual accuracy, completeness, relevance, tone — so a failure tells you what got worse, not just that something did. Have two people annotate a subset independently; disagreements usually mean the rubric is broken, not the annotators.
Step 4: Prune
Cut examples that no longer reflect current behavior, that are too easy to add signal, or that two annotators cannot agree on even after the rubric is tightened. A golden set is a living artifact. It decays if you let it, and a set full of dead examples produces scores nobody trusts.
Step 5: Gate on CI
Run the set before every deploy, and fail the pipeline on a regression below threshold. This is the part most teams skip, and it is the part that turns a nice-to-have evaluation into an actual safety net. A golden set that runs only when someone remembers to run it is documentation, not protection.
The subtle rule that ties the five steps together: version the dataset, the rubric, and the baseline together. Otherwise you cannot tell whether a regression came from a model change, a prompt change, or a dataset change. Those three things are deeply entangled, and if they do not move in lockstep your score history is meaningless.
LLM Benchmarks 2026: Running Your Set Across Many Models
Once the set exists, the natural next step is running it against every candidate model — and this is where OpenRouter’s single-endpoint design pays off. Because every provider’s model is addressable by one model string through one OpenAI-compatible API, the only thing that changes between testing a frontier proprietary model and a self-hosted open source AI model is the string you pass. The request and response handling code stays identical, which removes the engineering overhead that normally makes multi-provider benchmarking a part-time job.
This is a genuinely different discipline from reading LLM benchmarks 2026 on a leaderboard. A leaderboard rank is an average over tasks you may not serve. Your golden set is an average over your traffic, and the two can disagree sharply. A model that tops a public agentic-coding benchmark may fall over on the specific failure mode your users hit most, and the only way to know is to run your set, not someone else’s.
The workflow that falls out of this is a proper A/B test. Fix the harness, fix the dataset, and vary only the model string. Run every candidate against the exact same inputs, because comparing different models against different examples introduces a confound that makes the comparison meaningless no matter how clean the results look. When the only thing that changes is the model identifier, a score difference is attributable to the model — and that is the whole point.
OpenRouter’s newer Ori Eval product pushes this further by automating the harness and grading. It finds every place your code calls a model, asks what matters to you, writes the eval files as code, runs candidate models in parallel, and returns a table with pass rates, latency, and cost per pull request. It is a convenient on-ramp, but the underlying discipline — fixed inputs, reviewed outputs, one variable at a time — is the same whether you use Ori, a hand-rolled harness, or a spreadsheet.
Rubric Grading: The Part Everyone Gets Wrong
The single most common failure I see is teams that build a beautiful golden set and then grade it by comparing strings. That works for classification and extraction — exact match against allowed labels, field-by-field comparison against expected values — but it collapses the moment the output is open-ended.
For summarization, writing, or reasoning tasks, you need an explicit rubric, and you need it to be calibrated. An LLM-as-a-judge scorer should be validated against human labels so the automated score stays consistent with reviewer judgment over time. If your judge and your reviewers drift apart, every downstream decision inherits the error.
The rubric itself should be analytic rather than holistic. A single “is this good, 1 to 5” score hides the reason for a regression. Separate criteria — did it answer the question, did it include the required facts, did it hallucinate anything, was the tone right — tell you where the model got worse, which is the information you actually need to fix it. Binary MET/UNMET criteria for the crisp parts and a small analytic rubric for the fuzzy parts is the combination that has worked best in practice.
Who Should Use This
- Teams that route between multiple models and need to decide, per request class, which model is cheapest at acceptable quality. Your golden set is the arbiter.
- Products where a silent model or checkpoint change can regress user experience — anything with a long prompt, a non-trivial system context, or a multi-step agent loop.
- Engineers who already log production traffic and want to turn that log from an operational liability into an evaluation asset.
Who Should NOT Use This
- A solo developer shipping one model to a small, stable user base. The overhead of a versioned set and CI gate may exceed the value until traffic is large enough to sample meaningfully.
- Teams whose traffic is so uniform that a handful of hand-written examples already covers it. Production data is worth the plumbing only when the input distribution is messy enough to matter.
- Anyone who will not commit to re-annotating and pruning over time. A golden set that decays into staleness produces scores that mislead more than they inform.
Limitations and Caveats
First, a golden set measures your product, not general capability. It is excellent at catching regressions on the traffic you serve and useless at telling you whether a model is “smarter” in the abstract. Do not mistake a high golden-set score for a good model in general.
Second, sampling introduces its own bias. One to two weeks of traffic reflects that window’s mix, and a seasonal spike or a single viral event can skew the distribution. Re-sample periodically, and weight toward the failure modes you cannot afford rather than toward raw volume.
Third, rubric grading is only as good as the rubric. A vague rubric produces scores that two annotators cannot reproduce, and an LLM judge calibrated against bad labels will happily certify bad outputs. Budget real time for rubric design and calibration.
Fourth, PII handling is a genuine legal and operational commitment. If you cannot scrub production inputs at the capture boundary, do not feed raw traffic into an eval harness — the compliance exposure is not worth the eval-quality gain.
Finally, running a golden set across many models is cheap in engineering terms but not free in token terms. A 1,000-item set run against five models every deploy adds up; budget for it the way you budget for CI compute, and consider subsampling for the fast path with a full run only on release candidates.
The Bottom Line
A golden eval dataset built from your own production traffic is the highest-leverage evaluation artifact a model-routing team can own, because it answers the one question public benchmarks cannot: does this change help or hurt on the traffic you actually serve? OpenRouter’s five-step process — sample, cluster, add rubrics, prune, gate — is concrete enough to start this week, and the single-endpoint design makes cross-model comparison a matter of swapping a string. Build the set, grade it with rubrics instead of string diff, version the dataset and rubric together, and run it in CI before every deploy. Do that, and you stop guessing which model to ship — you measure it.
Sources
- Building a Golden Eval Dataset from Production Traffic (OpenRouter)
- Turning Real User Traffic Into an Eval Set That Catches Your Regressions (Agentic Commons)
- Ori Eval: Find the Best Model for What You're Building (OpenRouter)
- A/B Testing LLMs: Running Systematic Model Experiments via OpenRouter (Paul Serban)