# What is LLM grounding?

LLM grounding ties a model's output to verifiable outside information, such as retrieved documents, so that each claim can be traced to a source.

LLM grounding means anchoring a language model's output to verifiable external information, such as retrieved documents, web results or a knowledge base, instead of letting it answer from memory alone. A grounded response can cite where each claim came from, which reduces hallucinations and lets users verify the model's work.

## Why do LLMs need grounding?

A language model's default mode is recall: it produces a plausible continuation of your prompt based on patterns in its training data. Plausible is not the same as true. When the model lacks the relevant fact, because it is recent, private or obscure, it can produce a confident, fluent, wrong answer.

Grounding changes the model's job from remembering to reading. You put trusted evidence in the context window and instruct the model to answer only from it. The model becomes a reasoning and writing layer over sources you control, not an oracle you have to trust blindly.

## Grounding vs RAG: what's the difference?

The two terms overlap but are not identical. [RAG](https://millionshort.com/docs/glossary/what-is-rag) is a mechanism: retrieve documents, add them to the prompt, generate. Grounding is the goal: every claim in the output traceable to evidence. RAG is the most common way to ground an LLM, but grounding also covers tool results, database lookups and documents a user supplies. And a RAG pipeline can still produce ungrounded output, if the model ignores its context or the retrieved pages are wrong.

## What makes grounding actually work?

Three things, in practice:

- **Evidence quality.** Grounding on a content farm just passes the content farm's errors on in a confident voice. [Primary sources](https://millionshort.com/docs/glossary/what-are-primary-sources-in-rag), the documents that said it first, are the strongest anchor.
- **Citations.** Grounded systems attach source URLs to claims so that a person, or a later agent, can check them. If you cannot trace a claim, it is not grounded.
- **Instruction discipline.** The prompt must tell the model to prefer the supplied context over its own memory, and to say so when the evidence does not answer the question.

For systems that answer from the web, the evidence usually comes from a [web search API](https://millionshort.com/docs/glossary/what-is-a-web-search-api).

## Where MillionShort fits

MillionShort supplies the evidence, not the answer. A search returns ranked results, each with its `url`, `site` and a snippet, so your model can quote and cite. Two signals help you decide what to trust: `popularity` says where a site sits among the most popular sites, and `risk` is set when a site carries a risk label. It does not check claims or write the grounded answer for you. [Search for RAG](https://millionshort.com/docs/search/guides/rag) shows the pattern, and [popularity and risk](https://millionshort.com/docs/search/popularity-and-risk) explains the signals.

## Related terms

- [What is RAG noise?](https://millionshort.com/docs/glossary/what-is-rag-noise)
- [What is source diversity in RAG?](https://millionshort.com/docs/glossary/what-is-source-diversity)
