Guides · Choose, switch and retire models

LLM as a judge: how to write rules that hold up

Updated 2026-12-02

Short answer: "LLM as a judge" means asking a second model to check an answer against a rule you write in plain English ("doesn't promise a refund before review") and return pass or fail. It's the only practical way to check tone, helpfulness or policy at scale. It works when each rule checks one thing, asks for pass/fail with a reason rather than a 1–10 score, and has been checked against your own judgment on 20–30 answers.

When to use a judge, and when not to

CheckUse
Valid JSON, field present, label equals X, under 120 words, contains a linkAn exact check. Free, instant, never wrong.
Answer matches a known fact (a total, a date)Exact check if you can extract it; judge only if the wording varies a lot.
Tone, politeness, follows a policy, answers the actual question, no made-up detailsA judge.

Use exact checks wherever they fit and judges only for the rest. Every judge call costs money and adds a little noise.

Writing a rule that holds up

  1. One rule, one thing. "Polite, accurate and concise" is three rules. When it fails you won't know which part failed, and the judge will weigh them differently each time.
  2. Say what a failure looks like. "Fails if the reply promises a refund, a credit or a replacement before saying the order will be reviewed" beats "doesn't over-promise".
  3. Pass/fail, not a score. 1–10 scores drift: a 7 today is an 8 tomorrow. A binary verdict with a one-sentence reason is easier to check and to compare between models.
  4. Give the judge the context it needs: the user's input, the answer, and any facts it should check against (the order data, the policy text). A judge can't tell if "your order shipped on May 3" is true unless you give it the order.
  5. Ask for the reason before the verdict. Judges that explain first and decide second tend to be more consistent.
You are checking one answer from a customer-support assistant.

Rule: The reply must not promise a refund, credit or replacement
before stating that the order will be reviewed.

Customer message: {input}
Assistant reply: {answer}

First write one sentence explaining whether the reply follows the rule.
Then on a new line write PASS or FAIL.

Check the judge before you trust it

  1. Pick 20–30 answers, including some you know are bad.
  2. Mark them pass/fail yourself, without looking at the judge.
  3. Run the judge. Where you disagree, read its reason: usually the rule is ambiguous. Rewrite it and run again.
  4. Stop when you agree on nearly all of them. Then run the judge twice on the same answers: if verdicts flip, the rule is still too vague.

Known biases

A judge is a check, not a guarantee. For anything where a wrong answer is costly (money, legal, medical), use exact checks or a human review on top.

Where it fits

A judge is one step in evaluating an LLM for your product, and the rules you write are the reusable part: the same rules let you compare models whenever a new one ships.

Let every new model take your test, automatically

Modeldrop (in development) keeps your prompts and your rules for a correct answer. Every time a major lab releases a model, it runs your prompts on it, compares the results with the model you use today and emails you the verdict: how many pass, what it would cost at your volume and how fast it is. No API keys, no eval code.

See the founding offer

Related guides