What Is a RAG Chatbot? A Plain-English Guide
A RAG chatbot looks up passages from your own website and documents before it answers, then writes its reply from them. How retrieval-augmented generation works, step by step, what it fixes for a business chatbot, and what it does not.
- Chatbot
- Knowledge Base
- RAG
A RAG chatbot is a chatbot that uses retrieval-augmented generation: before it answers, it searches your own website and documents for the passages that best match the question, and the language model writes its reply from those passages. The model supplies the language; your content supplies the facts. That is what lets a general AI model answer questions about one specific business.
The term comes from a 2020 research paper, Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks, which paired a language model with a searchable collection of documents. Business chatbots use the same idea with your pages in place of the research collection.
Why does a business chatbot need retrieval?
Because a language model on its own knows the internet it was trained on, not your business. It has never read your price list, your service area or last month's offer. Ask it about them and it can only produce something that sounds typical.
Retrieval fixes the part of that problem that is about missing information. It puts your own text in front of the model at the moment of each question, so the answer can come from what you actually wrote.
How does a RAG chatbot work?
In two stages: indexing your content once, and retrieving from it for every question.
Indexing, done when you set it up or change content:
- Collect. The chatbot reads your website pages and any extra entries you add, such as a policy or a price list.
- Split. Each page is cut into short passages, a few sentences each, so one passage holds roughly one fact or idea.
- Embed. Each passage is turned into a long list of numbers, called an embedding, that captures what it means. Passages about similar things get similar numbers.
- Store. The embeddings go into a search index called a vector database, labelled so that one business's passages are never mixed with another's.
Answering, done for every message:
- Embed the question the same way.
- Retrieve the few passages whose numbers are closest to the question's. This is a search by meaning, not by keyword, so "how much is it?" can find a passage headed "Pricing".
- Generate. The model receives the question, the retrieved passages and instructions, and writes a reply from the passages.
The instructions in step 7 matter as much as the search. A RAG chatbot should be told to answer only from the passages and to say so plainly when they do not contain the answer. Why chatbots make things up explains what happens when that instruction is missing.
What does RAG fix, and what does it not?
It fixes missing knowledge and slow updates. It does not fix bad content or bad retrieval.
| Problem | Does RAG fix it? | Why |
|---|---|---|
| The model does not know your business | Yes | Your own text is supplied with every question |
| Answers go out of date | Mostly | Change the page or entry and re-index it; the model itself never needs retraining |
| You cannot tell where an answer came from | Partly | Every answer is built from specific passages you could check |
| Your pages are out of date or contradict each other | No | It retrieves what is there, including the old price |
| The answer is not in your content at all | No | It can only say it does not know, if told to |
| The search picks the wrong passage | No | Retrieval is a ranking, not a guarantee |
| Live information: stock, bookings, account status | No | That needs a separate connection to the system that holds it |
The pattern: RAG makes the chatbot exactly as good as the content behind it. Most of the work of a good RAG chatbot is the content, not the model.
Is RAG the same as training a chatbot on your data?
No. "Trained on your website" is how most products describe RAG, but technically nothing is trained.
| RAG (retrieval) | Fine-tuning (training) | |
|---|---|---|
| What changes | The content the model is shown | The model's own internal weights |
| Updating a fact | Edit the page or entry, re-index | Train again |
| Can you trace an answer to a source? | Yes, to the passages retrieved | Not reliably |
| Good for | Facts that change: prices, services, policies | Style, tone or a specialised task |
For a business chatbot answering questions about products, services and policies, retrieval is the right tool, because those facts change and you need to know where an answer came from.
How do you get good answers from a RAG chatbot?
By treating your content as the chatbot's brain, because it is.
- One fact, one place. If two pages give different prices, the chatbot may retrieve either. Remove or fix the old one.
- Write the questions customers ask. Pages written for brochures often skip plain facts like opening hours or what is not included. Add them as short knowledge base entries.
- Re-index after changes. The index is a copy of your content at the time it was read.
- Test with new wording. Ask the same question three different ways. Retrieval by meaning should find the same passage each time; if it does not, the passage needs clearer wording.
- Ask what is not there. A good RAG chatbot says it does not know. How to test a chatbot before launch gives a full checklist.
For which pages to include and which to leave out, see how to train a chatbot on your website.
How Vyostra AI handles it
Vyostra AI's chat agent is a RAG chatbot. When you set it up, it reads up to 50 pages of your website, splits them into passages and stores them in a search index kept separate for each agent. Knowledge base entries you add, each a title and text, are indexed the same way.
For every question, it retrieves the five closest passages from that agent's own index and answers only from them. It is told never to invent prices, fees or contact details, and when the passages hold no answer it replies: "I don't have that information right now. Would you like to speak with our team?"
Limits: it reads at most 50 pages, knowledge base entries are typed text rather than uploaded files or PDFs, and it has no live connection to stock, prices or calendars held in other systems. Retrieval can still pick a weaker passage, so test it on your real questions before launch.
Common questions
- What is a RAG chatbot?
- A chatbot that uses retrieval-augmented generation: before answering, it searches your own website and documents for the passages closest to the question, and the language model writes its reply from those passages rather than from what it learned in training.
- How does retrieval-augmented generation work?
- Your content is split into short passages and each is turned into a list of numbers that captures its meaning. When a question arrives it is turned into numbers the same way, the closest passages are found, and the model is told to answer from them alone.
- Is RAG the same as training a chatbot on my data?
- No. Training, or fine-tuning, changes the model itself and is slow to update. RAG leaves the model alone and looks your content up at the moment of each question, so changing a page or an entry changes the answer once it is re-indexed.
- Does RAG stop a chatbot from making things up?
- It reduces it, but not on its own. Retrieval supplies your facts; the chatbot also needs an instruction to answer only from them and to say so when they do not contain the answer. Without that instruction it can still fill gaps.
- What can a RAG chatbot not do?
- It cannot answer from content it was never given, fix pages that are out of date or contradict each other, or guarantee it found the right passage. It also knows nothing live, such as today’s stock or a booking calendar, unless that is connected separately.