Blog
Grounding AI assistants in your own data
An assistant is useful at work when it answers from company records and shows which ones. What grounding means and how to tell whether you have it.
A language model knows a great deal about the world in general and nothing about your customers. Grounding is the set of techniques that make it answer from your data instead of from its general knowledge.
Retrieve, then write
The basic pattern is simple. When someone asks a question, the system first searches governed data for relevant records. It then passes those records to the model with an instruction to answer only from them. The model’s job is to read and summarise, not to recall.
Why resolution comes first
Retrieval is only as good as what it searches. If "Layla Haddad", "L. Hadad" and "Leila Haddad" are three separate records, a question about her returns a third of the picture, or three conflicting ones. Resolved entities give the assistant one profile to retrieve.
Citations are the point
A grounded answer links every statement to a record. That does two things. It lets the reader check anything that matters. And it gives the system a way to check itself: a sentence with no supporting record can be removed before the answer is shown.
Permissions must apply to retrieval
If the search runs with broad access and the answer is shown to a user with narrow access, the assistant becomes a way round your controls. Retrieval has to run as the user, so that restricted records are never fetched.
Saying "I do not know"
An ungrounded assistant always has an answer. A grounded one should be able to reply that nothing relevant was found. That reply is a feature, and users learn to trust the system more for it.
How to tell whether an assistant is grounded
- Ask about something you know is not in the data. Does it decline?
- Ask about a restricted record as a user without access. Does it stay silent?
- Open a citation. Does the record actually say what the sentence claims?
- Ask the same question twice. Are the facts the same?
Where generation helps most
Summarising a long case history, drafting a narrative for review, explaining an alert in plain words, turning a question into a query. In each case a person reads the result and remains responsible for it.
See how Inselu Assist applies these ideas, or read Getting your data ready for AI.