RAG Evaluation with LLM Judges: A Practical Guide to Scoring Grounded Answers

RAG Evaluation with LLM Judges: A Practical Guide to Scoring Grounded Answers

RAG evaluation with LLM judges uses a language model to score the answers produced by a retrieval-augmented generation system. Instead of a person reading every answer, a judge model grades each one against a written rubric, checking whether it is grounded in the retrieved passages, answers the question and stays faithful to the sources. The central question is whether those automated scores can be trusted, and the short answer is yes, but only when the judge is calibrated against human ratings and its limits are understood.

Retrieval-augmented generation, or RAG, pairs a language model with a search step: the system retrieves relevant documents and the model answers using them. That design makes evaluation harder than testing a plain chatbot, because an answer can fail in two places at once. The retriever can fetch the wrong passages, or the generator can ignore good passages and invent details. A good evaluation has to tell those two failures apart, which is exactly where an LLM judge earns its keep.

Key takeaways

  • RAG evaluation with LLM judges scores answers against a rubric, separating retrieval failures from generation failures.
  • Judge the retrieved context and the final answer separately, or you will not know what to fix.
  • Calibrate every judge against human ratings before trusting its scores for decisions.
  • Known judge biases include favouring long answers, the first option shown and its own style.
  • Use judges for scale and humans for the cases that decide quality, such as borderline or high-stakes answers.

What is RAG evaluation with LLM judges?

RAG evaluation with LLM judges is the practice of using one language model to grade the outputs of a RAG system. The judge receives the user’s question, the retrieved passages, the generated answer and a rubric, then returns scores for qualities such as faithfulness, relevance and completeness. Because the judge works from text alone, it can run on thousands of test cases overnight.

The idea is not new. Human raters have graded answers for decades, and automated metrics such as exact match have been used for just as long. What changed is that modern language models are good enough to follow a detailed rubric and explain their reasoning, which makes their scores far more useful than a simple string comparison. Our guide to LLM as a judge explains the general pattern, and this article applies it specifically to RAG.

There is an important distinction between judging the answer and judging the retrieval. A RAG answer is only as good as the passages it was given, so a fair evaluation scores both. If the retrieved passages did not contain the answer, blaming the generator is wrong, and the fix belongs in the retrieval layer. Separating the two scores turns evaluation from a single number into a diagnosis.

Why RAG needs its own evaluation approach

A plain language model can only be wrong in one way: it generates something incorrect. A RAG system adds a second failure mode, because retrieval can fail before generation even starts. The passages might be irrelevant, outdated, contradictory or simply missing the key fact. When that happens, even a perfect generator will produce a poor answer, and a judge that only looks at the final text will mislead you about what broke.

RAG answers also need grounding checks that do not apply to open-ended generation. An answer to a factual question should be traceable to the retrieved sources, and every claim in it should be supported by at least one passage. That is a stricter standard than sounding plausible, and it is the standard that matters most for enterprise search, support and internal knowledge bases. See our guide to RAG answer faithfulness for why drift off the sources is the failure users notice first.

The qualities a judge should score

Faithfulness is the most important quality for RAG. It asks whether every claim in the answer is supported by the retrieved passages. A faithful answer may be incomplete, but it does not invent facts, and that distinction matters: an incomplete answer can be improved by better retrieval, while an unfaithful one is a trust problem. Best for: any system where wrong answers are worse than missing answers, such as support, legal and medical information.

Answer relevance asks whether the answer actually addresses the question that was asked. A RAG system can produce a perfectly faithful answer to the wrong question, usually because retrieval returned passages about a related but different topic. Best for: catching query misunderstanding and retrieval drift, where the system answers confidently but off-target.

Context relevance asks whether the retrieved passages were worth retrieving at all. If most of the passages are irrelevant, the generator has to work harder, costs rise and the risk of distraction grows. Best for: diagnosing retriever quality independently of the generator, so retrieval fixes are not confused with generation fixes.

Completeness asks whether the answer covers everything the question needed. A short, faithful answer can still fail if it omits a key condition, an exception or a second part of a two-part question. Best for: multi-part questions and comparison questions, where a partial answer looks correct at first glance.

How to design a rubric the judge can actually follow

A rubric is the contract between you and the judge, and vague rubrics produce vague scores. Write each criterion as a question the judge can answer from the evidence in front of it, and define what each point on the scale means. “Rate faithfulness from 1 to 5” is a poor rubric. “Give 5 if every claim is supported by the passages, 3 if one claim is unsupported, and 1 if the answer contradicts the passages” is a usable one.

Choosing the judge model

The judge should usually be a different, stronger model than the one being evaluated, or at least a different configuration of it. A model judging its own output tends to favour its own style and phrasing, a bias known as self-preference, and it may share the same blind spots as the system under test. Using a stronger judge is the simplest way to reduce that risk.

Comparing judge approaches

Approach How it works Main strength Main risk
Single LLM judge One model scores each answer against a rubric Simple, fast and cheap to run One model’s biases go unchecked
Panel of judges Two or three models score, then scores are combined Reduces individual bias and noise Costs more and needs an aggregation rule
Pairwise comparison The judge picks the better of two answers Sensitive to small improvements Needs many comparisons to rank versions
Judge plus human spot-check Judge scores everything, humans audit a sample Scale with a trust anchor Humans must actually review the sample
Deterministic checks first Code checks run before the judge, such as citation presence Cheap and perfectly reproducible Cannot judge nuance or meaning
Two reviewers at a desk checking printed documents beside a laptop
Human reviewers should still audit a sample of judged answers, especially the borderline cases where a score could go either way.

Calibrating the judge against humans

Calibration is the step most teams skip, and it is the step that matters most. Before trusting a judge, collect a few hundred answers, have humans score them on the same rubric, and compare. Agreement is usually measured by correlation or by how often the judge and humans place an answer in the same band, such as pass or fail. If agreement is low, the rubric is usually the problem, not the judge.

Pay special attention to disagreements, not just the average. Look at the cases where the judge scored high and humans scored low, and the reverse. Those cases reveal what the judge misunderstands: perhaps it rewards long, confident answers, or it misses subtle contradictions with the sources. Each pattern you find is a rubric fix waiting to happen.

Known judge biases and how to handle them

Length bias is the best-known problem: judges tend to favour longer answers, even when the extra length adds nothing. Counter it by writing the rubric to reward conciseness where it matters, and by checking whether longer answers actually score better on your test set. If they do, and the extra length is not better, your rubric needs fixing.

Position bias affects pairwise comparisons: when two answers are shown, the judge may favour the one shown first. The fix is simple and cheap: run each comparison twice, swapping the order, and only count a win when it survives the swap. Our guide to LLM judge reliability covers this and other biases in more depth.

Self-preference bias appears when the judge model is the same model that generated the answers, or was trained by the same provider on similar data. It tends to reward its own phrasing and style. Using a judge from a different model family is the most direct defence, and it is worth the extra cost for decisions that matter.

Building a test set worth judging

A judge is only as useful as the test set it scores. Build the set from real user questions where possible, because synthetic questions tend to be cleaner and easier than the ones real users ask. Include the awkward cases: vague questions, questions with false premises, questions whose answer changed recently and questions that span several documents.

Include known failure cases on purpose. Every support team has a list of questions that used to break the system; those belong in the test set, so a regression is caught immediately. A test set that only contains easy questions will give you a flattering score and no warning when things break.

RAG evaluation checklist

  • The rubric defines every score level with concrete examples, not just numbers.
  • Retrieval and generation are scored separately, so failures can be located.
  • The judge is a different, stronger model than the one being evaluated.
  • Judge temperature is set low for repeatable scores.
  • The judge explains each score and cites the supporting passage or the unsupported claim.
  • Scores are calibrated against human ratings on a few hundred answers.
  • Position bias is controlled by swapping order in pairwise comparisons.
  • The test set includes real questions, edge cases and known past failures.
  • Results are tracked per release, so regressions are visible over time.
  • Humans audit a sample of judged answers on every evaluation run.

Frequently asked questions

Can an LLM judge replace human evaluation for RAG?

No, not entirely. Judges are excellent for scale and for catching regressions across large test sets, but humans are still needed for calibration, for borderline cases and for high-stakes answers. The best setups use judges for breadth and humans for depth.

How many human-rated answers do I need to calibrate a judge?

A few hundred is a practical starting point: enough to measure agreement and spot disagreement patterns, without requiring weeks of rating work. Larger sets help when the rubric is subtle or the answers vary widely in quality.

Should the judge see the retrieved passages or only the answer?

It must see the retrieved passages, or it cannot check faithfulness at all. Give it the question, the passages and the answer, and ask it to check each claim against the passages. A judge that only sees the answer can judge fluency, not grounding.

What is the biggest mistake teams make with LLM judges?

Trusting the scores without calibration. An uncalibrated judge feels precise because it returns numbers, but those numbers may not track human judgement at all. Calibrate first, then decide what the scores are allowed to influence.

How do I handle disagreements between two judges?

Treat disagreement as information, not noise. Look at the cases where judges disagree, because they are usually the hardest and most interesting answers. A third judge, or a human tie-breaker, resolves the score, and the pattern of disagreements often reveals a rubric weakness.

Do LLM judges work for multilingual RAG systems?

They can, but calibration matters even more, because judge quality varies by language and the rubric may assume English writing conventions. Calibrate separately for each language, and use human raters fluent in that language for the comparison set.

Latest articles

Scroll to Top