# What is grounding in AI?

> First published 2026-12-02
> Source: https://viktor.com/learn/grounding-in-ai

Grounding in AI ties an answer to sources you can check, such as files or web pages. An AI model is the software that writes the reply. Grounding gives the model sources beyond its training, the process of learning patterns from earlier material. For a business, that means you can trace a claim back to its source, though the source can still be wrong.

## How does a source become part of an answer?

A customer asks about a repair. They want to know whether the contract covers the cost, so the reply needs to draw on their signed terms. A broad guide won't do. Grounding ties the answer to the source that can settle the claim.

You can supply a file, or software can find a source through search. Grounding can use [documents or search results](https://cloud.google.com/vertex-ai/generative-ai/docs/grounding/overview). There's no need for each task to start with a web search. What counts is how the source supports the answer.

Software can build that link through these steps. The route depends on whether the source is already at hand or needs finding.

1. **Set the question and choose the source.** The request tells the system what needs answering. For the repair question, the source should be the customer's contract and its terms for repairs. A standard policy could miss a change that the team agreed with this client.
2. **Bring the source text into the request.** Software can search for useful text, or pass a file to the model for it to read. Retrieval is the term for finding and fetching data for the task at hand. A file name alone won't supply the facts inside the file.
3. **Write an answer from that source.** The model reads the question with the source text and writes a reply. In a [search-grounded workflow](https://ai.google.dev/gemini-api/docs/google-search), the model can choose what to search for, read the results and use them in its answer. The final reply comes after the search.
4. **Link claims to the text that supports them.** A citation points from an answer to its source. Systems that cite files can [point to the source text](https://docs.anthropic.com/en/docs/build-with-claude/citations), such as a page in a PDF or a short span of words. That lets someone see which clause supports the claim about who pays.
5. **Handle what the source doesn't settle.** A useful reply keeps the stated terms apart from guesses about the repair. Suppose the contract rules out cover for wear and tear, but the request never says what went wrong. The terms alone can't settle the case. The response should ask for that missing fact, rather than guess who pays.

These steps describe one way to build grounding. They don't promise that each product takes every step. A file can be present in a request even when the final answer fails to use the right clause.

## Why can a grounded answer still be wrong?

An old contract can support an answer that no longer fits the client's signed terms. The answer follows the source, but the source is out of date. Grounding doesn't prove that the chosen source is right for the task.

Source support is also distinct from relevance, which means how well the answer fits the question. A system can [check both on their own](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-contextual-grounding-check.html). An answer can match a source and still miss the point. A correct list of shipping terms won't settle a question about repair costs.

The model can also read a source wrongly. A contract can rule out one kind of repair, yet the reply says that all repairs are ruled out. Finding the right file doesn't prevent a mistake in how the model uses it.

A working source link lets you open the cited source. It doesn't prove that the answer used that source or that the text backs the full claim. A sentence can start with a fact from the source, then end with a claim the source never made.

Grounding [reduces the chance of made-up claims](https://cloud.google.com/vertex-ai/generative-ai/docs/grounding/overview). It doesn't promise an error-free answer. Before a choice that could cost the business, ask what the source supports, even when the reply sounds sure.

## What would grounding change in a support reply?

Consider a made-up support case. A customer wants the team to replace an item that broke, and the support lead asks an AI system to draft a reply. The team has a standard returns policy and a signed deal with this customer.

Without that deal, a reply based on the standard policy could miss the customer's rights. In a grounded workflow, the system gets the clause that sets those rights and bases the draft on its terms.

Suppose the deal covers damage during shipping, but the customer's message only says the item is broken. The source supports an account of when cover applies. It doesn't tell the team when the item broke.

The draft should state that limit and ask for the missing detail, with the clause cited beside the claim. The support lead now has the terms in view and knows what to ask next. There is no basis yet to promise a new item.

## How Viktor does this

Viktor searches the web and [answers with sources](/docs/what-viktor-can-do#research-with-current-information).

[Viktor product overview](/product).

## FAQ

### Is grounding the same as retrieval-augmented generation?

No, retrieval-augmented generation, or RAG, is a way to find data and use it to write an answer. Grounding is the link from an answer to its sources. RAG can help build that link. A file you supply can also ground an answer without a search to find it.

### Does grounding require the latest web information?

No, grounding needs sources that fit the question, such as a signed contract. [Web search can supply recent facts](https://ai.google.dev/gemini-api/docs/google-search), but a new source isn't always the right source. A change to standard terms doesn't, by itself, prove that the terms of an older contract have changed.

### How is grounding different from adding context?

[Context is the information supplied](https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents) to a model, such as rules and facts. Grounding concerns the sources that back an answer. A style rule can be useful context without proving a claim. A contract clause can be context that also grounds an answer about repair costs.

## Related

- [How to verify your AI employee's work](/blog/how-to-verify-your-ai-employees-work)
