0:00Intro: MOFUSA Tech Academy
Welcome to MOFUSA Tech Academy. Beyond learning, towards mastery.
0:09Can AI grade AI?
Sana wants every reply from the assistant checked for helpfulness, empathy, safety and accuracy. But her team takes about two minutes per reply, and the assistant will write tens of thousands of replies a month. People can't check them all. So here's a tempting idea: use another AI to judge them. Give it a clear rubric, and it can score thousands of replies in minutes. This approach, often called "LLM-as-a-judge", is now one of the most widely used evaluation methods in AI engineering. But watch: show the judge the same two replies in the opposite order, and its verdict changes.
AI judges have biases of their own. Today: how to build an AI judge, and, crucially, how to check that you can trust it. Season Four, Module Fifteen, stop three: AI as a judge.
1:07Why use AI judges?
Why use an AI judge? Human review is nuanced and trusted, but slow, expensive and hard to scale, and different reviewers often disagree. Exact metrics are fast, but can't tell whether a reply was kind or helpful. An AI judge sits in between: it can assess nuanced qualities described in plain language, it's quick and cheap per reply, and it's consistent if the prompt stays fixed. The winning pattern is a partnership: people define what "good" means and check the judge; the judge then applies that definition at scale.
1:45Ways to judge: scoring, pairwise, claims
AI judges can work in several modes. Single-answer scoring: rate one reply on each criterion, say from one to five. Pairwise comparison: show two replies and ask which is better, which is often easier and more consistent, just as people find comparing easier than scoring. Reference-guided: compare the reply with an expert's answer. And claim checking: break the reply into individual claims and check each one against the source documents. Is "Brightcart offers a sixty-day return window" supported by the policy text?
No, it's contradicted. That's how judges catch hallucinations.
2:27Writing a judge prompt that works
A good judge prompt is specific. State the role and task: you're evaluating a Brightcart support reply. Provide everything the judge needs: the customer's message, the policy text the assistant was given, and the reply. Define each criterion precisely: "grounded" means every policy claim appears in the provided policy. Describe what a low, middle and high score look like. Include a couple of scored examples. Ask the judge to explain its reasoning briefly before giving its score, and to answer in a fixed format, like JSON, so the results can be counted automatically.
Simple scales, like pass or fail, or one to five, tend to be more reliable than fine-grained ones, and judging one criterion at a time is often more accurate than many at once.
3:20Judging the judge: agreement and Cohen's kappa
Before trusting a judge, we measure how often it agrees with people. Sana's team labels a hundred replies as good or bad, and the AI judge labels the same hundred. They agree on eighty-five. Eighty-five percent agreement sounds great. But pause and predict: how much agreement would we expect just by chance?
The humans called sixty percent of replies good, and the judge sixty-one percent. Two coin-flippers with those tendencies would agree about fifty-two percent of the time by luck alone. Cohen's kappa corrects for that: the agreement beyond chance, as a share of the maximum possible beyond chance. Here: eighty-five minus fifty-two point two, divided by forty-seven point eight, which is about zero point six nine. By common rules of thumb, that's substantial agreement, but not perfect. A useful benchmark is how well two people agree on the same replies.
A judge that agrees with humans about as often as humans agree with each other is doing well.
4:32The biases of AI judges
AI judges have predictable biases. Many show position bias, favouring whichever answer is shown first, or second. The test is simple: run every comparison in both orders. If a judge picked the first answer in, say, sixty-two percent of swapped pairs, you'd know it was biased. Many prefer longer answers, called verbosity bias. Some favour answers written in their own style, or by models from the same family. And polished, confident wording can hide factual errors. The fixes: judge each pair in both orders and combine the results; control for length; use a judge from a different model family, or several judges; check facts claim by claim rather than by overall impression; and, always, calibrate against human labels.
5:23Practicalities: versions, cost, humans
A few practical rules. Treat the judge's prompt and model as part of your evaluation, and record their versions. Change either one, and your scores can shift, so comparisons across time are only fair with the same judge. Judging costs money too, since every judgement is another model call, so in production teams often judge a sample of conversations, while judging everything in offline tests. Smaller models trained specifically to grade one criterion can make this cheaper. The reward models from episode forty are, in fact, a kind of judge.
And people stay in the loop, with regular spot checks, and human review of anything safety-critical or disputed.
6:09Pause & Predict: more agreement, lower kappa?
A second judge agrees with the humans ninety times out of a hundred, better than the first judge's eighty-five. But here, both the humans and the judge call eighty-five percent of replies good. Will its kappa beat zero point six eight six? Pause.
No. When almost everything is labelled good, two raters agree by chance a lot: about seventy-four and a half percent of the time. Remove that easy agreement, and kappa comes out at about zero point six one, lower than the first judge. Raw agreement can flatter a judge when one answer dominates. Kappa asks the harder question: how much better than chance is it?
6:55Try it yourself: a swap test for position bias
Here's how to test a judge for position bias. Judge each pair of replies twice, swapping which one appears first. In this illustrative audit, seventy-six verdicts stay the same, but twenty-four flip: the judge preferred whichever reply it saw first, not the better one. The practical fix is simple: only count a win when the verdict survives the swap, treat flips as ties, and always report the flip rate, so everyone knows how much to trust the comparison.
7:30The padded reply
Judges can also favour longer answers. Give one the same facts twice: a crisp forty-word reply, and the same content padded to a hundred and twenty words with pleasantries and repetition. A biased judge may prefer the padded version, while real customers would prefer the short one. So write the rubric to say plainly that length isn't quality, and that unnecessary text should be penalised. Then check your results: if the winning replies are consistently longer, the judge may be rewarding length rather than quality.
8:07Try it yourself: claim-level faithfulness
For factual faithfulness, it helps to judge claim by claim. Split the reply into its claims, and check each one against the policy text it was given. Returns within thirty days: supported. Refunds to the original card: supported. A prepaid label by email: supported. Refunds in two days: not supported; the policy says five. Three out of four claims are faithful, a score of zero point seven five, and more importantly, we know exactly which claim to fix.
8:42Rubrics that judges can follow
How you write the rubric decides how consistent the judge will be. "Rate the tone from one to ten" is vague: what's the difference between a six and a seven? Better to use a short scale with clear anchors, each with an example: rude, neutral but cold, polite and clear, warm and empathetic. Or break it into yes-or-no checks: does the reply acknowledge the problem? Does it offer a next step? Short, well-defined criteria tend to give much steadier judgements than wide numeric scales.
9:17Try it yourself: what does judging cost?
What does an automatic judging run cost? Two hundred replies, each judged with about fifteen hundred tokens in and two hundred out, at our illustrative prices. Pause and estimate. About forty-six cents for the whole run. The same review by a person, at two minutes per reply, takes almost seven hours. That's why judges are so useful: you can afford to run them after every single change. But people still review a sample regularly, to make sure the judge stays trustworthy.
9:56Self-preference and panels
Researchers have also found that judges can favour answers written by their own model family. If you're choosing between models, that's a problem. Use a judge from a different family, hide which model wrote each reply, or use a small panel of different judges and take a majority vote. A panel costs more, but it smooths out the quirks of any single judge, which matters most when the decision is important.
10:26Pause & Predict: judge or code?
Should a judge or simple code handle each check? Is the refund date thirty days after purchase? Is the reply empathetic? Is the output valid JSON? Does the reply answer what the customer actually asked? Pause. Date maths and JSON validity: code, because they're exact, free and never biased. Empathy and answering the real question: a judge, because they need understanding, but a judge you've validated against human labels. Use code wherever the answer can be computed, and save judges for what genuinely needs judgement.
11:07Keeping the judge honest over time
A judge is a model too, so it can change. If the provider updates the underlying model, or someone edits the judge prompt, its agreement with people can quietly drop. So pin the judge's model version, and every month, have people label a fresh sample of fifty replies and recompute kappa. If it dips, investigate before trusting any new results. Measuring the measurer is part of the job.
11:35Judging whole conversations
Judging replies one at a time can miss the bigger picture. In this five-turn chat, the customer asks about a late kettle, then changes the delivery address, then asks for a discount. Every individual reply looks fine, but by the end, the address change was never confirmed. So Brightcart also judges whole conversations: was the issue resolved? Was any request dropped along the way? Did the assistant contradict itself? Good replies don't always add up to a good conversation.
12:07Pause & Predict: can the judge replace people?
Our first judge reached a kappa of about zero point six nine: substantial agreement with people. Is that good enough to replace human reviewers? Pause and think about different uses. For tracking quality trends after every change: yes, that's exactly what it's for. For a monthly report to leadership: yes, alongside a sample checked by people. For deciding an individual customer's refund dispute: no. A judge that's usually right is excellent for measuring a system across thousands of replies, but not for making high-stakes decisions about one person.
12:51Myth vs Fact
Myth: AI judges are objective. Fact: they carry the preferences and biases of the judge model and its prompt. Their scores only mean something once you've checked them against human judgements, and controlled for the biases you know about.
13:07Recap
Let's recap. AI judges let us apply human-defined quality criteria at scale. They can score single answers, compare pairs, use references, or check claims against sources. A good judge prompt defines criteria and scales, gives examples, asks for brief reasoning, then a structured verdict. Judges must be validated against people, using agreement corrected for chance, like Cohen's kappa. And their biases, towards position, length and their own style, must be tested and controlled. One sentence to remember: let AI grade at scale, but only after people grade the grader.
13:52Next: comparing and ranking models
Mission complete. Brightcart has an AI judge that agrees substantially with Sana's team, checks facts claim by claim, and is tested both ways round. Next, a question every team faces: given several candidate models, which is best, and by how much? We'll turn head-to-head comparisons into rankings, using the same rating system invented for chess: Elo, and its mathematical cousin, Bradley–Terry. See you on the map.