How do you design a good rubric for model-graded evals, and where does chain-of-thought fit?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
A good rubric turns a vague quality goal into a decision procedure a careful stranger could execute. The design moves:
- Decompose into single-criterion checks. "Rate quality 1-10" invites halo effects and drift. Instead: one judge call per criterion - faithful to retrieved context? complete per the user's request? correct format? appropriate tone? - each returning binary pass/fail or a 2-3 level verdict. Composite scores, if needed, get computed in code with explicit weights, not inside the judge's head.
- Define verdicts extensionally. For each criterion, state what pass and fail mean and include 2-4 few-shot anchor examples, especially borderline ones - anchors do more calibration work than any adjective. If you must use a scale, anchor every point ("3 = at least one unsupported claim, core answer correct").
- Tell the judge what to ignore. Explicitly instruct it not to reward length, markdown polish, or confident tone, and not to penalise brevity - this partially counteracts verbosity/style bias.
- Give the judge what it needs. For factual or reasoning-heavy tasks, include the reference answer or the retrieved context; a judge grades "does this match the reference / is this supported by the context" far more reliably than it can solve the task itself.
Full worked answer
A good rubric turns a vague quality goal into a decision procedure a careful stranger could execute. The design moves:
- Decompose into single-criterion checks. "Rate quality 1-10" invites halo effects and drift. Instead: one judge call per criterion - faithful to retrieved context? complete per the user's request? correct format? appropriate tone? - each returning binary pass/fail or a 2-3 level verdict. Composite scores, if needed, get computed in code with explicit weights, not inside the judge's head.
- Define verdicts extensionally. For each criterion, state what pass and fail mean and include 2-4 few-shot anchor examples, especially borderline ones - anchors do more calibration work than any adjective. If you must use a scale, anchor every point ("3 = at least one unsupported claim, core answer correct").
- Tell the judge what to ignore. Explicitly instruct it not to reward length, markdown polish, or confident tone, and not to penalise brevity - this partially counteracts verbosity/style bias.
- Give the judge what it needs. For factual or reasoning-heavy tasks, include the reference answer or the retrieved context; a judge grades "does this match the reference / is this supported by the context" far more reliably than it can solve the task itself.
Chain-of-thought judging: require the judge to produce its analysis before the verdict - e.g., "list each claim in the answer, mark whether the context supports it, then output PASS/FAIL as JSON." Verdict-first responses let the model rationalise a snap judgment; analysis-first forces engagement with the content, measurably improves agreement with humans, and - just as valuable - gives you an auditable justification for every grade, which is what makes judge-based CI failures debuggable rather than mysterious.
Finally, structure the output (JSON with reasoning and verdict fields) so parsing is deterministic, and version the rubric - a rubric edit changes your metric definition and must invalidate score comparisons across the boundary.
What a good answer covers
- A good rubric turns a vague quality goal into a decision procedure a careful stranger could execute
- Decompose into single-criterion checks
- Define verdicts extensionally
- Tell the judge what to ignore
- Give the judge what it needs
Key terms: Decompose into single-criterion checks · Define verdicts extensionally · Chain-of-thought judging
In the glossary: Drift · Judge (LLM-as-judge) · Few-shot · Calibration
Interviewer follow-ups to expect
How many criteria are too many per task?
Your faithfulness judge passes an answer that hedges so much it says nothing - what rubric change fixes that?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep