Skip to content

What is LLM-as-judge?

LLM-as-judge is a technique that uses a language model to automatically score or critique another model's output.

By Arun Prasad · Published · Last updated

How LLM-as-judge works

An LLM judge reads the input, output, and optional context, then applies your rubric to produce a score and explanation.

You write a rubric that states your evaluation criteria, then give a judge model the user's input, the agent's output, and optionally some retrieved context. The judge reads all three, applies the rubric, and returns a score and a reason. That verdict becomes the evaluation result.

Here is a concrete example. A customer-service agent replies to a billing question. The judge receives the user's question, the agent's reply, and the rubric: Did the agent answer the user's question accurately and without hallucinating figures? The judge returns a score of 62 with the reason: The reply cited a refund window that does not appear in the provided context. You now have a machine-readable signal and an explanation you can act on.

In PRISM's Evaluators Hub, an evaluator is a rubric an LLM judge applies to your traces. Inside the rubric, {input} is the user's last message, {output} is the agent's final answer, and {context} is what the trace's retrieval and tool steps returned, up to about 6,000 characters. The judge reads all three and returns its verdict.

Types of LLM-as-judge evaluation

LLM-as-judge comes in several forms. Single-turn scoring is the most common for production monitoring; other approaches exist for benchmarking or grounded evaluation. The form PRISM's built-in judge uses is single-turn scoring: one input, one output, one rubric, one verdict.

Single-turn scoring. The judge reads one exchange, one input and one output, and returns a score. This is the most common form for production monitoring, because it runs on every trace as it arrives and needs no comparison set. It is what PRISM's automatic judge and the Evaluators Hub use.

Pairwise comparison. The judge reads two responses to the same input and decides which is better, or whether they are equivalent. This is a general technique used in research and benchmarking; it is not a feature of PRISM's evaluators.

Reference-guided scoring. The judge compares the response to a known-good answer or a set of source documents. This fits knowledge-grounded use cases where the right answer can be verified against a document. In PRISM, the {context} placeholder passes retrieved documents to the judge so it can check claims against source material, which is a form of reference-guided scoring.

How LLM-as-judge is used in production

Using an LLM judge in production means running it on live traffic, not just on a held-out test set. The challenge is cost and volume: you have thousands of traces a day, and running a judge on every one is expensive if you are paying per call.

PRISM by Block Convey handles this with a built-in LLM judge that runs automatically on every incoming trace at no credit cost. Each trace is scored on arrival for customer satisfaction (0–100), response quality (0–100, covering accuracy, helpfulness, and clarity), detected intent, and a flagged-for-review mark with a one-line reason when either score is below 40, the reply looks like a hallucination, the user seems very frustrated, or the conversation contradicts itself.

The judge is not sampled: it scores every trace until each plan's daily ceiling is reached. On Free that is 100 traces a day; on Builder, 200; on Growth, 500. After that, deterministic rules keep running and LLM scoring pauses until 00:00 UTC. Any trace past the ceiling can be scored on demand from Agent Intelligence for 1 credit per trace.

For custom criteria, the Evaluators Hub lets you write your own rubric using {input}, {output} and {context}. You choose which traces to score, by agent, time window, automatic-score ceiling, or guardrail flags, and the count and credit cost are shown before anything is charged. Each verdict links back to the rule, the span, the source checked, and the reason.

If you want to see LLM-as-judge scores running on your own agent traffic, connect PRISM and start free.

How to detect and prevent LLM judge failures

LLM judges are well-suited to open-ended quality criteria, but they can produce inconsistent or biased verdicts. Several recurring failure modes are documented in the research literature: favoring whichever option appears first (position bias), rating longer replies higher regardless of accuracy (verbosity bias), preferring outputs that resemble the judge model's own style, and returning different verdicts for equivalent phrasings. These are known limitations of the technique.

Three practices reduce these problems without eliminating LLM judges altogether.

Ask for a reason before the score. A rubric that requires the judge to explain its reasoning before returning a number forces it to process the content rather than pattern-match on surface features.

Keep a small golden set. Maintain a few dozen human-labeled examples and run them through the judge periodically. When the judge's verdicts drift from the human labels, you know the rubric needs work before the drift reaches your production metrics.

Pair the LLM judge with deterministic rules for fixed-answer criteria. Deterministic rules produce the same verdict for the same input every time, with no model involved. Reserve the LLM judge for open-ended quality criteria, helpfulness, groundedness, clarity, where human-like judgment is the point. For anything with a correct answer, a deterministic rule is more reliable and cheaper. In PRISM, deterministic rules run on 100% of sessions with no sampling, and the LLM judge handles quality scoring on top of that.

For a full walkthrough of how to combine these approaches, see how to build an evaluation framework for AI agents.

LLM-as-judge vs deterministic rules

The most important distinction when building an evaluation system is between LLM-as-judge and deterministic rules, because choosing the wrong one for a criterion wastes money or produces unreliable verdicts.

Deterministic rules produce the same verdict for the same input every time, with no model involved. They are fast, cheap and consistent. Use them for anything with a single correct answer: does the reply contain a phone number, does it stay under a word count, does it avoid a banned phrase.

LLM-as-judge applies a rubric that describes quality criteria in natural language and asks the judge to reason about whether the output meets them. Use it for open-ended criteria: is this reply helpful, is it grounded in the retrieved context, does it address what the user actually asked.

In PRISM's Evaluators Hub, both kinds of rule exist: deterministic rules run on 100% of sessions with no sampling, and the LLM judge scores every incoming trace until the plan's daily ceiling is reached. The right system uses deterministic rules wherever the answer is binary and the LLM judge where judgment is the point.

A closely related concept is the rubric itself: a rubric is the written criteria the LLM judge applies, not the judge. You write the rubric once; the judge applies it at scale. When verdicts drift, it is usually the rubric, not the judge model, that needs updating.

What should you use an LLM judge for, and what should you use deterministic rules for?

Use deterministic rules for anything with one correct answer, and the LLM judge for open-ended quality.

A deterministic rule produces the same verdict for the same input every time, with no model involved, and runs on 100% of sessions. For open-ended quality criteria, helpfulness, clarity, groundedness, tone, these are hard to test with a simple string match and are exactly the kind of judgment a language model can approximate at scale.

For agents that take actions, tool calls, retrieval, state changes, money movement, the judge should also receive the tool outputs and retrieved context, not just the final reply. If you only show the judge what the agent said, you cannot know whether it did the right thing. In PRISM's Evaluators Hub, the {context} placeholder passes the trace's retrieval and tool steps to the judge, up to about 6,000 characters, so the verdict covers behavior, not only words.

For more on evaluation approaches for agents, see the guide to evaluation metrics for AI agents.

Run an LLM judge on your agent traffic

Connect PRISM and see scores, reasons and flagged traces on every conversation your agent has.

Free to start, 100 credits each month.