# Why Ragas Needs a Judge Model: A Hallucinated Answer Scored ROUGE 0.88

When people first meet Ragas, the part that puts them off is the judge model. You want to test your RAG pipeline, and the docs ask you to wire up a second LLM to grade the first one. That feels like extra cost and extra uncertainty. Why not just compare the answer to a reference answer and be done?

I ran a small experiment to answer that, using only the metrics in Ragas that do not need a judge. The result is the clearest argument I know for why the judge exists.

## The setup

Ragas 0.4.3 ships a few classic, non-LLM metrics next to its LLM-judged ones. Two of them are BLEU and ROUGE, which score how much an answer's wording overlaps with a reference answer. They are fast, free and deterministic, which is why teams reach for them.

I took one reference answer from a typical support knowledge base and scored three responses against it:

- **correct:** the reference itself, word for word
- **paraphrase:** a correct answer in different words
- **hallucinated:** the reference with one number changed, 5 days became 14 days

```python
import asyncio
from ragas.dataset_schema import SingleTurnSample
from ragas.metrics import BleuScore, RougeScore

reference = "Refunds are accepted within 5 days of delivery."
answers = {
    "correct":      "Refunds are accepted within 5 days of delivery.",
    "paraphrase":   "You have five days after the parcel arrives to ask for your money back.",
    "hallucinated": "Refunds are accepted within 14 days of delivery.",
}

async def main():
    for name, resp in answers.items():
        s = SingleTurnSample(response=resp, reference=reference)
        b = await BleuScore().single_turn_ascore(s)
        r = await RougeScore().single_turn_ascore(s)
        print(f"{name:13s} BLEU={b:.2f} ROUGE={r:.2f}")

asyncio.run(main())
```

Environment for this run (17 November 2026): Python 3.13, `ragas==0.4.3`, `langchain-community` 0.3.31. Two practical notes. First, pin `langchain-community<0.4`: a plain install of Ragas 0.4.3 pulled in langchain-community 0.4.2 when we tested it on 9 November, and the import failed. Second, 0.4.3 prints a deprecation warning saying these classes are moving to `ragas.metrics.collections`; the old import still works for now.

## The result

```text
correct       BLEU=1.00 ROUGE=1.00
paraphrase    BLEU=0.03 ROUGE=0.09
hallucinated  BLEU=0.60 ROUGE=0.88
```

Read that again. The answer that would cost you a refund dispute scored ROUGE 0.88. The answer that was completely right scored 0.09. If your quality gate were "ROUGE above 0.5", you would ship the hallucination and fail the correct paraphrase.

This is not a bug in Ragas. It is what word-overlap metrics do. They count shared words, and changing one number leaves almost every word in place. They also have no idea that "five days after the parcel arrives" means the same as "within 5 days of delivery."

## What the judge model adds

The metrics Ragas is known for ask a different question. Instead of "do the words match?", a judge LLM reads the answer and the retrieved context and decides whether the meaning holds up:

- **Faithfulness** breaks the answer into claims and checks each claim against the retrieved context. "Refunds within 14 days" is a claim the context does not support, so the score drops, no matter how many words overlap.
- **Answer relevancy** checks that the answer actually addresses the question.
- **Context precision** checks whether the chunks your retriever returned were useful.
- **Context recall** checks whether the retriever found everything needed to answer.

The split matters. Context precision and recall test your retrieval layer. Faithfulness and answer relevancy test your generation layer. When a RAG answer is wrong, that tells you which half to fix.

A scope note so I am not overclaiming: in the run above I executed only the non-LLM metrics. I did not run faithfulness in this post, because it needs a judge model and an API key. The descriptions of the judged metrics come from the Ragas documentation and the full guide linked below.

## So when are BLEU and ROUGE useful?

They are not useless. They are useful when wording really should be stable: a templated message, a legal disclaimer that must appear verbatim, a regression check that a prompt change did not rewrite every answer. Ragas also has exact-match and string-presence metrics for the same reason. They are cheap guards. They are not hallucination detectors.

A practical layering for a RAG test suite:

1. **Cheap, deterministic checks on every commit:** required phrases present, numbers in the answer exist in the context, no empty answers.
2. **A small judged suite (10 to 20 cases):** faithfulness and answer relevancy with a low-cost judge model. Check your provider's usage page after the first run before you scale up.
3. **The full judged suite before release,** including context precision and recall, with thresholds you have calibrated on your own data rather than copied from a blog post (including this one).

## Why this matters if you come from classic QA

If you have written API or UI tests for years, the instinct is to compare actual output with expected output. That instinct is right for deterministic systems and misleading for LLMs. The same correct answer can arrive in a hundred phrasings, and a wrong answer can look almost identical to the right one. The skill to build is choosing the right oracle for each check: string rules where wording is fixed, a judge model where meaning is what counts, and a human spot check for the cases in between. Ragas gives you both kinds of metric in one library, which is why it is a good first tool to learn for RAG testing.

## Keep going

The full guide on the site covers what Ragas is, all its core metrics in one table, a complete pytest example with Ragas 0.4.3, a GitHub Actions quality gate, synthetic test data generation, and an honest note on what we did and did not run:

**[What Is Ragas? Free RAG Evaluation Explained](https://aitestingguide.com/what-is-ragas/)**

