We use analytics to count visits and form use. It is on unless you reject it. We show no ads on this site.

Glossary

Groundedness

Published . Last updated . Published by Zapple.Tech, founded by the founders of CodeceptJS and Codeception, open-source testing frameworks.

Also called
faithfulness, contextual grounding
Published
Updated
Related service
AI chatbot testing
Definition

Groundedness tells you whether an AI answer is supported by the source material the model was given, such as retrieved documents or a tool result. A grounded answer adds nothing the sources do not say. It does not tell you whether the sources are right, so you still need a check on correctness.

What does groundedness mean?

Groundedness is a property of one answer against one body of source material. Google Cloud defines the act of grounding as “the ability to connect model output to verifiable sources of information”. Microsoft’s content safety documentation defines the failure: “Ungroundedness refers to instances where LLMs produce information that is non-factual or inaccurate from what was present in the source materials.”

Vendors use different names for the same idea. Ragas calls it faithfulness, AWS calls it a contextual grounding check, and Microsoft and TruLens say groundedness. This page is tool-neutral: it describes the property, not one vendor’s metric.

The source can be retrieved documents, a tool result or a pasted contract. That is why this page is narrower than RAG evaluation, which scores the retrieval step as well as the answer. Groundedness is only the second half: given what the model was handed, did it stay inside it?

How is groundedness scored?

Two methods appear in the documentation. Ragas splits the answer into claims: “A response is considered faithful if all its claims can be supported by the retrieved context”, and the score is the share of supported claims. TruLens describes the same approach: separate the response “into individual claims and independently search for evidence that supports each within the retrieved context”. Microsoft’s RAG evaluator takes a rating approach, using a model as the grader and a pass or fail on a 1 to 5 scale threshold.

A model grading a model is the LLM-as-a-judge pattern, so its limits apply: you must check the scorer against labels from people.

Groundedness: an AI answer is split into claims and each claim is checked against the source passages the model was given; a claim no passage supports is flagged, and the score is the share of supported claims

How does groundedness differ from the other checks on an answer?

Four checks sit close together. Microsoft’s RAG evaluators page separates groundedness (the “precision aspect”: no content outside the grounding context) from completeness (the “recall aspect”: no critical information missing against an expected answer).

Check The question it answers What it needs How it fails
Groundedness Does the answer stay inside the sources? The sources Passes a wrong or stale source
Relevance Does the answer address the question? The question Passes an answer that is on topic but unsupported
Correctness Is the answer true? A reference answer or a human Needs labeled data, which costs time
Completeness Does it include what it should? A reference answer Rewards length if the reference is loose

For groundedness, relevance and completeness, the “needs” column follows the Microsoft documentation, which says its relevance evaluator suits teams that “don’t have ground truths”, while completeness is judged against an expected response. The correctness row and the “how it fails” column are our reading.

What groundedness score is good enough to release?

The vendor documentation gives defaults and starting points, not a release threshold for your product. Our rule of thumb: set it from the cost of a wrong answer, then confirm it on a labeled sample.

  1. Rank your answers by harm: a wrong opening-hours answer is cheap, a wrong dosage or refund rule is not.
  2. Label a sample of real answers by hand: supported by its source, or not.
  3. Score the same answers. Pick the threshold that separates the two groups at a cost you accept.

AWS’s documentation uses 0.7 as an example: with grounding and relevance thresholds at 0.7, responses scoring below it “will be detected as hallucinations and blocked”. The same page calls 0.7 “a reasonable starting point” for conversational and reasoning use cases on its Standard tier, and tells you to test thresholds with your own data when you change tier. Microsoft’s evaluator scores from 1 to 5, and its “default pass threshold is 3”. Both are starting points on each vendor’s own scale. Our judgment: set your own threshold from your own labeled data, not from either default. The AWS documentation says a higher threshold blocks more ungrounded content; our reading is that it also blocks more good answers.

A grounded answer can still be wrong: what else do you check?

Check the source, the question and the answer, in that order. If you cannot say who owns the source and when it was last updated, groundedness is measuring loyalty to a document you have not vetted. Then check correctness on a labeled set, and test the cases where the right behavior is to refuse. Our guides on chatbot test automation and testing AI agents cover the surrounding checks. If you are choosing what to buy, AI chatbot testing is the service that tests a chatbot across whole conversations and leaves a conversation suite that reruns on every change.

What does groundedness not solve?

A fully grounded answer repeats whatever the source says, so a wrong or stale source passes. When the score is produced by a model, it has its own errors and must be checked against human labels. It says nothing about tone, safety or whether the answer helps the user. Treat it as one gate among several, never the only one, and keep a person responsible for the source material.

What does Zapple.Tech do about it?

If you are not sure how your AI answers are checked, start with the evidence. Zapple.Tech starts with a one-week QA audit of one product area. It looks at its tests, pipeline and release process, and ends in a written report on what is at risk and what to fix first, plus a pilot plan you can run with Zapple.Tech or without it. Read more on the QA audit and assessment page.

Tell us about your AI feature in the form below.

  • RAG evaluation

    RAG evaluation measures a retrieval-augmented generation system in two parts: whether the search step returned the right passages, and whether the answer built from them is supported and useful. Scoring the two separately tells you which one to fix. You need a labelled question set before any score means something.

  • LLM as a judge

    LLM as a judge means using one language model to grade the output of another against a rubric, so a team can score thousands of answers unread by people. It is fast and flexible, but the judge makes its own errors. Trust its score only after you compare it with human labels, and check hard rules without a model.

  • LLM evaluation

    LLM evaluation is the practice of measuring how a language-model feature or agent behaves on a defined set of tasks, using written success criteria and scores. It does not by itself show the feature is correct. Our AI agent testing builds a task set, a measured baseline and a suite that scores each model, prompt or tool change.

All terms in the glossary

Test AI

AI chatbot testing

Testing for customer-facing AI chatbots: multi-turn conversations, policy and tone checks, prompt injection and hand-off to a human. One-week baseline.

See the service

Questions about groundedness

What is groundedness in AI?

Groundedness is the degree to which an AI answer is supported by the source material it was given. A grounded answer sticks to that material and does not add claims from outside it. Vendors also call the same property faithfulness or contextual grounding.

What is the difference between groundedness and hallucination?

Hallucination is the broad failure of producing content that is made up or wrong. Groundedness checks one cause of it: whether the answer goes beyond the supplied sources. An answer can be ungrounded and still true, or grounded in a wrong source and still false.

How is groundedness measured?

Two documented methods are to split the answer into claims and check whether each one is supported by the source, or ask a model to grade the answer against the source on a scale. The result is a score or a pass or fail. Check a sample of its scores against labels from people first.

What is the difference between groundedness and relevance?

Groundedness asks whether the answer stays inside its sources. Relevance asks whether the answer addresses the question that was asked. An answer can be fully grounded and off topic, or on topic and made up. You need both checks.

Is groundedness the same as accuracy?

No. Groundedness compares the answer with the sources it was given. Accuracy compares it with the truth. If the source is wrong or out of date, a perfectly grounded answer is wrong.

Request a QA audit quote

Tell us what you ship and what worries you.

What happens after you send this

  1. You send the form: your situation and what you need tested, then your name and work email.
  2. Within one business day, we reply with a suggested first step, its scope, timeline and a quote.
  • Fixed scope
  • You decide after each step
  • The tests live in your repository
  • An NDA signed before access

“They helped us to close the positions and consult our team how to proceed further. High-quality quick feedbacks with the deep checking of the required tasks, professional approach, great understanding of the company's technologies and product, detailed reports.”

Kristina Lavrentieva, Manager at keepgo.com, Israel
  • Rated 4.9 out of 5 on Clutch, from 7 client reviews
  • 42 completed test automation and infrastructure projects
  • Founded by the founders of CodeceptJS and Codeception, open-source testing frameworks

Request a QA audit quote

    What is closest to your situation?
    Optional. The product, the platforms, how often you release, what broke last.

    You decide after our reply whether to go ahead.

    Prefer to talk first? Book a call

    One-week QA audit · written report

    Request a QA audit quote