Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Faithfulness (RAG metric)

Topic: Evals and observabilityAlso called groundedness

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.

  • 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.

  • Ragas

    Metrics and test-set generation for evaluating RAG pipelines and agents.

    Tool

  • 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.

    WorkflowIntermediate2 h6 steps

  • 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.

    TutorialBeginner30 min