Glossary
Grounding
Tying a language model's output to sources supplied at request time, so answers come from evidence the model was given and not from training data alone.
Grounding is the practice of anchoring a language model's output to information supplied at request time, such as retrieved documents, tool results, database records or stored memories. A grounded answer can be traced back to a source the model was shown, and a well-grounded system says so when its sources do not contain the answer. The term covers both the technique (putting the right evidence in front of the model) and the property (how closely the output sticks to that evidence).
Why models need grounding
A large language model answers from patterns learned during training. Its knowledge stops at a knowledge cutoff, it has never seen your company’s documents, and it has no record of what a given user said last week. Asked about any of these, an ungrounded model still produces fluent text and fills the gaps with plausible guesses. That is the main source of hallucination in production systems. Grounding replaces the guess with evidence: the model reads the relevant facts in its context window and writes from them.
How grounding works
Most grounding follows the same pattern. The system works out what the question needs, fetches it, places it in the prompt with instructions to rely on it, and returns citations so a person can check the answer. What changes from system to system is where the evidence comes from.
Grounding source | What it supplies | Typical mechanism |
|---|---|---|
Documents | Manuals, policies, reports, transcripts | Retrieval over a search index |
Memory | Facts and preferences about a user or project | A memory layer queried per request |
Tools and APIs | Live values such as prices, stock or status | Function calls during the run |
Web search | Recent public information | A search API and page fetches |
Structured data | Records in a database or knowledge graph | Queries written by the model or the app |
Retrieval-augmented generation is the most common form, and agentic RAG extends it by letting the agent decide when and where to retrieve. Function calling and tool use ground answers in live systems. Agent memory grounds an agent in what happened in earlier sessions, which document retrieval does not cover, and RAG vs agent memory sets out the split.
What makes grounding fail
Grounding is only as good as the evidence it supplies. The commonest failure is retrieval returning passages on the right topic that lack the specific fact, the gap described in similarity isn’t relevance. The model then has related text but no answer, and may blend the two. Stale sources cause a second failure: a document that changed after ingestion grounds the model in something that is no longer true, which stale knowledge covers. Too much context causes a third. Accuracy drops when the relevant passage sits in the middle of a long input, the lost in the middle effect, so pasting in more documents can make grounding worse.
Conflicting sources are harder still. If one record says a customer is on the free plan and a newer one says enterprise, the model needs to know which is current. Contradiction resolution handles this when facts are written, so the context holds one current fact.
Measuring grounding
Grounding is usually scored with faithfulness, which checks whether each claim in an answer is supported by the supplied context, alongside context precision and context recall for the retrieval step. Teams often use LLM as a judge to score these at scale, and frameworks such as RAGAS bundle the metrics. Source attribution makes grounding visible to users: an answer that cites a page number or timestamp can be checked in seconds.
Grounding with Exabase
Exabase supplies the evidence layer that grounding depends on; the model, the prompt and the answer logic stay in your application. Deep Search returns the passage that answers a query, with a page number for documents or a timestamp range for audio and video, so an agent can cite where a claim came from. A precision setting from 0 to 1 trades recall for relevance on each query. Memory grounds an agent in what it has learned about a user: the M-1 engine extracts facts, resolves contradictions as they change and returns ranked results through the memory search endpoint. Workers keep a knowledge base current on a schedule, so the sources stay true over time. Research into context-augmented systems reported 28% fewer hallucinations when agents had reliable memory and context.
The RAG accuracy solution covers retrieval that finds the fact as well as the topic, and agent memory covers grounding from one session to the next. For working setups, see RAG pipelines and customer support agents, and compare platforms in best RAG infrastructure.
FAQs
What is grounding in AI?
Grounding is anchoring a model’s output to information supplied at request time, such as documents, tool results or memories, so each claim can be traced to a source.
What is the difference between grounding and RAG?
RAG is one way to ground a model, using retrieved documents. Grounding is the broader goal and can also draw on tools, web search, databases and memory.
Does grounding stop hallucinations?
It reduces them without removing them. A model can still misread its sources or fill gaps, so grounded systems pair retrieval with citations and regular evaluation.
How do you check whether an answer is grounded?
Compare each claim with the supplied context, by hand or with an automated faithfulness score run against a golden dataset of questions with known answers.
Is fine-tuning a form of grounding?
Not in the usual sense. Fine-tuning changes the model’s weights, while grounding supplies evidence at request time. RAG vs fine-tuning compares the two approaches.
Can Exabase ground answers in audio and video?
Yes. Deep Search indexes transcripts and the visual content of video scenes and returns timestamp ranges, so an answer can point to the moment something was said or shown. Multimodal RAG covers the wider approach.
Related pages: RAG, Agentic RAG, Hallucination, Faithfulness, Source attribution, Knowledge base, RAG vs agent memory, Deep Search, RAG accuracy, Similarity isn’t relevance, Retriever, Corrective RAG, Self-RAG.