Faithfulness (RAG metric)
Definition
How far an answer's claims are supported by the retrieved context it was given, regardless of whether they are true in general.
In more detail
A faithful answer only says things the sources back up. Tools such as Ragas measure it by splitting the answer into individual claims and asking a judge model whether each one can be inferred from the context; the score is the share that can.
Faithfulness separates two failures: retrieval missing the right document, and generation inventing things despite good documents. An answer can be faithful and still wrong if the source was wrong, so pair it with checks on retrieval and on the final answer against a reference.
Related terms
Context precision and recall
RAG retrieval metrics: precision is the share of retrieved chunks that are relevant, recall the share of needed facts found.
Grounding
Tying a model's answers to specific provided sources or retrieved data, so that each claim can be traced back to a source and checked.
Hallucination
A fluent, confident model output that is false or not supported by its sources, such as an invented citation, quote or API call.
Retrieval-augmented generation (RAG)
Retrieving relevant documents and adding them to the prompt before the model generates an answer from them.
Read more about Faithfulness (RAG metric)
- Ragas
Metrics and test-set generation for evaluating RAG pipelines and agents.
- Evaluate RAG answers with a golden dataset
Set up RAG evaluation with a golden dataset and promptfoo: score retrieval, correctness and grounding for every question, and fail CI when answer quality drops.
- RAG fundamentals: retrieval before generation
What RAG is and how retrieval-augmented generation works, when it beats long context or fine-tuning, and a minimal working pipeline in about 80 lines of Python.