Grounding
What is Grounding?
Grounding is the practice of restricting a language model to answering from a supplied set of sources, and requiring it to say so when those sources contain nothing relevant. An ungrounded model will produce a plausible answer regardless, which is how chatbots come to quote prices a business does not charge.
In more detail
Retrieval puts the right passages in front of the model. Grounding is the rule about what it may do with them: answer from the supplied sources, and when they do not contain the answer, say so rather than filling the gap with something plausible.
Grounding is usually set in the instructions the model receives and reinforced by how the product behaves around it, for example by recording the questions it could not answer so that someone can add the missing content.
It trades a little helpfulness for a lot of trust. A grounded assistant will sometimes say it does not know something it could have guessed correctly. An ungrounded one will sometimes state a price you do not charge.
How SpideyChat handles it
When an assistant has content to answer from, SpideyChat instructs it: "Use ONLY the information in the context below. If the answer is not in the context, say you don't have that information and offer to connect the user with a human." Vague questions get one clarifying question instead of a guess. An assistant with no content yet answers from general knowledge and is told to be upfront about what it does not know about the business.
We make SpideyChat. The rest of this page describes the term in general, not our product.
Questions
- What is the difference between grounding and RAG?
- RAG is the mechanism that finds relevant content and supplies it. Grounding is the rule that the answer must come from that content. Retrieval without strict grounding is where many invented answers come from.
- Does a grounded chatbot show its sources?
- Some do. SpideyChat does not currently show sources to the visitor; the grounding is in what the assistant is allowed to say.