LLM-as-a-judge
Definition
Using a model to grade another model's outputs against written criteria, ideally checked against a sample of human-labelled cases.
In more detail
Judges scale grading for qualities that code cannot check, such as helpfulness or faithfulness to sources. They have biases (towards longer answers, their own style, the first option), so use specific pass or fail criteria and measure agreement with human judgements before trusting them.
Related terms
Eval
A repeatable test that measures how well an AI system performs on a defined set of cases, so you can compare versions instead of guessing.
Golden dataset
A curated set of inputs with expected outputs or grading notes, used as the fixed reference that your evals are scored against.
Evaluator-optimizer
A loop where one model call writes an answer and another grades it against criteria, sending feedback until the answer passes.
Grounding
Tying a model's answers to specific provided sources or retrieved data, so that each claim can be traced back to a source and checked.
Log probabilities (logprobs)
The log of the probability a model gave each token it generated, returned by some APIs to show how confident the model was.
Sycophancy
A model's habit of telling users what they want to hear, agreeing with their views or praising their work even when that means being wrong.
Read more about LLM-as-a-judge
- LLM-as-a-judge: grading outputs you can trust
Write narrow grading criteria, check the judge's verdicts against your own labels and decide when its agreement is good enough.
- LLM evaluation
Measuring AI system quality with datasets, code checks and model-graded tests.