Skip to content
BlogAI12 min read

What Is a RAG Chatbot, and Why It Stops Making Things Up

Kavion Solutions TeamKavion Solutions

A chatbot that guesses your refund policy is worse than no chatbot. A RAG chatbot looks the answer up in your own documents first. Here is how that works, where it still fails, and when you need it.

Long aisle of library shelves filled with books and archive stacks

Every business that has tried a generic AI chatbot has a story about the answer it invented. A delivery promise you never made. A discount that does not exist. A refund window twice as generous as yours. The model was not lying. It simply had no idea what your policy was, so it wrote something that sounded like a policy. A RAG chatbot is the fix, and it is now the standard way to build a bot you can put in front of customers.

What is a RAG chatbot?

A RAG chatbot is a chatbot that searches your own documents before it answers, then writes its reply from the passages it found. RAG stands for retrieval augmented generation: retrieval finds the facts, generation turns them into a readable answer. Because each reply is built from your content rather than the model's memory, the bot can show its source, and it stops inventing details about your business.

Think of it as the difference between a closed-book exam and an open-book one. A plain AI model sits the exam from memory, and when memory runs out it guesses with confidence. A RAG chatbot is allowed to open your help centre, your policies and your product sheets, find the right page, and answer from it. Same model, very different reliability.

Why ordinary AI chatbots make things up

A language model is trained to predict the next most likely words. It learned from a huge amount of public text, up to a cut-off date, and it has never seen your price list, your opening hours or the change you made to your returns policy last month.

Ask it about any of those and it does what it was trained to do: produce a fluent, plausible answer. Plausible is the problem. The industry calls this hallucination, which makes it sound rare and strange. It is neither. It is the default behaviour of a model asked about facts it was never given.

Writing a longer prompt only helps so far. You can paste your FAQ into the instructions, but a real business has hundreds of pages of knowledge, it changes weekly, and most of it is irrelevant to any single question. RAG solves this by fetching only the few passages that matter, fresh, every time someone asks.

How does a RAG chatbot work?

There are two halves. The first runs ahead of time, whenever your content changes. The second runs every time a customer asks something.

  • Collect. Pull in the sources the bot may answer from: help articles, policy pages, product data, PDFs, spreadsheets, past support replies.
  • Split. Break each document into passages small enough to be specific, usually a few paragraphs, keeping headings and tables intact.
  • Index. Convert each passage into an embedding, a list of numbers that captures its meaning, and store it in a vector database alongside the original text and its source.
  • Retrieve. When a question arrives, convert it the same way and find the passages closest in meaning. Good systems blend this with plain keyword search, so product codes and names still match exactly.
  • Generate. Hand the model the question, the retrieved passages and firm instructions: answer only from these, cite the source, and say so when the answer is not there.
  • Hand over. If retrieval comes back empty or the question is outside the bot's job, pass the conversation to a person with the context attached.

A worked example. A customer asks a furniture retailer, 'Can I return a sofa if it does not fit through my door?' The bot searches and finds two passages: the returns policy section on large items and the delivery page on measuring access. The model writes a three-sentence answer from those two passages and links to both. If the policy changes on Monday, the document changes, the index updates, and Tuesday's answer is already correct. No retraining, no developer ticket.

RAG vs AI chatbot vs rule-based chatbot

People searching for 'RAG vs AI chatbot' are usually comparing a RAG bot with a model answering on its own. There is a third type still running on plenty of websites: the rule-based bot that follows a scripted tree of buttons.

AspectRule-based chatbotPlain AI chatbotRAG chatbot
Where answers come fromScripts someone wrote by handThe model's training memoryYour documents, retrieved per question
Handles questions phrased in new waysNo, only the paths it was givenYesYes
Knows your current prices and policiesOnly if someone edits the scriptNoYes, as soon as the documents change
Can show where an answer came fromNot applicableNoYes
When it does not knowLoops back to the menuUsually guessesSays so and offers a person
Main upkeep jobRewriting scriptsConstant correctionKeeping source documents accurate

Rule-based bots are predictable and dull. Plain AI bots are fluent and unreliable. RAG keeps the fluency and borrows the reliability from your own content, which is why it has become the default for customer-facing bots.

RAG vs fine-tuning

Fine-tuning means training an existing model further on your own examples so it changes how it behaves. RAG leaves the model alone and changes what it reads. They solve different problems, and mixing them up is one of the most expensive mistakes in chatbot projects.

AspectRAGFine-tuning
What it changesThe information the model sees for each questionThe model's habits: tone, format, the kind of answer it gives
Best atFacts that are specific to you and that changeA consistent style or a narrow, repeated task
Updating knowledgeEdit the document; the next answer reflects itPrepare new training data and train again
Shows its sourcesYes, the passages are knownNo, knowledge is blended into the model
Typical use in a business chatbotAlmost alwaysOccasionally, on top of RAG

Fine-tuning a model on your help centre does not reliably teach it your facts. It teaches it to sound like your help centre, which is a different and more dangerous thing: confident answers in your voice, with no source to check. OpenAI's own guide to model optimisation, checked in October 2026, starts with measuring output and giving the model relevant context, including private data, in the prompt, and treats fine-tuning as something to consider for some use cases. The same page notes that OpenAI is winding down its own fine-tuning platform, which is now closed to new users.

The sensible order for a business bot is RAG first, good instructions second, and fine-tuning only if a measured problem remains, such as a format the model keeps getting wrong. Many bots never need the third step.

What a RAG chatbot is good for

  • Customer support over a help centre, where most questions already have a written answer somewhere.
  • Pre-sales questions on your website or WhatsApp: specifications, compatibility, delivery areas, what is included.
  • Internal knowledge assistants that answer staff from SOPs, HR policies and past tickets, respecting who may see which documents.
  • Sales teams looking up product sheets, contract terms or case notes mid-call.
  • Clinics and dental practices answering non-clinical questions about treatments offered, preparation and fees, with anything medical passed to a person.
  • Any document set too large to read every time, where a cited answer saves someone a search.

Our RAG chatbot development work covers all of these. The pattern is the same each time. What changes is the content, the permissions and the rules for handing over.

Where RAG chatbots still go wrong

RAG reduces made-up answers sharply. It does not abolish them. When a RAG bot fails, the cause is nearly always one of these.

  • Conflicting sources. Two price lists, one from last year. Retrieval finds both and the model picks one. The fix is one source of truth per topic, not a cleverer model.
  • Badly split documents. A table cut in half separates a product from its price. Splitting by structure, not by character count, prevents most of this.
  • Vocabulary gaps. Customers say 'cancel', your terms say 'terminate'. Hybrid search and a short list of synonyms close the gap.
  • Too much retrieved. Fifteen loosely related passages confuse the model and cost more. Three good ones answer better.
  • Questions that need live data. 'Where is my order?' is not in any document. That needs a lookup in your system, which is a step towards an agent.
  • Permissions ignored. An internal bot that retrieves from every file will happily quote board papers to a new hire. Access rules must apply at retrieval time.

Every one of these is found the same way: a test set of real questions with known correct answers, run before launch and again after every change. Any team offering RAG development services should show you that test set, and the scores, before asking you to trust the bot.

What you need before building a RAG chatbot

  • A list of 50 to 100 real questions from your inbox, chat logs or tickets. These become the test set.
  • One current document for each topic the bot may answer, with old versions removed or archived.
  • A decision on scope: which questions the bot answers, which it hands over, which it refuses.
  • Access rules, if the bot serves staff: who may see which sources.
  • A named person who updates the documents when the business changes, because the bot is only ever as current as they are.

None of this is technical, and all of it decides quality more than the choice of model does.

Build or buy a RAG chatbot?

Many chatbot builders that let you upload PDFs or point at your website are RAG under the hood. For a small business answering from public pages, that can be enough, and you can be live this week.

A custom build earns its cost when you need control a builder cannot give: several sources kept in sync from your own systems, permissions per user, retrieval tuned and tested against your real questions, data kept in your own cloud account, or a bot that later needs to act as well as answer. Our guide to what an AI chatbot costs sets out how the build and the monthly running cost differ between the two routes. If the chatbot is one piece of a wider plan, our AI automation services cover the workflows around it.

How to tell if a chatbot is really using RAG

Vendors use the term loosely. Four questions will show you what a bot is actually doing, whether it is yours or one you are evaluating.

  • Ask something only your documents contain, such as an unusual policy detail. A RAG bot gets it right. A plain model guesses.
  • Ask something your documents do not contain. A good RAG bot says it does not know. A weak one invents.
  • Ask where the answer came from. A RAG bot can point to the page or document.
  • Change a document, then ask again. The answer should change with it, without anyone retraining anything.

Want a RAG chatbot that answers from your own documents?

Send us the questions your customers or staff ask most and tell us where the answers live today. We will tell you honestly whether a builder tool is enough. If it is not, we will scope a custom RAG chatbot with a fixed price for the build and an estimate of the monthly running cost. You can start a project here, and we reply within one business day.

FAQ

Questions readers ask about this.

RAG stands for retrieval augmented generation. Retrieval means searching a store of documents for the passages most relevant to a question. Augmented means those passages are added to what the language model is given. Generation is the model writing the answer. Put together, it describes a system that looks things up before it speaks, which is why RAG is used wherever an AI must answer accurately about information it was never trained on, such as a single company's policies, products or internal procedures.

Not by default. Out of the box, ChatGPT answers mostly from what its model learned in training. Some features add retrieval, such as searching the web or reading files you upload, and in those moments it behaves like a RAG system. A business RAG chatbot is different because the retrieval is fixed to your own approved content, the bot is instructed to answer only from it, and it can be tested against your real questions before a customer ever sees it.

A vector database stores passages of text alongside embeddings, which are lists of numbers representing what each passage means. It can quickly find the passages whose meaning is closest to a question, even when the words differ. Most RAG chatbots use one, either a dedicated service or an extension to a database you already run. For a small document set the choice matters little. What matters far more is how the documents are cleaned, split and tested.

Yes, less often, and usually for a traceable reason. It may retrieve an outdated document, retrieve nothing useful and fill the gap, or merge two passages into a claim neither makes. Good builds reduce this with strict instructions to answer only from retrieved text, a rule to admit when nothing relevant was found, citations so answers can be checked, and a test set rerun after every change. For anything costly to get wrong, a person should still approve the answer.

Less than most people expect. A few dozen well-written help articles or a single accurate policy document is enough for a useful bot. The quality of the content matters more than the quantity. One clear, current page per topic beats a thousand pages of overlapping drafts. If your knowledge mostly lives in people's heads, the first job is writing down answers to your most common questions, which pays for itself even before any chatbot exists.

Yes. Text-based PDFs, Word files, web pages, help centre articles and spreadsheets can all be indexed, and databases can be connected directly. Scanned PDFs need text recognition first, and spreadsheets need care so rows keep their column headings when split into passages. Content that changes often, such as stock or prices, is usually better fetched live from the source system at question time rather than copied into the index.

Not as part of RAG itself. Retrieval sends a few relevant passages to the model with each question, and the model uses them to write that one answer. Whether a provider may keep or train on that data depends on its business terms, which differ between providers and plans, so check them before you build. Many businesses choose providers whose terms exclude training on customer data, or keep the whole system inside their own cloud account.

A focused RAG chatbot over content that already exists usually takes weeks rather than months. Most of the time goes into gathering real questions, cleaning and structuring documents, and testing answers, not into the chat window. Bots that need several sources kept in sync, user permissions, or lookups in live systems take longer. Launching a narrow version first and widening it once answers are proven is usually faster than trying to cover everything at once.

Written by

Kavion Solutions Team

The senior team behind Kavion Solutions. We build websites, apps, AI tools and cloud setups, and run the SEO and ads that bring in customers, so everything here comes from work we have actually shipped.

Follow the studio for more

Add to favorites on Google

Keep reading

More from the blog.

All articles

Send a brief / AI

Want this built for your business?

A few lines is enough. The person who reads it is the person who will build it.

  1. 01A senior engineer reads it today.
  2. 02You get questions or a plan back within one business day.
  3. 03A short call in your hours, then a fixed quote.
What do you need help with?
When do you need it?
How did you find us? (optional)

We sign your NDA before the first call. No sales sequence.

Next / AI Receptionist for Dental Clinics and Medical Offices: A Practice GuideNext article