PaPoo
cover

What is grounding?

Grounding is the practice of connecting an AI model’s output to a real source of truth, so its answer is based on evidence instead of only pattern-matched text.

Why it matters

Large language models can sound confident even when they are wrong. Grounding helps reduce that by tying responses to something verifiable: a document, database, tool result, sensor reading, or other external source.

You reach for grounding when correctness matters more than fluency—customer support, enterprise search, policy answers, product documentation, data-heavy assistants, and any workflow where you want the model to cite or reflect known facts rather than improvise.

In practice, teams often use grounding before they try more advanced agent behavior. It is one of the simplest ways to make an assistant more trustworthy.

How it works

A grounded system usually does three things:

  1. Fetch relevant evidence.
    The app retrieves source material such as retrieved documents, database rows, or tool outputs.

  2. Constrain the model to that evidence.
    The prompt or system design tells the model to answer using only the provided sources, often with citations or quotes.

  3. Check the result.
    The application may verify that the answer references the retrieved content, reject unsupported claims, or ask for a fallback like “I don’t know.”

Grounding is not the same as making a model “smart.” It is a control technique: it narrows what the model should rely on. In retrieval-augmented generation (RAG), grounding is often the goal; retrieval is one way to achieve it.

Tiny concrete example

User asks:

“What is our refund window?”

The app retrieves the company policy:

“Customers may request a refund within 30 days of purchase.”

The model answers:

“Our refund window is 30 days from purchase.”

If the policy document is missing or unclear, a grounded assistant should say so instead of guessing:

“I couldn’t find the refund window in the sources I have.”

Common pitfalls / when NOT to use it

In short: use grounding when you need answers anchored to evidence, not when you need the model to invent, extrapolate, or compose freely.

Related terms

同じ著者の記事