LLM as a judge
Ask a model which of two answers is better, then ask again with the answers swapped, and a surprising number of times it changes its mind. Model judges are the only way to grade tone, faithfulness or "did it answer the question" at scale, but they have biases of their own. Used well, with a clear rubric and checked against your own labels, they're one of the most useful tools in the box.
In this lesson you'll learn to
- Write a judge prompt for one criterion with a binary pass or fail, a clear definition, examples, and a short critique before the verdict.
- Choose between single-output grading and pairwise comparison, and run pairwise judgements in both orders.
- Recognise the main judge biases (position, length, self-preference, and leniency) and how to reduce each.
- Calibrate a judge against human labels using its true positive and true negative rates, and correct the measured pass rate.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.