Grounding
Property of an LLM response to rely solely on the provided context. A grounded response 'stands on facts', while an ungrounded one hallucinates.
Why It Matters in RAG
RAG feeds models found fragments. But the model may:
- ignore the context and answer from 'memory';
- infer facts not present in the documents;
- mix context with fabrication.
Grounding is a measure of how accurate the response is to the documents provided.
How It Is Measured
In RAG quality assessment, grounding is one of the metrics in the triad:
- Faithfulness / Groundedness — every claim in the response is supported by the context.
Measured through LLM-as-a-Judge: a strong model checks claims one by one.
How to Improve
- explicit system prompt 'respond only based on context';
- high-quality retriever — so the context is relevant;
- re-ranking — keep only precise fragments.