A client of mine set up an AI chatbot on their website last year. It looked great in the demo. Then a real customer asked it a question about their actual return policy, and the bot confidently gave an answer that was wrong — not wrong in a weird, glitchy way, wrong in a smooth, well-written, totally plausible way. The policy it described sounded exactly like something a company might have. It just wasn't theirs.

That's the problem this piece is about, and it's worth understanding clearly because the fix is simpler than it sounds.

Here's what's actually happening under the hood with a general-purpose AI assistant like ChatGPT, Claude, or Gemini. These models go through a lot of training before they ever talk to you — they're not just predicting the next likely word with no further shaping, they've been deliberately trained to behave like helpful assistants, and the better ones now also have the ability to search the live web when a question calls for it. That's genuinely useful. But none of that training, and none of that web search, has any idea what your return policy actually says, what's in your product manual, or what your pricing sheet looked like as of last Tuesday. Unless you hand that material to the model directly, it isn't going to know it. And when a model doesn't know something but is still expected to produce a fluent answer, it will often produce something that sounds right instead of admitting it doesn't know. That's not a bug unique to any one AI company — it's a known tendency worth planning around.

Retrieval-augmented generation — RAG, if you want the acronym, though you don't need it to understand the idea — is the fix. Strip out the jargon and it comes down to this: before the AI writes its answer, you have it go look something up first.

Break the phrase into its two halves and it explains itself. "Retrieval" is the lookup — a search step that goes through your actual documents and finds the pages or passages relevant to the question being asked. "Generation" is what the AI was already doing — writing a fluent answer. RAG just puts a research step in front of the writing step. Search first, then answer based on what was found, instead of answering from memory alone.

Here's what that looks like with an actual example. Say you run a software company and a customer types into your support chat: "Does your platform support webhooks for order updates?" Without RAG, the AI either has to guess based on how similar products in its training data typically work, or it hedges and says it isn't sure. Neither is great. With RAG, the question first goes through a search step that looks across your actual product documentation, finds the specific page where webhooks are covered, and hands that page — along with the customer's question — to the AI model. The model then writes its answer based on what it just read, not on a generic impression of how software like yours probably works. If your docs say webhooks are supported for order status but not for inventory changes, that's the answer the customer gets, because that's what the retrieval step actually found.

This is why RAG has become the standard approach for building an AI system that answers questions using a business's own material — a knowledge base, a set of product docs, an internal wiki, a folder of PDFs, whatever you've got. You're not retraining the underlying model, which is expensive and technical and out of reach for most small and mid-size businesses. You're giving an existing model access to your documents at the moment someone asks a question, so it can read before it answers.

Now, the honest part, because a technique that sounds this useful deserves a clear look at where it falls short. RAG is only as good as the retrieval step. If the search finds the wrong page, or an outdated one, or misses the relevant paragraph because your documents are disorganized or poorly written, the AI will still write a confident-sounding answer — it just won't be grounded in the right material anymore. The system doesn't know it grabbed the wrong thing. This means the actual quality of your source documents matters enormously. If your product docs are outdated, contradictory, or scattered across five different tools nobody's touched in a year, RAG won't fix that — it will just retrieve the mess faster. Setting this up well takes some real work: organizing your documents, keeping them current, and testing that the retrieval step is actually finding the right material before you trust it in front of customers.

It's also worth saying plainly that RAG isn't always the right tool. If your business has twelve frequently asked questions and stable answers, a well-written FAQ page might serve customers just as well with a fraction of the complexity. RAG earns its keep when you have a genuinely large or frequently changing body of information — a full product catalog, a constantly updated knowledge base, technical documentation with real depth — where a person or a simple chatbot script can't realistically keep up.

The underlying idea is not complicated, even if the name makes it sound like it should be. Give the AI a way to look something up before it answers, using your own material, instead of asking it to answer from memory alone. Get that right, and you get a system that can honestly say what your business actually offers. Get it wrong — bad documents, sloppy retrieval — and you get the same confident wrongness as before, just dressed up to look more official.

I write about this kind of thing regularly at 013labs.com, if you want more of it explained this way.