Skip to content
47% off: the complete course for $79 (reg. $149)Order now →
AI Builder

AI builder glossary

LLM-as-judge

Using a language model to grade another model's output against written criteria, for qualities like tone or faithfulness that code can't check.

LLM-as-judge, also called model-graded evaluation, gives a model the input, the output, and a rubric, and asks for a verdict. It's how you scale evaluation for criteria that depend on meaning: did the summary invent facts, does the reply answer the actual question, is the tone right for an upset customer. It runs offline in your eval suite and online on sampled production traffic.

Judges are most reliable when the question is narrow and concrete. Ask the judge to list every claim in the answer the source doesn't support, rather than to rate faithfulness from 1 to 10, then let code turn that list into a pass or fail. Use structured outputs for the verdict, give the judge the same context the feature had, and check independent criteria in separate calls.

A judge is a model, so it has biases and blind spots, such as favoring longer answers or whichever option appears first in a comparison. Before trusting one, calibrate it against human labels on a set of real cases and measure how often they agree. Recheck agreement whenever you change the judge's model or prompt, and keep its known error rate in mind when you report results.

Example

Deskmate's faithfulness judge receives a ticket summary and the original thread, and returns every sentence in the summary the thread doesn't support. A summary passes only if that list is empty. The judge was checked against 80 summaries labeled by support leads before it was allowed to gate releases.

Learn more in the course

Related terms

Go from definitions to doing

Learn to build AI-powered apps in 132 practical lessons.