Category · Evaluation and quality
What is a large language model as a judge (LLM-as-a-judge)?
A large language model as a judge is a model that grades another model’s answers against a written rubric. It makes it possible to evaluate thousands of answers at low cost. But its grades only count once calibrated against human grades.
By Laurent Poupet, Claude trainer and artificial intelligence architect · Updated
How it works
- The judge receives the question, the answer and sometimes the reference, with a precise rubric, and returns a grade with a written justification.
- Grades are more reliable when one criterion is asked at a time, for example faithfulness then relevance, rather than an overall grade.
- It makes it possible to evaluate thousands of answers at low cost, but it does not replace regular human checks on a sample.
The trap to avoid
The trap is the known biases of judges, such as a preference for long answers or for the first answer shown in a comparison.
Related terms
- LLM (large language model)Models and how they work
- EvaluationEvaluation and quality
Where this is taught
This idea comes up throughout the lessons; we work on it with your own examples during a lesson.
Lesson content (step-by-step instructions, exercises with solutions, quizzes) is for students only, with an access code received after the first lesson.