Sub topic 11
Improving grounding data and knowledge
This chapter assumes you can read a conversation and its reasoning trace, and that you have already classified a failure as a grounding problem. You should also know what grounding is: the data and knowledge the agent is given so its answer is based on facts instead of the model's guesses.
Recognizing a grounding failure
A grounding failure happens when the agent picks the right topic and the right action, but the answer is wrong, outdated, or invented. The reasoning trace shows this pattern. The topic and action look correct, but the retrieved content is missing, irrelevant, or contradicts the reply.
Common signs:
- The agent states a policy that was changed months ago.
- The agent answers confidently when no article covers the question.
- Two articles disagree and the agent quotes one at random.
- The action returns an empty or partial record, and the agent fills the gap.
Do not rewrite instructions for these cases. Better wording cannot fix missing or wrong facts.
Trace the failure to its source
Work backward from the bad sentence in the reply.
- Find the retrieval or action step in the trace that supplied the facts.
- Check what it returned. Was it empty, stale, or off-topic?
- Open the source record or article and compare it with the reply.
- Decide which of the causes in the table applies.
| Cause | What you see | Fix |
|---|---|---|
| Gap | Nothing relevant was retrieved | Write the missing article |
| Stale content | Retrieved text is out of date | Update it and set a review date |
| Conflict | Several sources disagree | Merge them into one source of truth |
| Poor structure | Answer is buried in a long page | Split by question, use clear titles |
| Data quality | Record fields are blank or wrong | Fix the data or the query |
Improve the knowledge itself
Write articles that answer one question each. A title such as "How long do I have to return an item?" matches a customer's wording better than "Policy overview". Put the answer in the first sentences, and state conditions plainly, such as time limits and exclusions.
Keep one source of truth per fact. If the return window appears in five places, one of them will go stale. Retire duplicates instead of leaving them searchable.
Assign an owner and a review date to each article. Stale knowledge is the most common grounding fault, and ownership is the cheapest prevention.
Handle the no-answer case
Grounding also covers what the agent does when knowledge is absent. Add an instruction that tells it to say it does not know and offer a human handoff, instead of answering from general knowledge.
Answer only from the retrieved knowledge articles.
If no article answers the question, say you do not have that information
and offer to connect the customer to a human agent.Test this behavior directly. Ask a question you know the knowledge base cannot answer, and confirm the agent declines.
Verify the fix
After you change content, rerun the failing conversation. Then add it to your regression test set with the expected facts, so a later content edit cannot quietly bring the error back.
Exercise
A customer asks about the warranty period. The trace shows the right topic, the right knowledge action, and a retrieved article that says 12 months. The agent replies "24 months." What kind of failure is this, and what do you check first?
Show answer
This is a grounding or data failure, not a topic or action failure. Check whether a second article or record states 24 months, which would be a conflict. If so, merge the sources into one. If not, check whether the agent invented the figure, and strengthen the answer-only-from-knowledge instruction.