Rightshold™ Sign up
Rightshold is live — the trust layer for AI agents.Launched November 23, 2026.Evidence Delivery$99 / 30 days · Offers are open — review the exact terms and the payment options shown on the service page before accepting.No token, everany ‘Rightshold token’ is not ours

Answers · AI evidence

We have a RAG chatbot that answers customer questions from our help docs. Every so often it says something the docs don't say. How do we put a real number on how often that happens, which tools can score it, and how much can we trust the number?

Last updated

TL;DR: Measure it against the documents the bot retrieved, on a fixed set of real questions. A hallucination in RAG means an answer that the retrieved text doesn't support, even if it happens to be true. Vectara's HHEM model card gives the example of a source saying the capital of France is Berlin and an answer saying Paris: the answer is true in the world but not supported by the source. Two common scorers are the Ragas Faithfulness metric (an LLM splits the answer into claims and counts how many the retrieved context supports, so 1 of 2 supported scores 0.5) and Vectara's open HHEM-2.1-Open classifier, which scores each pair of context and answer from 0 to 1. Neither catches everything: on the RAGTruth question-answering benchmark, HHEM-2.1-Open's published recall is 54.38% and GPT-4 zero-shot's is 56.88%, so either one misses a large share of labelled hallucinations. Report your rate with the sample size and a confidence interval, check a human-labelled sample to see what the scorer misses, and record which scorer version and test set produced each number.

What should I check, step by step?

1. Build a fixed test set from real user questions (a few hundred is a practical start), and save the documents retrieved for each one along with the answer.

  1. Score each answer only against its retrieved context, not against general knowledge. An answer the context doesn't support counts, even if it's true.
  2. Use a scorer such as Ragas Faithfulness or HHEM-2.1-Open, and write down the cut-off you use to call an answer unsupported.
  3. Have people label a sample (for example 100 to 200 answers) and compare with the scorer, so you know how many unsupported answers it misses.
  4. Report the rate with its sample size and a 95% confidence interval: 12 unsupported answers out of 400 is 3.0%, with an interval of about 1.7% to 5.2%.
  5. Track the answer rate too. A bot that refuses more often can look better on this measure without being more useful.
  6. Separate retrieval misses (the right document wasn't retrieved) from generation errors (the document was there but the answer went beyond it), because they need different fixes.
  7. Keep the test set, scorer version and settings fixed between runs, and record each run, so a change in the number reflects the bot, not the measurement.

What counts as a hallucination in a RAG chatbot answer?

Vectara's model card for HHEM-2.1-Open says you always need two pieces of text: the evidence (the retrieved context) and the text being judged (the answer). An answer is hallucinated if the evidence doesn't support it. Its example is a context saying the capital of France is Berlin and an answer saying Paris, which is true in the world but hallucinated in RAG terms, because the model used its training data instead of the retrieved text.

How do Ragas Faithfulness and Vectara's HHEM score RAG hallucinations?

Ragas Faithfulness scores an answer from 0 to 1: the number of claims in the answer that the retrieved context supports, divided by the total number of claims. An LLM does both steps, splitting the answer into claims and checking each one. In the Ragas example, the answer "Einstein was born in Germany on 20th March 1879" against a context giving 14 March 1879 has two claims, one supported, and scores 0.5.

How much can you trust an automated hallucination rate for a RAG app?

Automated scorers miss a lot. The HHEM-2.1-Open model card reports results on RAGTruth, a labelled benchmark of RAG answers: on its question-answering part, balanced accuracy was 74.28%, precision 66.92% and recall 54.38%, about the same as GPT-4 zero-shot (74.11% balanced accuracy, 56.88% recall). So a scorer like this may miss close to half of the unsupported answers, and some answers it flags are fine. Treat its rate as an estimate and calibrate it with people.

How do I ask Rightshold about this (free, no key)?

Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code, then ask: “Record a signed receipt for this week's hallucination check on our help-desk RAG bot: the bot's model version, a hash of the frozen test set and of the per-answer results file, and in params the scorer and its version, the cut-off, the number of questions, the unsupported rate with its 95% interval, the answer rate and the size of the human-labelled sample.”

One-click setup

{
  "tool": "record_ai_run",
  "arguments": {
    "model": "<chat model id and dated version used by the bot>",
    "provider": "<model provider>",
    "prompt_sha256": "<sha256 of the frozen test set: questions plus retrieved contexts>",
    "output_sha256": "<sha256 of the per-answer results file>",
    "params": {
      "app": "help-desk RAG bot",
      "retriever_config": "cfg-2026-11-20",
      "scorer": "HHEM-2.1-Open",
      "scorer_cutoff": 0.5,
      "questions": 400,
      "unsupported": 12,
      "unsupported_rate": "3.0% (95% CI 1.7%-5.2%)",
      "answer_rate": "97.5%",
      "human_labelled_sample": 150,
      "code_commit": "<git commit of the evaluation script>"
    },
    "ran_at": "2026-11-23T17:00:00Z"
  }
}

Rightshold isn't affiliated with Vectara, the Ragas project or the RAGTruth authors, and doesn't score answers for hallucinations. Metric definitions and benchmark figures are from the Ragas Faithfulness documentation, the HHEM-2.1-Open model card on Hugging Face and Vectara's hallucination leaderboard README (updated October 22, 2026), read November 23, 2026; they can change. The confidence interval example uses the Wilson score method. Not engineering or statistical advice for your specific app.

What are the sources?

Related

Not legal advice. JSON · Markdown · All answers

Get a free API key in one call

No card and no email needed. 100 free credits; the license and policy checks stay free without a key.

curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_...   # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
  -H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'