Grounding
Grounding connects an LLM's outputs to verifiable, real-world information sources. A grounded model response is tied to specific, citable facts rather than relying purely on parametric knowledge, reducing hallucination and increasing trustworthiness.
What is Grounding?
Grounding refers to the practice of anchoring an LLM's responses in external, verifiable information rather than letting the model rely exclusively on what it has memorised during training. A fully grounded response cites its sources, and every factual claim can be traced back to a retrieved document.
Methods of Grounding
- RAG — Retrieve documents at query time and inject them into the prompt. The model is instructed to answer only from the provided context.
- Web search integration — Connect the model to live web search (e.g. Bing, Google, Brave) so it can retrieve current information.
- Database grounding — The model queries a structured database for facts before responding.
- Citation generation — Require the model to produce inline citations for every factual claim, making verification easy.
Grounding vs Context
Grounding is about connecting responses to external truth, while the context window is simply the space available. You can have a large context without grounding (e.g. a long conversation) and you always need grounding if factual accuracy is critical.
Grounding in Production Systems
Google's Vertex AI offers a "grounding with Google Search" feature. Bing Copilot uses real-time web grounding. Perplexity AI is built entirely on a grounding-first architecture that requires every claim to be cited.
Example
An enterprise legal assistant is grounded in the company's internal contract database. Every clause it cites is linked to an actual contract, making its answers auditable and legally defensible — unlike a hallucinating general-purpose chatbot.