What LLM-as-a-judge is
What it is
LLM-as-a-judge means using a language model to evaluate an output: an answer, a report, a trajectory. The judge is given:
- the input (the question or task);
- the output to be graded;
- the evidence to grade against: source documents, tool results, a reference answer;
- a rubric: the criteria and how to score them.
It returns a structured verdict: a score or pass/fail, with its reason.
Why it matters
Many outputs cannot be checked by code and are too numerous for people.
- 'Is this answer supported by these documents?' has no exact-match test.
- A judge grades thousands of outputs in minutes for little money.
- It scales human judgement, provided it has been shown to agree with human judgement.
- It is a measuring instrument, and like any instrument it must be calibrated before its readings mean anything.
In the real world: A support team checks refunds and amounts in code and uses a judge only for two questions code cannot answer: was the reply grounded in the policy, and did it address everything the customer asked.
Visual example
ChoiceUse the cheapest grader that can answer the question correctly.
Using a judge where code would do. If the question is 'was a refund of ₹25 created?', query the database. A judge is for what code cannot check, not a replacement for what it can.