How retrieval grounding reduces hallucinations in support bots

A language model that has never read your refund policy will still answer a question about it, and it will sound sure. Grounding is the discipline that stops that: the agent answers from your content, shows where the answer came from, and says plainly when it has nothing to go on. This is how it works in practice, where it still goes wrong, and what you can do about it.

If you have ever asked a language model about something obscure and received a confident, well-written, completely wrong answer, you already understand the problem. These models are built to produce text that reads well. Whether that text is true is a separate matter, and left alone they do not treat it as one.

In a general chat window that is an annoyance. In customer support it is a liability. A customer who is told that returns are free for ninety days, when your policy says thirty, will quote that sentence back to you, and they will be right to: it came from your agent, on your website, with your name on it. The sentence was invented, but the promise is real.

Why a fluent model is a risky support agent

A model learns patterns from a vast amount of text. It has seen a great many return policies, so it knows what one tends to look like: a time window, a condition on the item, a mention of receipts. Ask it about yours and it will assemble something with that shape. It has no way of knowing the details are wrong, because it never had your details to begin with.

The failures are not random. They cluster in exactly the places support cares about most: prices, deadlines, eligibility rules, what is and is not included. Those facts are specific, they change, and they belong to your business alone, so there is nothing general for the model to lean on.

What grounding means

Grounding changes the job. Instead of asking the model to answer from memory, the agent does two things in order. First it looks through your own content for the passages that bear on the question. Then it writes a reply using only what it found, and it is told to say it does not know when what it found does not cover the question.

The technical name is retrieval-augmented generation, but the idea fits in a sentence: look it up first, then write. A good human agent works the same way. They do not answer a billing question from memory. They open the billing policy.

How it works in meetmydesk

When a customer sends a message, the agent searches your knowledge sources (files, web pages, text you have pasted in, question-and-answer pairs and imported tickets) and pulls out the passages that match best, up to six of them. It searches on the new message together with the customer’s previous question, so a short follow-up such as “and for annual plans?” still finds the right passage instead of searching on four words with no subject.

Those passages go to the model along with your instructions, each labelled with the source it came from, and the model writes the reply from them. When the reply goes out, the sources go with it: the chat widget shows them as chips under the answer, so a customer, or you, can see what it was based on and open the original.

A good agent is not the one that always has an answer. It is the one that knows when it does not.

Where grounded answers still go wrong

Grounding lowers the chance of an invented answer. It does not remove it, and anyone who promises otherwise is selling something. Knowing the usual failure points is most of the work of fixing them.

The right passage is never found. The model can only use what retrieval hands it. If the answer sits in the middle of a long page about everything, or is phrased in different words from the ones customers use, the search can miss it, and the reply is then built from the wrong material or from nothing at all. This is the most common cause of a bad answer, and it is a content problem far more often than a model problem.

Your sources disagree. An old PDF says thirty days and the help centre page says fourteen. The agent has no way of knowing which is current. It will use whichever it was shown, and that can change from one conversation to the next. Contradictions in your content become contradictions in your agent.

The content is out of date. An agent that quotes last year’s prices is grounded perfectly well, in a document that is no longer true. Grounding checks where an answer came from. It cannot check whether the source is still right.

The question is only partly covered. Your content explains how to cancel but never says whether a refund follows. A careless reply fills that gap with something reasonable-sounding. This is where clear instructions matter, and we come to them below.

Write content that gets found

Most of the improvement available to you is in how your content is written, not in any setting.

One question per section. A short section that answers one question is easy to retrieve and easy to quote. A long page that answers twenty is hard on both.

Name the subject in the first sentence. “Annual plans can be refunded within 30 days of purchase” stands on its own. “It depends on your plan” does not, because once a passage is lifted out of its page nobody knows what “it” refers to.

Use your customers’ words. If people write “cancel my subscription” and your page says “terminate your membership”, you are asking retrieval to bridge a gap you could close in ten seconds. Put the phrase people actually use into the page.

Start with question-and-answer pairs. Take the ten questions your team answers every day and write each one as a pair. Short, direct and in plain language, they are close to ideal material, and they are the quickest way to a first agent that is genuinely useful.

Decide what the agent says when it does not know

The empty case deserves as much design as the happy one. When nothing relevant is found, the agent replies with your fallback message. The default is a bare “I don’t have enough information to answer that”, which is honest but a dead end. Rewrite it in your own voice and give the customer somewhere to go: a short apology, a line about what you can help with, and a way to reach a person.

Your instructions matter here too. By default the agent is told to answer only from the knowledge it is given and not to make anything up. If you write your own instructions, keep that rule. Instructions that push the agent to always be helpful can quietly work against grounding, because the most helpful-sounding reply to a question it cannot answer is a guess.

Turn the misses into a to-do list

Every question your agent cannot answer is information. The Suggestions page collects them in two kinds: missing content, which is something people keep asking that your sources do not cover, and conflicts, where two of your sources say different things. You can answer a missing question as a Q&A pair straight from the page and it becomes part of the agent’s knowledge.

Make it a habit rather than a project. Ten minutes a week on that page, plus a skim of the conversations that earned a thumbs down, will do more for accuracy than any amount of tuning in one sitting.

A test you can run this afternoon

Connect one source and ask the agent three things: a question you know the content answers, a question it answers only in part, and a question about something you have never written down. Check each reply against what you expect. The first should be right and show its source. The second should say what it knows and stop there. The third should use your fallback message instead of an answer.

If the third one produces a confident reply, that is worth fixing before anyone else finds it. Tighten the instructions, check the fallback message, and look at what the agent was shown. The answer to “why did it say that?” is almost always in the passages it retrieved.