liveBook · Manning

Grounding

As explained in Building Reliable AI Systems

A technique for anchoring an AI system's outputs in external information or evidence.

A plausible AI response can still contain fabricated facts or citations. Grounding anchors output in external information rather than relying on the model’s parametric memory alone. Retrieval-augmented generation (RAG) does this by retrieving relevant evidence before generating a response. section 3.3 section 11.6.6

Build grounding into the response workflow:

  • Retrieve relevant documents or call an authoritative data source, then give the results to the model as evidence for its response. section 11.6.6 section 2.8.3
  • Include citations so users can verify claims, and have the system say “I don’t know” when grounded information is unavailable. section 11.6.6
  • Test with adversarial queries that may trigger hallucinations, and measure the grounding defect rate over time. section 11.6.6

Weather assistant

A weather assistant can use a function call to fetch current conditions from an external API. A JSON schema describes the function to the model; the returned data supplies the facts, while the model interprets the query and formulates the response. section 2.8.3

Grounding improves traceability, but it does not guarantee correctness. Legal RAG systems can still fabricate citations. For high-stakes legal workflows, verify citations against authoritative databases and require human review before output reaches a court. In health care and legal advice, relevant sources can include current clinical guidelines, case law, and regulations. section 1.2.1 section 3.3.4

How Building Reliable AI Systems covers it

How deep it goes
Explains grounding practices and a function-call workflow, while outlining RAG retrieval without detailing its implementation.
Examples
Illustrates grounding with a weather API assistant and legal systems that draw on current case law.
What you can do after
Evaluate grounding with adversarial queries and grounding defect rates, while recognizing the need for verification and human review.
How it connects
Connects grounding to retrieval-augmented generation, hallucinations, function calling, and citation verification.

Also explained in

Compare how 8 books explain grounding →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Reliable AI Systems. The section links point to the parts of the book it draws on.