Guides5 min read

RAG chatbot: what it is and how it retrieves answers

A RAG chatbot retrieves passages from your docs, then answers with sources. What it is and how it differs from a knowledge base chatbot.

A RAG chatbot is a website assistant that retrieves passages from your own docs, help pages and files, then writes an answer from those passages and shows where they came from. Visitors ask in everyday language; the system searches indexed text, composes a short reply, and can point to the page or file it used. When nothing in your material fits, a well-built rag chatbot says so instead of guessing. For teams comparing vendors, start from an AI chatbot for your website that scopes answers to sources you control.

This guide is for SaaS, e-commerce, agencies, professional services and startups that want the definition and the retrieval loop in plain language—not a framework tutorial. It explains what a RAG chatbot is, how it retrieves answers with sources, and how that differs from a knowledge base chatbot.

What is a RAG chatbot

Retrieval-augmented generation (RAG) separates two jobs: first retrieve snippets from your content, then generate an answer that stays inside those snippets. That is different from dropping a general chat model on your homepage and hoping it “knows” your business.

On a typical business site, a RAG chatbot workflow looks like this:

  1. A visitor types a question.
  2. The assistant searches indexed text from sources you connected.
  3. The model is instructed to answer only from what was retrieved.
  4. The visitor sees a reply and, when the product supports it, labels such as From… that name the page or file.
  5. If retrieval finds nothing usable, the assistant follows your fallback instead of improvising.

You do not need the acronym to use the pattern—but you will see “RAG chatbot” in vendor comparisons, so it helps to know it means “search your stuff, then answer from it.” For the same idea without the jargon, read what “trained on your website” means in practice.

RAG chatbot meaning versus a knowledge base chatbot

RAG chatbot meaning is the method: retrieve passages, then generate a reply tied to those passages. A knowledge base chatbot is the same retrieve-then-answer loop aimed at the help articles, docs and PDFs you already publish. RAG names how the assistant finds evidence; knowledge base names the corpus it is allowed to search.

They are not competing products. FAQ-shaped traffic still maps well to an faq chatbot; a help-center corpus still maps to a knowledge base. The retrieval layer underneath is RAG.

Question RAG chatbot Knowledge base chatbot Generic chat with no retrieval
What does it search? Passages from docs, pages and files you connect Help articles, docs and files you connect The model’s training data unless you add your own index
How does it answer? Only from retrieved passages The same retrieve-then-answer loop May improvise when it has no passage
What can visitors check? Sources such as From… labels From… labels from help and docs A fluent reply with no page to open

How a RAG based chatbot retrieves answers

A RAG based chatbot does not memorize your business. It looks things up at question time.

  1. Index. Connected pages and files are split into passages sized for search and quoting. Each passage keeps a link back to the page or file it came from.
  2. Match. Questions are matched by meaning: “cancel my account” should find a cancellation policy even if the heading never uses those words. When semantic search returns fewer than three passages, ChatWith also runs an exact-word search so product names, plan names and policy codes are not lost.
  3. Generate. The model is instructed to answer only from the passages retrieved for that turn.
  4. Cite. When a passage came from a public URL, the widget can show up to two From… labels.
  5. Refuse. If nothing relevant is found, it does not invent an answer—it follows your chatbot fallback message.

In ChatWith you can connect a website (re-synced every day), a public help center URL crawled like a website, a PDF (up to 25 MB and 150 pages per file), a document (.txt or .md), or written text you paste in. You do not need every type on day one—connect the sources that already answer visitor questions.

How a RAG AI chatbot shows sources

A RAG AI chatbot earns trust when visitors can open the sentence behind the reply. High-stakes questions—pricing, refunds, data handling, plan limits, shipping regions—need a passage, not a smooth guess. Large language models can confabulate—state false details confidently when they are not tied to sources (NIST AI 600-1). Retrieval plus an honest fallback is how you keep that risk down on a public site.

When the assistant answers from a passage tied to a public URL, ChatWith can show up to two From… labels. Clicking a citation can open the exact sentence the reply used: on the page the visitor is already on, the chat scrolls to those words; elsewhere, the link opens at a text fragment.

If retrieval finds nothing usable, ChatWith does not answer from general knowledge—it shows your fallback, marks the conversation needs review, and on Pro and Agency can surface patterns in Conversation insights, including Top unanswered questions. Lead capture (structured capture with the conversation attached) is on Pro and Agency, not on Growth.

Paid plans start at $29/month; there is no free plan and no free tier. Plan names and limits stay on the ChatWith FAQ and pricing.

FAQ

What is a RAG chatbot?

It is an assistant that searches content you connected—site pages, help URLs, PDFs and pasted text—retrieves relevant passages, answers only from those passages, cites sources when possible, and falls back honestly when retrieval finds nothing usable.

Is a RAG chatbot the same as a knowledge base chatbot?

They share the same retrieve-then-answer loop. RAG names the method; a knowledge base chatbot names the help articles, docs and files the assistant is allowed to search. On a business site you usually want both ideas at once: retrieval plus a corpus you control.

How does a RAG chatbot retrieve answers?

It indexes your connected sources into passages, matches the visitor’s question by meaning (and by exact words when semantic search is thin), instructs the model to answer only from those passages, and shows From… labels when a public URL backs the reply.

Is a RAG chatbot the same as ChatGPT on my website?

No. General chat products answer from broad training data unless you add your own retrieval layer. A RAG chatbot scoped to your sources is limited to what you indexed, shows where answers came from, and logs gaps in your dashboard instead of improvising policies.

More guides

Let your users use your MCP inside your app.

No outside AI subscription for them. One snippet for you.

Plans from $29 a month · Change or cancel anytime