All articles
Education

RAG explained for business owners: how a chatbot stays honest

A document feeding a retrieved, cited answer

The short answer

Retrieval-augmented generation means the AI searches your uploaded documents for the answer before it writes a reply, and may only use what it finds. That is the difference between a bot that quotes your return policy and one that invents a plausible-sounding version of it - and it is why every answer can name the file it came from.

Retrieval-Augmented Generation, or RAG, means the AI searches your uploaded documents for the answer before it writes a reply, and is only allowed to use what it finds. That is the difference between a bot that quotes your return policy and one that invents a plausible-sounding version of it.

Every business owner who has tested an AI chatbot has the same horror story: it confidently invented a discount, a return window, or a delivery promise that doesn't exist. One made-up answer to a real customer can cost you the order and the trust. So before you put AI in front of your customers, it's worth understanding the one piece of architecture that decides whether it lies: RAG.

The problem: language models are fluent, not truthful

A large language model is trained to produce plausible text, not verified facts. Ask a raw model about your return policy and it will answer - smoothly, confidently, and from nothing, because it has never seen your policy. This is what researchers call hallucination, and for a business it's the difference between a helpful assistant and a liability.

RAG in one sentence

Retrieval-Augmented Generation means the AI must look up the answer in your documents before it speaks. When a customer asks a question, the system first retrieves the most relevant passages from your uploaded knowledge - your policies, your price list, your FAQs - and then instructs the model to answer only from those passages.

Think of it as the difference between an exam taken from memory and an open-book exam where the only book allowed is yours. The model's fluency is still used - to phrase the answer naturally, in the customer's language - but the facts can only come from pages you wrote.

RAG turns 'make something up' into 'look it up, then say it well.'

The three steps, in order

Every grounded answer goes through the same sequence. Nothing here is exotic - it is a search engine and a writer, wired so the writer cannot work without the search engine.

  1. Retrieval. Your documents are split into passages when you upload them. The customer's question is matched against those passages, and the closest few are pulled out. This is why how you write your documents matters - see writing a knowledge base your AI can use.
  2. Grounding. Those passages, and only those, are handed to the language model along with an instruction: answer from this text, and if it isn't here, say so. The model's own training data is not a permitted source.
  3. Citation. The answer is returned with the filename it came from, so the customer sees the source and you can audit it later.

A worked example: the returns question

Say you upload a returns policy containing the line: "Items may be returned within 7 days of delivery in unused condition, with the original invoice." A customer asks, at 11pm, "can I return a shirt I bought last week if I've already thrown the bill away?"

Retrieval finds that line. Grounding hands the model that sentence and nothing else. The answer comes back saying returns run for 7 days and the original invoice is required - so last week is likely inside the window, but the missing invoice is a problem - and it cites returns.pdf. It does not invent a goodwill exception, because no document gave it one.

Now delete that policy from the knowledge base and ask again. A grounded bot says it doesn't know and offers a person. An ungrounded one writes you a returns policy on the spot, in confident prose, and the customer believes it.

Grounded against ungrounded, side by side

Ungrounded chatbotRAG over your documents
Source of factsWhatever the model absorbed in trainingOnly the documents you uploaded
Accuracy on your policiesPlausible, frequently wrongMatches your document or nothing
AuditabilityNo way to check where it came fromEvery answer names its source file
Failure modeInvents a confident answerSays it doesn't know, hands to a human
Fixing a wrong answerRetrain or rewrite promptsEdit the document, re-upload

Why the documents get chopped up

One detail surprises people: your files are not stored whole. When you upload a policy, it is split into passages of a few hundred words each, and those passages are what retrieval searches. This is called chunking, and it explains several things that otherwise look like bugs.

It explains why a well-structured document works better than a wall of text. A passage that begins mid-sentence, or that contains half a refund rule and half a shipping rule, is a worse match for any question than a passage that covers one topic cleanly. It also explains why headings help: they give each chunk a subject.

The practical version: write each policy as a set of short, self-contained sections with a clear heading, and the retrieval step gets easier. One question, one answer, one place. A 40-page PDF with everything in it will work, but a handful of focused documents will work better.

Why citations matter as much as answers

Grounding solves honesty on the inside; citations prove it on the outside. When every answer links to the exact document it came from, two things happen. Customers trust the bot more - they can see it's quoting your policy, not improvising. And you can audit it: if an answer is ever wrong, the citation shows you exactly which document to fix.

The best part of this loop is that a RAG bot knows what it doesn't know. If nothing in your documents answers the question, retrieval comes back empty - and instead of guessing, the bot escalates to you. That knowledge gap is a signal: add the missing document, and it learns instantly.

How to tell whether a tool is really grounded

Every vendor now says the word. Four questions separate the ones doing it from the ones using it as marketing.

  1. Ask it something your documents do not cover. A grounded system says it doesn't know. An ungrounded one produces a confident, plausible paragraph.
  2. Ask where the answer came from. If it cannot name a file, nothing was retrieved and the model is working from training data.
  3. Change a document and ask again immediately. A grounded system reflects the edit. One relying on training or fine-tuning does not.
  4. Ask about a competitor's product. A grounded bot has no documents about it and should decline. If it reviews the competitor for you, it is improvising - and it will improvise about your refund policy too.

What RAG still gets wrong

Grounding is not magic, and anyone selling it as a total fix is overselling. Four failure modes survive it.

  • Bad source, bad answer. If your uploaded policy is out of date, the bot quotes the out-of-date policy - accurately, with a citation. Grounding guarantees provenance, not correctness.
  • Retrieval can miss. If a question is phrased very differently from your document, the right passage may not surface, and the bot says it doesn't know when the answer was there all along.
  • Contradictions confuse it. Upload two documents with different refund windows and you have made the bot's job impossible. It may quote either one.
  • Spread-out answers are hard. A question whose answer needs three facts from three separate documents is where retrieval is weakest.

All four are fixable by you rather than by us, which is the point: they are document problems, not model problems - and they head the list of why AI support rollouts disappoint. The knowledge-gap alerts in the dashboard show you which questions came back empty, so you know what to write next.

What this means for you

When you evaluate any AI support tool, ask one question: "Where do the answers come from?" If the answer isn't "only from your documents, with citations," the tool will eventually improvise - and it will do it to your most important customer. Grounding isn't a feature. It's the foundation.

If you want to watch it work on your own text, the live demo on the homepage trains on whatever you paste into it, and our pricing starts at a free plan.

Frequently asked questions

What does RAG stand for?

Retrieval-augmented generation. The system first retrieves the passages of your documents most relevant to the question, then instructs the language model to answer only from those passages.

Does RAG stop AI hallucination completely?

It stops the model inventing facts it was never given, and it makes every answer auditable through its citation. It cannot fix a document that is wrong or out of date - grounding guarantees provenance, not correctness.

How can I tell whether a tool is really grounded?

Ask it something your documents do not cover: a grounded system says it does not know. Then ask where an answer came from - if it cannot name a file, nothing was retrieved. Finally, edit a document and ask again; a grounded system reflects the change immediately.

Why are my documents split into chunks?

Retrieval searches passages, not whole files, so each document is split into sections of a few hundred words. That is why a document with clear headings and one topic per section produces better answers than a single long PDF.

Get started for free

What are you waiting for?

Stop answering the same 15 questions. Your customers get accurate answers 24/7, and you get your evenings back. Live in 5 minutes - no developer, no sales call.

Let's go! →

Free plan to start · No credit card · Cancel anytime