Inferensys

Glossary

RAGTruth

A specialized benchmark corpus designed to evaluate hallucination in Retrieval-Augmented Generation (RAG) systems at both the passage and word level across multiple domains.
Developer building agentic RAG system, retrieval pipeline diagram on laptop, technical workspace with notes.
HALLUCINATION BENCHMARK

What is RAGTruth?

A specialized benchmark corpus designed to evaluate hallucination in Retrieval-Augmented Generation (RAG) systems at both the passage and word level across multiple domains.

RAGTruth is a large-scale, human-annotated benchmark corpus specifically constructed to evaluate and detect hallucination in Retrieval-Augmented Generation (RAG) systems. It provides fine-grained annotations at both the passage level and the word span level, enabling precise analysis of where and how a model's output diverges from the provided grounding context.

Spanning multiple domains including news, finance, and biomedicine, RAGTruth captures diverse hallucination patterns such as entity-level errors, relation-level contradictions, and sentence-level fabrications. By offering a standardized, high-quality dataset for training and evaluating hallucination detection models, it serves as a critical tool for improving the factual consistency and faithfulness of RAG pipelines in production.

BENCHMARK ARCHITECTURE

Key Features of RAGTruth

RAGTruth is a specialized benchmark corpus designed to evaluate hallucination in Retrieval-Augmented Generation (RAG) systems. It provides fine-grained annotations at both the passage and word level across multiple domains, enabling precise measurement of factual grounding quality.

01

Fine-Grained Annotation Schema

RAGTruth employs a two-level annotation hierarchy that captures hallucinations with exceptional precision:

  • Passage-Level Hallucination: Labels entire generated spans as hallucinated when they contain unsupported claims
  • Word-Level Hallucination: Pinpoints the exact tokens within a passage that constitute the factual error

This dual granularity enables both coarse filtering of hallucinated responses and fine-grained error analysis for model debugging. Annotators are trained to distinguish between intrinsic hallucinations (contradicting the source) and extrinsic hallucinations (adding unsupported information).

02

Multi-Domain Coverage

The corpus spans four distinct domains to test generalization across knowledge types:

  • Wikipedia: Encyclopedic factual knowledge with high entity density
  • News: Time-sensitive information requiring temporal reasoning
  • Medical: Domain-specific terminology and causal relationships from PubMed abstracts
  • Finance: Numerical precision and quantitative claims from earnings reports

Each domain presents unique hallucination patterns. Medical texts often exhibit relation-level errors where causal links are fabricated, while finance texts show numerical hallucinations where figures are altered or invented.

03

RAG-Specific Evaluation Protocol

Unlike general hallucination benchmarks, RAGTruth is designed specifically for retrieval-augmented pipelines. The evaluation protocol:

  • Provides the retrieved context passages alongside the generated response
  • Requires evaluators to verify each claim against the exact source text provided, not external knowledge
  • Measures grounding fidelity—whether the model faithfully uses the retrieved information without fabrication

This isolates RAG-specific failures from general knowledge gaps, distinguishing between retrieval failures (wrong context) and generation failures (ignoring correct context).

04

Human-Annotated Ground Truth

All annotations in RAGTruth are produced by trained human annotators following rigorous guidelines:

  • Inter-annotator agreement measured via Cohen's Kappa to ensure labeling consistency
  • Multi-round adjudication where disagreements are resolved by senior annotators
  • Span-level verification requiring annotators to highlight the exact source evidence for each claim

This human-validated ground truth provides a gold-standard evaluation set against which automated hallucination detection methods like SelfCheckGPT and NLI-based evaluators can be benchmarked.

05

Benchmarking Automation Tools

RAGTruth includes a standardized evaluation harness for reproducible benchmarking:

  • Pre-formatted test splits with consistent prompt templates across models
  • Automated metric computation for hallucination rate, precision, and recall
  • Baseline results published for major LLMs including GPT-4, Claude, and Llama variants

The benchmark supports both black-box API evaluation and white-box model inspection, enabling researchers to correlate hallucination rates with model architecture choices and retrieval configurations.

06

Integration with Hallucination Taxonomy

RAGTruth annotations map to a structured hallucination taxonomy that classifies errors by type:

  • Entity-Level: Invented people, places, or organizations not in the source
  • Relation-Level: Fabricated connections between entities that appear in the source
  • Numerical: Altered statistics, dates, or quantitative values
  • Temporal: Incorrect chronological ordering or time references

This taxonomy enables granular risk analysis, allowing practitioners to identify which error types dominate in their RAG pipeline and target mitigation strategies accordingly.

RAGTRUTH EXPLAINED

Frequently Asked Questions

Clear, technical answers to the most common questions about the RAGTruth benchmark corpus, its methodology, and its role in evaluating hallucination in Retrieval-Augmented Generation systems.

RAGTruth is a specialized benchmark corpus designed to evaluate hallucination in Retrieval-Augmented Generation (RAG) systems at both the passage and word level across multiple domains. It works by providing a dataset of source documents paired with human-annotated summaries where every span of text is labeled for factual consistency. The corpus specifically targets the hallucination patterns unique to RAG architectures—where a model generates text conditioned on retrieved passages but may still contradict or fabricate information beyond what the retrieved context supports. RAGTruth enables fine-grained evaluation by distinguishing between passage-level hallucinations (entire sentences unsupported by the source) and word-level hallucinations (individual tokens or entities that are incorrect), giving LLMOps engineers a precise instrument for measuring and mitigating factual drift in production RAG pipelines.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.