← Back to glossary
+Suggest a term
Concept·Patterns & Practices·Added 1 day ago

Grounding

Also known as: AI grounding, model grounding, factual grounding, knowledge grounding

Connecting a model's outputs to real, verifiable information rather than letting it generate from training data alone. Grounding prevents hallucination by giving the model authoritative sources to reason from. RAG is the most common grounding technique.

An ungrounded LLM generates text based entirely on patterns in its training data. It has no connection to what's actually true right now, in your documents, or about your specific situation. Grounding is how you fix that: you give the model real, verified information as part of its context, and ask it to reason from that information rather than from its training alone.

The most common grounding mechanism is RAG: before generating a response, you retrieve relevant documents from a knowledge base and include them in the prompt. The model is then instructed to base its answer on those sources. This dramatically reduces hallucination on factual questions because the model has accurate information to work with instead of guessing.

Grounding also shows up in agent contexts: an agent that can query a database, call an API, or search the web in real time is grounding its decisions in current reality rather than stale training data. This is why tool use is sometimes framed as grounding. The underlying principle is the same: the more the model's outputs are anchored in verified real-world information, the more trustworthy those outputs are.

This definition is AI-generated and refreshed weekly. It may contain inaccuracies. Use your own judgment, especially for production decisions.
Related terms
GroundingRAGRetrievalHallucinationGround truthRetrieval-augmented generation