Groundedness Evaluation
An evaluation metric and pipeline that verifies whether every claim in an LLM's generated answer is strictly supported by the retrieved source passages (faithfulness)
Table of Contents
Structure Diagram
What is Groundedness Evaluation?
An evaluation metric and pipeline that verifies whether every claim in an LLM's generated answer is strictly supported by the retrieved source passages (faithfulness). It is a core concept in Retrieval & RAG within AI / ML.
Core Principles
Without separating retrieval errors from generation hallucinations, RAG teams iterate blindly. Groundedness (Faithfulness) decomposes a generated answer into atomic factual claims and uses an NLI model or LLM-as-a-Judge to check whether each claim is entailed by the retrieved passages, scoring supported_claims / total_claims.
Tracked alongside Context Relevance and Answer Relevance (the RAG Triad), it pinpoints whether failures originate in retrieval or generation.
Practical Takeaways
- Always pair retrieval and generation metrics: A response can be 100% grounded yet still wrong if retrieval fetched irrelevant chunks. Track Context Recall/Precision next to Groundedness.
- Gate prompt and chunking changes in CI: Run automated groundedness evaluations over a curated golden dataset (50–200 queries) on every pipeline change.
- Balance online vs offline checks: Run synchronous groundedness checks only on high-stakes flows (medical, legal, finance), and use asynchronous sampling to monitor general production traffic.
Notable Examples
- RAGAS, TruLens & DeepEval: Standard frameworks computing Faithfulness, Context Precision, and Answer Relevance automatically.
- Inline Citation Auditing: Verifies that every
[1]footnote actually supports the sentence it is attached to. - Continuous Knowledge-Base Improvement: Samples low-groundedness production turns to uncover missing or outdated docs.