All articles
Engineering9 min read

What retrieval actually fixes in customer support

A language model on its own is a confident stranger. Retrieval is what turns it into someone who has read your documentation — and the difference shows up in the answers your customers get.

A blue glass sphere drawing beams of light up out of a stack of white document cards

Ask a general-purpose model what your refund window is and it will answer. It will sound certain. It will be wrong roughly as often as the internet is wrong about refund windows, which is to say: usually. The model has no way of knowing that you changed yours from 14 days to 30 last quarter, because that fact lives in your help centre and nowhere else.

Retrieval-augmented generation — RAG — is the unglamorous fix. Before the model writes anything, you go and find the passages from your content that bear on the question, and you put them in front of it. The model stops recalling and starts reading.

The three failures retrieval removes

It helps to be specific about what actually gets better, because "the bot is more accurate" is too vague to design against.

1. Facts the model could never have known

Your pricing tiers, your SLA, the name of the setting buried three clicks into the dashboard. None of this was in the training data. Without retrieval the model either refuses or invents. With retrieval it is simply reading a page you wrote.

2. Facts that used to be true

This one is nastier, because the answer is plausible. A model trained a year ago will happily describe an onboarding flow you replaced in March. Retrieval pins every answer to the current version of your documentation, so the moment you update the page, the bot updates too. No retraining, no fine-tune, no deploy.

3. Answers nobody can check

An answer without a source is a rumour. When retrieval is in the loop you always know which passages produced a reply, which means you can cite them to the customer and inspect them yourself when something goes wrong. Debugging a bad answer becomes a matter of looking at what was retrieved rather than staring at a black box.

What the pipeline actually does

Stripped of jargon, the flow is four steps, and only one of them involves the model writing prose.

  1. 1Ingest. Your pages, PDFs and docs are crawled and split into passages small enough to be precise and large enough to make sense on their own.
  2. 2Embed. Each passage becomes a vector — a numeric fingerprint of its meaning — and goes into an index.
  3. 3Retrieve. The visitor's question gets the same treatment, and the closest passages come back. This is a search problem, not an AI problem, and it is where most quality is won or lost.
  4. 4Generate. The model is handed the question, the retrieved passages, and an instruction that amounts to: answer from these, cite them, and say so if they do not cover it.

Notice that steps one to three are ordinary information retrieval. Teams that struggle with RAG almost never have a generation problem. They have a step-two-and-three problem: the right passage was never retrieved, so the model was set up to fail.

Retrieval is not a synonym for accurate

It is worth being honest about the ceiling. Retrieval grounds an answer in your content; it cannot improve on that content. Three things still go wrong regularly:

  • Your docs are wrong. The bot will faithfully repeat the mistake, at scale, to everyone who asks. Grounding is a multiplier on documentation quality in both directions.
  • Your docs contradict themselves. Two pages, two refund windows, and retrieval returns both. The model picks one, more or less arbitrarily.
  • The question needs synthesis across many pages. "Which plan should I buy?" is not a lookup. Retrieval hands over five fragments and hopes.

The first two are content problems wearing an engineering costume, and they are fixed with an afternoon of editing rather than a change of model.

What good looks like

When retrieval is working, three things are true of a typical answer. It contains a specific fact only your documentation could supply. It links to the page that fact came from. And when the documentation genuinely does not cover the question, the bot says so and offers a human, rather than filling the silence.

That third behaviour is the one worth protecting hardest. A bot that admits ignorance ten times a day is a good employee. A bot that never admits it is a liability that has not been caught yet.

The goal was never a model that knows everything. It was a model that reliably knows where to look — and reliably admits when it looked and found nothing.

Where to start

Point the crawler at your help centre, not your marketing site. Marketing pages are written to persuade, and they retrieve badly — a page that says "effortless onboarding in minutes" answers no question a real customer has. Documentation is written to inform, which is the same thing retrieval needs.

Then ask it your twenty most common tickets and read the answers with a pen in your hand. Every wrong answer points at exactly one of: a page that does not exist, a page that is wrong, or a page that exists and was not retrieved. All three are fixable in a morning, and the third is the only one that is really about the machinery.

  • RAG
  • Accuracy
  • Architecture

Keep reading