← Back to Blog

November 10, 2026 Updated November 24, 2026

What Is a RAG Chatbot? How It Works vs ChatGPT

Key points

  • A RAG chatbot is a chatbot that, when asked a question, first looks up the relevant passages in documents you registered, and then has an AI write the answer based on those passages.
  • Plain generative AI gives confident wrong answers because it has not seen your latest information. RAG reduces this by letting the AI read your documents before it answers, but it does not eliminate wrong answers.
  • Three things decide accuracy: the quality of your documents, how often you update them, and what the bot does when it cannot answer. Before adopting anything, test it with about ten real questions on your own documents.

What happens when you ask ChatGPT about winter course fees

This is an implementation simulation (fictional case).

A cram school office clerk gets the same LINE question every day: "How much is the winter course? Is there a sibling discount?" She types it into ChatGPT and gets a tidy answer: "Winter courses are around 15,000 yen per subject, and sibling discounts are typically about 10%."

Her school's fees are completely different, and there is no sibling discount at all. Yet the answer sounds sure of itself, and it would be easy to send it straight to a parent.

ChatGPT was not trying to lie. It simply has never seen that school's fee table. Faced with information it has not seen, it builds a likely answer from typical cram school prices. That is the classic way generative AI goes wrong.

One practical countermeasure is RAG. This article explains what a RAG chatbot actually does, how it differs from using ChatGPT as-is and from traditional chatbots, which documents work and which do not, and where the limits are.

How does RAG build an answer?

RAG stands for Retrieval-Augmented Generation. The idea is "look it up, then answer", the same order a human clerk follows when she opens the fee table before replying to a parent.

Inside a RAG chatbot, four steps run:

  1. Split the documents. PDFs, Word files and web pages are cut into small chunks that each hold one idea. The winter course paragraph becomes one chunk.
  2. Convert for search. Each chunk is turned into numbers (a vector) that can be compared by meaning, so "cost" and "fee" match even though the words differ.
  3. Find passages close to the question. The incoming question is converted the same way, and the few closest chunks are pulled out.
  4. Answer based on those passages. The question and the retrieved passages go to the AI together, with the instruction to answer from them.

Steps 1 and 2 happen once, when you register documents. Steps 3 and 4 run on every question. If the fee table is registered, step 3 finds the right paragraph and step 4 uses its numbers, leaving much less room for the AI to guess.

The AI itself is not retrained. It is the same AI, with reference material placed beside it for each question. Update the document and, after it is re-read (re-learned), the answer changes.

How is it different from giving documents to ChatGPT?

ChatGPT does let you attach files. The difference shows when you answer the general public continuously (see ChatGPT vs RAG for internal search).

PointChatGPT etc. with a file attachedRAG chatbot
Source of answersThe attached file plus general knowledgePassages found in your registered documents
Managing documentsEach user prepares and attaches them each timeRegistered in one place, updated by several people
Question not in the documentsMay fill in from general knowledgeCan be set to reply "I don't know"
Public useMostly staff using it on screenPlaced on LINE or a website for customers to ask directly
Answer scopeDepends on how each user asksCan be limited to your registered documents

Attaching a file to ChatGPT is, broadly, the same idea. The difference is whether you can open it to customers and keep managing document updates and the answer scope over time. For one person asking about a few pages, that may be enough.

RAG is not "smarter than ChatGPT". Many RAG chatbots use the same kind of generative AI to write the answer. What differs is the lookup step before answering.

How is it different from FAQ and scenario bots?

This is a difference in strengths, not a ranking.

TypeHow it worksGood atWeak at
FAQPicks from registered Q&A pairsFixed answers to common questionsUpkeep as questions grow
ScenarioFollows a button flowReservations, requests, set stepsUnexpected questions
RAGWrites from passages found in documentsBroad questions over large documentsUnwritten things, strict steps

What you prepare also differs: Q&A pairs, a conversation flow, or existing documents. RAG can match different wording by meaning, but its phrasing varies slightly each time, while FAQ bots return fixed text.

"I want to change my reservation" fits a scenario. "When do winter courses start, and can I join midway?" needs reading the document, which fits RAG. In practice, use buttons for fixed procedures and documents for free questions.

If you are deciding whether to move off a Q&A (FAQ) bot, compare the work after launch as well.

SituationQ&A botRAG
Answering a new questionRegister a new Q&A pairAdd it to a document
Different wordingOften needs one entry per phrasingFinds the same passage if the meaning is close
Prices or content changeFix every related Q&AReplace the document
Finding unanswered questionsSomeone checks ratings or logsSome products list questions with no supporting document

For how to find unanswered questions without relying on rating buttons, see why chatbots get called useless, and how to fix it.

Which documents can it answer from?

Works well:

  • Fee tables, course guides, menus: written text with findable passages.
  • Terms, refund and cancellation rules: conditions and exceptions are stated.
  • FAQ and guide pages: already close to question and answer form.
  • Manuals and procedures: only the needed part is pulled, even from large volumes.

Does not work well:

  • Photo-only flyers: no readable text to search.
  • Judgment that lives only in a person's head: not written, cannot be answered.
  • Outdated documents: the bot repeats old prices or ended programs.
  • Documents that contradict each other: unstable which version appears.

RAG finds and answers; it is not good at calculating or judging. A question like "What is the total for three siblings, one joining midway?" is easy to get wrong unless the document includes such a worked example. Add examples, or hand such questions to a person.

What decides accuracy?

1. Quality of documents

The biggest factor. "Winter course: from 15,000 yen" is weaker than "Winter course fees are X yen per subject for elementary and Y yen for junior high; materials are extra." Use headings, one topic per paragraph, and avoid abbreviations.

2. Habit of updating

If the documents are old, RAG will accurately repeat old information. That is an operations problem, not an AI problem. Decide who replaces documents, and when. Managing source material in a form such as a spreadsheet that can be re-read helps.

3. The "don't answer" setting

Decide what happens when the question is not in the documents. Without a rule, the AI may fill in from general knowledge. A rule such as "reply 'I don't know, please contact our staff'" lowers the risk of sending a plausible error. It is not perfect: similar-looking passages can make the bot think it can answer.

When does RAG still get it wrong?

Wrong answers do not drop to zero. RAG shrinks the room for guessing, but the bot can misread a retrieved passage or pull a similar but wrong one. It is more likely when documents contradict each other or the question is vague. Be careful with explanations that claim RAG stops hallucinations entirely.

It cannot answer what is not written. Real inquiries always include questions your documents do not cover yet. Plan to review unanswered questions and add to the documents.

Answers are generated via an external AI model. Where data is stored and what is sent to the AI model are separate questions. Ask vendors both: where are documents and conversation logs stored, and which company's AI model receives what information when an answer is generated?

If you register documents containing personal information, operate with Japan's Act on the Protection of Personal Information in mind, and confirm final judgments with your legal team. See how chatbots handle data.

RAG alone also does not perform actions such as taking a reservation or checking stock. See moving from FAQ bots to AI agents for that.

Where do you start?

  1. Collect 10 to 20 real questions from LINE history or calls.
  2. Pick a few documents that contain the answers.
  3. Register them and ask each question. Record each as correct, wrong, or "I don't know"; if you can explain every miss from the documents and fix it, that is a reasonable sign to go public.
  4. Sort the cause of each miss: missing, unclear, or outdated. Fix the documents.
  5. Decide the handoff to a human, then go public.
  6. After launch, review "I don't know" questions weekly and add to the documents.

My own rough guide, not a verified figure: a small start takes a few days of preparation and one to two weeks of testing. Good answers in someone else's demo do not guarantee the same accuracy on your documents.

What about OneBot?

OneBot AI chatbot accepts text, PDF, Word, Excel, PowerPoint (up to 50MB), website URLs, Google Sheets (synced automatically at a set interval; changes show up after the next sync), images and audio. After a document is updated, it is reflected once re-read (re-learned). A "don't answer" setting returns a fixed message for questions outside your documents, and you can set it to hand conversations over to staff. Answers are delivered through LINE Official Accounts and a web chat widget.

Data is stored on servers located in Japan (AI responses are generated using an external AI model API). You can set it to reply "I don't know" when the answer isn't in your documents. It does not eliminate wrong answers. No dedicated engineer is needed for day-to-day setup. Deployment takes as little as 2 weeks (typically 2–4 weeks). Details on which AI model receives what, the two vendor questions above, are answered on request before adoption.

Plans start at 5,000 yen per month (excluding tax), with a 14-day free trial. See pricing and how to add an AI chatbot to a LINE Official Account. For how RAG reduces (but does not eliminate) hallucinations, see RAG chatbots and hallucinations.

What is the first step?

Pick ten questions you answer again and again, and one document that contains the answers. Register it in a 14-day free trial and ask the ten questions. Seeing for yourself whether it answers correctly, and how it fails, is the fastest way to understand RAG.

Try it with your own documents in the 14-day free trial

FAQ

How is RAG different from ChatGPT?

ChatGPT answers from general knowledge learned in training. A RAG chatbot searches your registered documents for relevant passages on every question and writes the answer from them. The AI writing the answer is often the same kind; the difference is the lookup step.

Does RAG remove wrong answers?

No. It reduces room for guessing, but the bot can misread a passage or pick a similar wrong one. You can set it to reply "I don't know" when the answer isn't in your documents. It does not eliminate wrong answers.

Can I register any document?

Written text works best: fee tables, terms, guide pages, manuals. Photo-only flyers and judgment that exists only in someone's head give nothing to search. Outdated or contradictory documents make answers unstable.

When do updates show up in answers?

After you update a document, the change is reflected once it is re-read (re-learned). Google Sheets sync automatically at a set interval, and changes show up after the next sync. Without an owner and a schedule, old content keeps being served.

Where is my data stored, and what is sent to the AI?

Treat storage and the answer-generation step as separate questions. With OneBot, data is stored on servers located in Japan (AI responses are generated using an external AI model API). Confirm handling of personal information with your legal team.

Do I need an engineer?

No dedicated engineer is needed for day-to-day setup via the admin screen. Someone still needs to prepare documents and test with real questions. Deployment takes as little as 2 weeks (typically 2–4 weeks).

Related articles