Data and retrieval

Grounding

Grounding is the practice of tying an AI model's answers to specific, trusted sources, such as company documents, database records or search results, supplied at request time, so that responses can be checked and are less likely to be invented.

A language model's general knowledge is broad but out of date, unverifiable and silent about your business. Grounding gives the model the facts it should use for each answer and asks it to stay within them. Done well, every claim in a response can be traced to a source a person could check. For businesses, grounding is what separates an assistant that sounds right from one that can be trusted with policy, product or customer questions.

How it works

Grounding has two parts: supplying sources and holding the model to them.

Supplying sources. The application fetches relevant material before calling the model. Common sources are:

Holding the model to them. The prompt instructs the model to answer only from the supplied material, to cite which source supports each point, and to say clearly when the sources do not contain the answer. Some builds then check the answer: verifying that quoted text exists in the source, or using a second model to judge whether each claim is supported.

Take an HR assistant answering "How much parental leave do I get?" A grounded build retrieves the current leave policy for the employee's country, answers with the relevant figure and links to the section. An ungrounded one might give a plausible number from general knowledge, which could be wrong for that company.

What it means for cost

Grounding is where much of the effort in a trustworthy AI build goes. The work includes preparing sources, keeping them current, building retrieval that finds the right passage, designing citation and refusal behaviour, and testing on real questions with known answers. Builds that must be grounded in many systems, or where sources conflict or change often, take longer.

Running costs rise a little too, because retrieved sources add tokens to each request. Ask a builder which sources the assistant uses, how they stay up to date, what the assistant does when it finds nothing, and how grounding quality is measured before launch.

Common questions

Does grounding guarantee correct answers?

No. It reduces hallucination and makes errors easier to spot, but the model can still misread a source, and retrieval can return the wrong passage. Testing and citations help catch both.

Is grounding the same as RAG?

RAG is the most common way to ground a model in documents. Grounding is the broader goal and can also use live database records, search results or structured data, not only retrieved passages.

Why do grounded answers include citations?

Citations let users check claims against the source and help builders diagnose errors. They also make it obvious when the assistant has no source, which is itself useful information.

Related terms

Pricing a build that involves Grounding? Send the brief and get a fixed price set next to the market range.Get a quote