| Golden set | A labelled collection of representative inputs and expected properties. |
| LLM-as-judge | Using a model to score outputs against a written rubric. |
| Regression gate | A check that blocks a change when quality drops below a threshold. |
- Changing prompts, models or retrieval configuration.
- Before a release that touches AI behaviour.
- Comparing vendors on your own workload.
- 01Collect real inputs and label the properties that matter.
- 02Define a rubric: correctness, grounding, format, tone.
- 03Run the golden set on every candidate change.
- 04Calibrate judges against human scores and gate releases on the delta.
Prompt change before release
- Context
- A team rewrites the system prompt for a support assistant.
- Problem
- The new prompt helps some cases but breaks others.
- Approach
- Run a labelled golden set with a written rubric and gate the release on score deltas.
- Outcome
- Regressions are caught before users see them.
Vendor comparison on real traffic
- Context
- Two model vendors claim similar quality.
- Problem
- Public benchmarks do not reflect the product's actual workload.
- Approach
- Run both vendors through the same eval set and calibrate a judge against human ratings.
- Outcome
- A decision based on the product's own data.
Golden-set case with a rubric
{
"input": "Summarise the refund policy for a leased device.",
"expected_properties": ["mentions 14 days", "cites policy-v3"],
"must_not": ["promise a same-day refund"],
"rubric": { "correctness": 2, "grounding": 2, "format": 1 }
}Include negative cases with must_not rules; a model that never refuses can still fail them.
Release gate
gate:
max_faithfulness_drop: 0.02
max_cost_per_success_increase: 10%
judge_model: pinned
sample_human_review: 10%Gate on deltas against the previous version, not absolute scores, and spot-check the judge each release.
Human reviews
Up: Trusted judgement
Down: Slow and hard to scale
Model judges
Up: Fast and repeatable
Down: Bias and drift require calibration
Exact match
Up: Deterministic
Down: Unsuitable for open-ended tasks
| Option | Upside | Cost |
|---|---|---|
| Human reviews | Trusted judgement | Slow and hard to scale |
| Model judges | Fast and repeatable | Bias and drift require calibration |
| Exact match | Deterministic | Unsuitable for open-ended tasks |
- Include negative and no-answer cases.
- Version the eval set alongside the code.
- Report deltas, not just absolute scores.
- Spot-check judge decisions every release.
| Key | Typical value | Note |
|---|---|---|
| golden_set | 50–200 cases | Cover real traffic patterns. |
| judge_rubric | written | Criteria with examples. |
| gate_threshold | documented | Blocks regressions. |
| Symptom | Cause | Fix |
|---|---|---|
| Judge disagrees with users | Rubric too vague | Add concrete examples and re-calibrate. |
| Scores unstable | Non-zero sampling in judge | Pin judge model and temperature. |
How large should a golden set be?
Start with 50 focused cases and grow with real failures. Coverage matters more than size.
Can evaluation replace human review?
No. It catches regressions at scale; humans still define quality and review edge cases.
More in Evaluation & safety