When to use it

Use this prompt when you need to compare prompts, models or versions of an AI feature across dozens or hundreds of test cases, and reading every answer yourself is not practical. It suits teams building chatbots, RAG assistants, summarizers and classifiers. It is meant to scale human judgment, not replace it: you still calibrate it against your own ratings.

How to customize it

  • [TASK CONTEXT] tells the judge what good looks like for this system specifically.
  • [REFERENCE MATERIAL] makes correctness checkable. Without it, the judge relies on its own knowledge, which may be wrong or outdated.
  • Criteria should reflect what your users care about. Fewer, well-defined criteria give more stable scores than a long list.
  • Anchors for scores 1, 3 and 5 are essential; write them for your domain.
  • [PASS RULE] turns scores into a decision you can track over time.

Why it works

Judges are more consistent when the scale is anchored with concrete descriptions instead of bare numbers. Asking for evidence before the score is a simple but effective technique: the judge has to point to the response before it rates it, which reduces arbitrary scores and makes disagreements easy to inspect.

The rules against favoring length address a known bias of model judges, which tend to prefer longer and more confident answers. JSON output lets you average scores, compare versions and find failing cases automatically. Our explainer on LLM-as-a-judge covers the known biases in detail, and our guide on building an evaluation set explains where the test cases come from.

Tips and variations

  • Rate 30-50 responses yourself and check how often the judge agrees before relying on it.
  • When comparing two outputs side by side, run each pair twice with the order swapped to reduce position bias.
  • Use a different model as judge from the one being evaluated where possible.
  • Keep the rubric fixed between runs; changing it makes scores incomparable.
  • Read a sample of passing answers too, not only failures.
  • Set the judge’s temperature low so repeated runs on the same answer give similar scores.