Design an LLM judge prompt with anchor examples and explain how they reduce score variance
You are building an LLM judge for a customer service chatbot. The rubric rates 'helpfulness' on 1–5. Describe how you would add anchor examples to the judge prompt, explain the mechanism by which anchors reduce score variance, and estimate the expected impact.
Per-level anchor examples pin the judge's implicit scale boundaries, substantially reducing inter-run variance. The catch: bad anchors induce anchoring bias, compressing scores toward the exemplars.
Imagine grading essays with a friend. If you only agree on words like 'a 3 is okay', you will drift apart, because 'okay' means different things on different days. Now you each tape one real sample essay next to each number on the scale. Suddenly you agree far more, because you are not guessing what a 3 feels like, you are comparing against a fixed example. That is what anchor examples do for an LLM judge: they replace a fuzzy mental boundary with a concrete reference. But there is a trap. If your three sample essays are all very similar, you start pulling every essay toward those samples, and the spread of your scores shrinks. The order you show them in can sway you too. So the samples must be chosen with care and shuffled.
Detailed answer & concept explanation~8 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
6 min: anchor design per level, the boundary-externalisation mechanism, the substantial variance win, then the anchoring-bias backfire (compression, order effects) and the calibration fix against human labels.
Real products, models, and research that use this idea.
- LangSmith and Braintrust let you embed per-level reference examples in judge prompt templates to stabilise scalar scoring.
- Prometheus 2, the dominant open-weight judge in 2026, is trained on rubric plus reference prompts that anchor each score band.
- RAGAS and DeepEval recommend few-shot scored exemplars in custom judge metrics, with a warning to span the full quality range.
- G-Eval style prompts use chain-of-thought plus rubric anchors, and teams report score compression when exemplars cluster.
- Anthropic Workbench judge templates surface few-shot exemplars and advise randomising their order to limit position effects.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you detect that your anchors are compressing scores rather than calibrating them?
QWhy does exemplar order in the judge prompt matter, and how do you neutralise it?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Adding anchors and assuming variance is solved. Poorly spaced or same-style anchors induce anchoring bias, compressing scores toward the exemplars and creating false stability that hides real quality differences.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.