An eight-step process for calibrating an LLM judge to your human experts, so you can trust its verdicts on the quality of your AI product.
Every team building AI inside its product, whether it's an AI feature, an AI chatbot, or an autonomous agent that takes actions for users, ends up using another AI to judge the quality of its AI's answers. Nobody can read every output by hand, so the checking gets automated.
That second AI is an LLM judge. It's an AI agent that takes the output of your AI product or feature and returns a verdict on its quality, following the instructions in its prompt.
Teams usually set up their judge in one of two ways:
•They pick a template from their observability platform. Relevance, hallucination, helpfulness, correctness. The template is ready to run and its name matches what the team cares about.
•They write a long, custom rubric for their product. Every quality they can think of goes into one prompt, often scored on a scale.
Both approaches skip the same step. Before a judge can be trusted with the quality of your production AI, it has to be validated: calibrated against your human experts' judgment and shown to make the same calls they would.
This article shows exactly how to do that. It's work every product team needs to do if it uses AI to test the quality of its AI product.
Thesis
An LLM judge that hasn't been validated against human judgment can't be trusted to judge the quality of your AI product, whatever model or prompt it runs on.
What a judge you can trust means
A judge you can trust passes three checks:
•It agrees with your human expert, and its error rates are low. Overall agreement isn't enough. Look at two rates: errors missed (outputs your expert failed that the judge passed) and good answers failed (outputs your expert passed that the judge failed). Both should be low, ideally close to zero.
•It agrees for the right reason. When it fails an output, its written reason names the same problem your expert named. A judge that's right by accident will be wrong on the next case.
•It agrees with itself. Run it twice on identical inputs and it gives the same verdicts. If verdicts change between runs, none of its numbers hold still.
The eight steps below get you all three.
Step 1. Decide the judge's scope: one error
Start by deciding what the judge looks for. For an efficient calibration, a judge should look for one specific failure, one you found through error analysis of your AI's real outputs.
Asking one judge to look for several failures at once makes calibration much harder. When it disagrees with your expert, you can't tell which part of the instructions caused it, and accuracy drops across the board. One judge, one error.
The error should also be one that needs judgment to spot. If a deterministic rule can catch it (valid JSON, required fields, length, format), write a code check instead. Code checks give repeatable results without an extra model call. Test the implementation on passing and failing cases.
Example: for an AI agent that qualifies inbound sales leads, error analysis showed the failure that mattered most was assigning the wrong priority tier. Deciding whether a lead deserves Tier 1 means weighing the company profile, the person's role and the signals in the research. That needs judgment, so it was the right error for a judge.
Step 2. Annotate at least 50 real outputs as pass or fail
Take at least 50 real outputs from your AI product. Have your expert mark each one pass or fail for the error the judge will look for, and only that error. An output can have other flaws and still pass here.
Use pass and fail for the single failure in this workflow. Binary verdicts let you compare whether the expert and judge detected the same error. The LLM judge guide explains when to use a scale to measure degrees of quality.
Include both kinds of outputs: good answers your expert labels pass, and answers with the error labeled fail. You need both to measure whether the judge catches errors and whether it recognizes good answers.
Ask your expert to write a one-sentence reason for each verdict. "Marked Tier 3, should be Tier 1: target customer, decision-maker role." The reasons on your development cases become the judge's instructions in Step 3 and your answer key in Step 6. Reserve separate examples for testing the final configuration.
Step 3. Write the judge prompt
Write a prompt with three parts:
•The error to find. What the error is, what counts as it, and what doesn't. Pull these rules from your expert's reasons in Step 2, in the words your team uses.
•How to reason. The steps the judge should go through before deciding, such as checking the lead's company against the customer profile before judging the tier.
•The output. A pass or fail verdict, plus a short justification explaining why.
The justification matters as much as the verdict. It's how you'll check, in Step 6, whether the judge is right for the right reason.
Step 4. Run the prompt across several models
Run the judge prompt on the full development set from Step 2, on several models from different providers and of different sizes, from frontier models down to mini and nano ones.
A judge is a prompt and a model together. The same prompt can behave like a different judge on each model. In our lead-qualification example, one prompt agreed with the expert 76.5% of the time on one model and 50% on another, in the same run. You can't know which model fits your judge until you measure it. Which model should you run your LLM judge on? covers this step in depth.
Step 5. Measure three numbers for every pairing
For every prompt and model pairing, compare the judge's verdicts to your expert's labels:
•Agreement. How often the judge's verdict matches your expert's.
•Errors missed. The share of outputs your expert failed that the judge passed.
•Good answers failed. The share of outputs your expert passed that the judge failed.
Your target is errors missed and good answers failed as close to zero as possible. Agreement alone hides which way a judge is wrong. In the lead-qualification example, two models both scored 70.6% agreement with the same prompt. One never failed a good answer but missed 59% of the real errors. The other missed only 12% of the errors but failed 47% of the good answers. Same agreement, opposite judges.
Step 6. Review every disagreement
Go through every output where the judge and your expert disagree. Read the judge's justification and work out why it got the verdict wrong. Then write feedback on what the judge got wrong, the same way your expert annotated the AI's outputs in Step 2.
Also read the justifications on outputs where they agree. A judge can reach the right verdict for the wrong reason. In the lead-qualification example, generic judge templates that caught real errors named the actual problem, the wrong tier, only 0–31% of the time. The rest of their catches fired on things like a date or a formatting detail. A score can't show you this. Only the justifications can.
Step 7. Improve the prompt and re-run the whole loop
Use your feedback from Step 6 to improve the judge prompt: add a missing rule, clarify a case it misread, or show it how to weigh one signal against another.
Then re-run the new prompt on the full development set and all the candidate models, and compare the three numbers to the last round. Re-run everything every time. A change that fixes one case can break three others, and you only see that on the full set.
Keep going until errors missed and good answers failed are close to zero. Then compare across models and pick the prompt and model pairing that does best on all three numbers.
The best model can change when the prompt changes. In the lead-qualification example, the best model for the first version of the prompt missed most of the real errors by the fourth version. Two rules added from the expert's notes took the best pairing from 72% to 76.5% agreement.
Step 8. Check that your best judges agree with themselves
For the pairings that did best in Step 7, check reliability: how often the judge changes its verdict between two identical runs.
Run each one again on the same development cases, with the same prompt, model and settings. Compare the verdicts answer by answer and count how many changed. In the lead-qualification example, the same prompt changed none of its 34 verdicts on one model and 10 of 34 on another.
A judge with great numbers on one run and many flipped verdicts on the next can't be trusted with decisions. Choose the pairing that is both accurate and consistent. Do LLM judges give the same verdict twice? shows how to run this check.
An LLM judge validation dataset needs cases you did not tune on
Suppose you fix every mismatch in an LLM judge validation dataset, rerun it and obtain a much better score. The revised prompt may now handle those examples well. The score still leaves an unanswered question: can it judge cases that did not shape the prompt?
A separate held-out group lets you investigate that question. It keeps the evidence used to edit the judge apart from the evidence used to assess the finished configuration. This concerns prompt development; it does not involve training the underlying model.
LLM judge validation dataset: the reference comes first
Choose a specific judging task. For example, assess whether an extracted payment term is supported by the supplied source. Checking all fields, formatting and business eligibility at once makes disagreements harder to interpret.
Each case needs the actual material the judge will receive, the extraction output and a reviewed decision. Keep a short note pointing to the deciding evidence. If reviewers cannot agree whether a paraphrase preserves the payment term, resolve that policy question first.
Include acceptable outputs as well as defects. A judge that rejects everything can look successful on a dataset containing only failures. The ground-truth guide explains the review needed before a label can be treated as a reference.
What belongs in a held-out judge validation set?
Reserve cases that did not guide prompt edits, model selection or example choice. Give the split enough variation to examine the errors that matter.
Group
Permitted use
What its result supports
Development cases
Inspect mismatches, edit instructions and compare candidates
Progress on the cases informing development
Held-out cases
Assess the selected, frozen configuration
Evidence on cases outside that editing loop
Regression cases
Rerun known failures and accepted behavior
Whether previously tested requirements still hold
The labels describe a case's use. Once a held-out failure has shaped your next prompt, it has entered development, though it remains useful for regression testing.
Watch the unit you split. Invoices from the same supplier template can repeat nearly identical wording and layout. Putting related pages in both groups can make an unfamiliar-layout test look easier than it is. Hold the template family together when that is the boundary you want to test.
A fixed-template product has a narrower task. Document that scope; it need not claim performance on unseen layouts.
A frozen candidate makes the final check interpretable
Before opening the reserved results, save the judge prompt, model configuration, input format, labeling policy and dataset version. Record the upstream extractor too: a changed extractor may produce defects the judge has never encountered.
Run the selected configuration without using held-out labels to adjust it during the check. Preserve failed calls and unexpected outputs according to the stated scoring policy.
Correct actual labeling errors through recorded review. Avoid quietly removing awkward cases after seeing the score. A changed reference set should appear in the report so a reader can distinguish a repaired label from improved judge behavior.
After the final check, decide what the evidence permits
Count false accepts and false rejects separately. Use the confusion-matrix worksheet to retain the denominators. Break down results by document conditions where you have enough cases, and state where a small slice leaves uncertainty.
Inspect selected agreements too. A judge may reach the expected verdict using a claim unsupported by the source. Read its explanation alongside the reference note and test a nearby case.
A failed final check provides material for the next development round. If you use those failures to revise the judge, collect fresh reserved cases before making another claim about unseen performance.
A successful check also has boundaries: the cases, failure types and input conditions represented. Continue reviewing fresh outputs and revalidate after changes to the task, documents or model.
Place this record beside the wider LLM judge workflow. It should let another person see which configuration was tested, what informed it and where the remaining uncertainty lies.
A judge is an AI that needs validating too
An LLM judge is an AI product of its own, and it needs the same validation as the AI it grades. Without it, a judge is an expensive random number generator. It will either miss the errors you want to catch, so your real failures ship while the dashboard stays green, or it will fail good answers and fill your pipeline with noise until your team stops reading the results.
Define what good looks like for your AI feature, measure it on real data, and improve it with your domain experts in the loop, no code required. Teams have gone from 52% to 88% accuracy in under three weeks.