LLM-as-Judge
Using a model to score the outputs of another model for scalable evaluation.
Step 1 of 5
Write rubric
Define the question and scale, for example 'Is this answer supported by the context? Score 0 to 1.'
A judge is only useful once you have checked that it agrees with humans.
Simple explanation
Instead of humans rating every output, you use a 'judge' LLM to score them. This scales evaluation to thousands of examples. Ideally the judge is a DIFFERENT model from the one being scored.
Engineering explanation
LLM-as-judge uses a strong model (ideally from a different model family) to score outputs of the system model (often a smaller one) on rubrics like faithfulness, relevance, helpfulness. Biases: self-preference (use a different judge model), verbosity (use a rubric), position (randomise). Calibrate against human ratings and check they agree before you trust the judge.
Example
System answer: 'Refunds take 5-7 days.' Judge prompt: 'Is this answer supported by the context? Score 0-1.' Judge: 'Yes, 1.0.'
When to use it
Any eval pipeline that needs to scale beyond human review. Primary method for faithfulness, relevance and quality scoring.
Common misconception
LLM-as-judge is NOT free of bias. Judges prefer their own outputs (self-preference), prefer longer answers (verbosity), and prefer the first option in pairwise. Always mitigate.