Skip to content
Sign in

What is Grounding?

Grounding in LLMs connects a model's generated text to verifiable external facts or data sources so responses are accurate rather than invented.

It works by retrieving relevant information from trusted sources (documents, databases, or APIs) and injecting that context into the prompt before generation occurs.

Key techniques include retrieval-augmented generation (RAG), tool use, and citation mechanisms that let the model reference real evidence instead of relying only on memorized training data.

The goal is to reduce hallucinations and make outputs traceable to specific, checkable facts.

Example

A user asks about today's weather; a grounded LLM first calls a weather API, then uses the returned data to answer instead of guessing from old training data.

Why it matters

Grounding is essential for trustworthy AI in real-world applications like search, education, and enterprise tools where factual errors can cause harm or loss of user trust.

Frequently asked questions

Prompting alone uses only the model's internal knowledge; grounding adds external, up-to-date facts retrieved at runtime.