Why models need it
A language model's built-in knowledge is frozen at its training date, mixed with everything else on the internet and blind to your business. Ask it about your cancellation policy and it will produce something that sounds like a cancellation policy. Grounding replaces that guesswork with your actual text.
Common ways to ground a model
- Retrieval: search your knowledge base for relevant passages and place them in the prompt.
- Tools: let the model call your systems, for example a booking API for real availability or an order lookup for delivery status.
- Web search: for current public facts, with sources returned alongside the answer.
- Structured data: pass a customer's account details or a price table directly.
Making grounding stick
Supplying sources is only half of it. The instructions should tell the model to answer only from the provided material and to say "I don't know" when the answer is not there. Ask for citations, so a reviewer or the customer can check. Then test with questions whose answers are missing from your documents; a well-grounded assistant declines, a poorly grounded one improvises.
Grounding quality depends on the sources. Outdated FAQ pages, two contradicting price lists or scanned PDFs nobody can search will produce confident but wrong answers. Cleaning up the content is often the most valuable step.
Questions, answered
Retrieval-augmented generation is one popular way to ground a model; tool calls and live data feeds are others.
It greatly reduces them, but models can still misread or overstate a source, so citations and spot checks remain important.