Skip to content

What is groundedness in AI?

Sergey Almyashev

Definition

Groundedness means being tied to something solid. In AI, it measures whether every claim in an LLM answer is supported by the source text the model was given, such as retrieved RAG passages or tool results, rather than by its training memory. A fully grounded answer adds nothing that its sources do not say.

What does groundedness mean?

In everyday English, groundedness is the quality of being grounded: connected to something solid. In AI the word keeps that sense but becomes testable. The "something solid" is the source text you hand the model, and the test is whether each statement in the answer can be traced back to it.

Google's check grounding API docs (updated 2026-11-10) state the strict version well. Perfect grounding requires every claim in the answer to be supported by one or more of the given facts. A claim that is only partly entailed counts as ungrounded. Their example: "Google was founded by Larry Page and Sergey Brin in 1975" gets the founders right and the year wrong, so the whole claim fails. In that API, one sentence is one claim.

Two things follow from that definition:

  • Groundedness is measured per claim, then rolled up. One invented sentence in a five-sentence answer is a defect even if the other four are fine.
  • It needs a source. Without retrieved text, a tool result or a document, there is nothing to be grounded in. Checking an answer against the world is a different test: fact-checking against a reference.

How do you measure groundedness?

Most tools follow the same three steps: split the answer into claims, check each claim against the context, then score the share that passed. They differ in who does the checking and what comes back.

ToolHow it checksWhat it returns
Ragas FaithfulnessAn LLM breaks the answer into statements and judges each one against the retrieved contextSupported claims divided by total claims, 0 to 1
Ragas Response GroundednessTwo separate judge prompts each rate the whole answer 0, 1 or 2The two ratings normalized and averaged, 0 to 1
Google check grounding APIA service model matches sentences to factsA support score from 0 to 1, plus citations per claim
Microsoft Foundry Groundedness evaluatorAn LLM judge you deployA 1 to 5 score and pass or fail
Microsoft Foundry Groundedness Pro (preview)Azure AI Content SafetyPass or fail only

Ragas documents the tradeoff between its two metrics: Faithfulness uses more tokens but explains its verdict for each claim, while Response Groundedness is cheaper and returns only a raw score. Use the first when you need to debug, the second when you need volume.

Google's API is built for runtime use. Its docs give a latency under 500 ms, which is fast enough to call on every answer, and a citation threshold from 0 to 1 that trades the number of citations against their strength.

If you planned to use groundedness detection in Azure AI Content Safety, check the date first. Microsoft's groundedness detection page (updated 2026-10-20) says the feature retires on April 30, 2027, and points users to Foundry evaluation tooling or their own validation instead.

Groundedness vs relevance, completeness and correctness

Groundedness answers one question. A RAG answer can pass it and still fail the user.

MetricQuestion it answersCompared against
GroundednessDoes the answer say only what the sources say?Retrieved context
RelevanceDoes the answer address the question?The user's query
CompletenessDoes the answer leave out anything important?A reference answer
CorrectnessIs the answer true?Ground truth or the real world

Microsoft's RAG evaluator docs (updated 2026-06-02) frame the first and third as a pair: groundedness is the precision side of an answer (nothing outside the context), completeness is the recall side (nothing critical missing).

Grounded and correct are not the same. An answer that faithfully repeats an outdated policy page is fully grounded and still wrong. That is why Microsoft's groundedness detection page tells teams to keep their grounding sources accurate and current. Groundedness moves the question from "did the model invent this?" to "is our source right?", which you can actually fix.

Example: a claim-level groundedness check in Python

This toy check follows the same three steps with no model and no API key. Each sentence is a claim. A claim passes if it shares at least half its content words with one retrieved chunk and every number in it appears in that chunk. We ran it with Python 3.11 exactly as printed.

import re

# Retrieved chunks the model was given, and the answer it wrote.
CONTEXT = [
    "Items can be returned within 30 days with the original receipt for a full refund.",
    "Gift items are eligible for store credit only.",
]
ANSWER = ("You can return items within 30 days if you have the receipt. "
          "Gift items can be exchanged for store credit. "
          "Refunds are paid within 5 business days.")

STOP = {"a", "an", "the", "is", "are", "be", "can", "for", "if", "you", "have", "with", "within", "of", "to", "only"}

def terms(text):
    return {w for w in re.findall(r"[a-z0-9]+", text.lower()) if w not in STOP}

def numbers(text):
    return set(re.findall(r"\d+(?:\.\d+)?", text))

def check(answer, context, min_overlap=0.5):
    claims = [s for s in re.split(r"(?<=[.!?])\s+", answer) if s]  # one sentence = one claim
    results = []
    for claim in claims:
        best = max(context, key=lambda chunk: len(terms(claim) & terms(chunk)))
        overlap = len(terms(claim) & terms(best)) / len(terms(claim))
        # A number in the claim that is not in the supporting chunk makes the whole claim ungrounded.
        supported = overlap >= min_overlap and numbers(claim) <= numbers(best)
        results.append((supported, round(overlap, 2), claim))
    score = sum(r[0] for r in results) / len(results)  # supported claims / total claims
    return score, results

def report(answer):
    score, results = check(answer, CONTEXT)
    for supported, overlap, claim in results:
        print("SUPPORTED  " if supported else "UNSUPPORTED", overlap, claim)
    print(f"groundedness={score:.2f}\n")

report(ANSWER)
report("You can return items within 60 days with the original receipt.")  # wrong number
report("Gift items are not eligible for store credit.")  # negation: a word check cannot see it

Output:

SUPPORTED   0.8 You can return items within 30 days if you have the receipt.
SUPPORTED   0.8 Gift items can be exchanged for store credit.
UNSUPPORTED 0.2 Refunds are paid within 5 business days.
groundedness=0.67

UNSUPPORTED 0.67 You can return items within 60 days with the original receipt.
groundedness=0.00

SUPPORTED   0.83 Gift items are not eligible for store credit.
groundedness=1.00

The first answer scores 2 of 3, the same arithmetic Ragas uses. The made-up payout time is caught because nothing in the context mentions it. The second answer is caught by the number rule, which is the wrong-number case from the Google and Azure docs.

The third result is the lesson. "Not eligible" flips the meaning, yet word overlap scores it as supported. That is why production checks use an entailment model or a calibrated LLM judge, and why this code belongs in a test suite as a cheap first filter, not as your only check.

Where should a groundedness check run?

  • In offline evals, on a fixed set of questions with known sources, on every prompt, model or retrieval change. This is where judge-based metrics like Ragas Faithfulness fit; see AI evals for how such a suite gates CI.
  • At runtime, as a gate before the answer reaches the user. A fast scorer can block, regenerate or add a "could not verify" note when the score falls below your threshold.
  • On retrieval itself. If the right chunk was never retrieved, a grounded answer is impossible. Score retrieval separately so you know which half to fix. In agentic RAG, the agent grades what it retrieved and searches again when the results miss.

What to check before trusting a groundedness score

  1. Your judge agrees with people. Hand-label a sample, compare it with the metric and keep the labels. Our LLM evaluation guide covers judge bias and calibration.
  2. Claims that need no grounding are skipped. Google's API flags filler such as "Here is what I found." as not requiring a check. Your own scorer should too, or polite answers will drag scores down.
  3. The threshold comes from your data. Pick it from labeled failures, not from a default.
  4. Sources are versioned. When a policy page changes, re-run the suite against the new text.

SDCLabs builds groundedness tests from client documents and tracks the rate of unsupported claims as part of its AI testing services, then helps tune retrieval and prompts until the rate is acceptable to the client.

Sources

  1. Check grounding with RAG, Google Cloud documentation, 2026-11-10
  2. Faithfulness, Ragas documentation, 2026-11-13
  3. Nvidia metrics: Response Groundedness, Ragas documentation, 2026-11-13
  4. Retrieval-Augmented Generation (RAG) evaluators, Microsoft Learn, 2026-06-02
  5. Groundedness detection, Microsoft Learn, 2026-10-20

Frequently asked questions

Is groundedness a word?

Yes. It is the noun form of grounded: the quality of being grounded. In AI evaluation it has the narrower meaning of an answer being backed by its sources.

How do you evaluate groundedness in a RAG system?

Build a set of real questions with the passages your retriever returns, generate answers, and score each answer claim by claim against those passages with an LLM judge or a service such as Google's check grounding API. Track the share of unsupported claims on every prompt, model or retrieval change.

What is a good groundedness score?

There is no universal number. Defaults differ by tool: Microsoft Foundry's evaluator passes a score of 3 or more on its 1 to 5 scale, while Google's 0.6 default is a citation threshold, not a pass mark. Set your own bar from answers your team has labeled.

How do you improve groundedness?

Fix retrieval first, so the right passage is in the context. Then tell the model to answer only from the context and to say when it cannot, and block or regenerate answers whose claims fail the check.

Sergey AlmyashevSergey AlmyashevChief Operating Officer14+ years in QA, automated, exploratory and performance testing, and continuous integration and delivery within Scrum, helping teams in product and outsourcing companies organize teams, processes and tools.LinkedIn

Building with AI agents? Talk to an engineer.