AI answers based on your own documents

Your AI front desk searches your documents before it answers. This is called RAG. It helps the AI use your actual prices, policies, and product details when replying to customers.

The knowledge sources a business adds in Hyperleap AI, such as its website pages and sitemaps, next to the chat widget answering a customer from that information
Sample business. The agent answers from the sources you add: your website, sitemaps, and documents.

Quick Answer

A RAG chatbot searches your documents for relevant information, then uses it to write a reply. RAG stands for Retrieval-Augmented Generation. For a business, that means answers that use your real prices, policies, and hours, and that change as soon as you update a document. It helps reduce made-up answers, but the AI can still make mistakes, so test it before it goes live.

How it works

How a RAG chatbot works

Grounding means the AI answers from material you gave it, not from whatever it learned on the open internet. Each answer goes through the same four steps.

1. Add your information

Your documents and website content are split into passages and indexed so they can be searched by meaning, not just keywords.

2. Find the relevant details

When a customer asks something, the system finds the most relevant passages from your knowledge base.

3. Write the answer

The language model writes the reply using those retrieved passages as its source — answering from your material, not generic knowledge.

4. Stay accurate over time

Update your knowledge base and answers update with it. No retraining, no stale responses.

The technical detail: indexing, retrieval, and generation

Indexing

When you add a document or web page, its text is extracted (navigation, scripts, and images are skipped), split into passages, and each passage is turned into an embedding: a list of numbers that represents what the passage means. Passages about the same thing end up with similar embeddings even when they use different words.

Retrieval

When a customer asks a question, the question gets an embedding too, and the system looks for the passages closest to it in meaning. “Are you open Sundays?” can match a passage that says “weekend hours: Saturday mornings only”, even though the two share no keywords.

Generation

The best-matching passages go to the language model along with your instructions and guardrails, and the model writes the reply from them. On Hyperleap AI that model is GPT-6 Luna by default, with Claude Haiku 5.5 as the other included option; you can also bring your own OpenAI or Anthropic key.

Why not paste everything into the prompt?

A model can only read so much at once, and a prompt stuffed with every page you own makes answers slower and less focused. Retrieval sends only the passages that matter for this question.

What retrieval cannot fix

If the answer is not in your sources, there is nothing to retrieve, and that is when your fallback should take over. If two sources disagree, say an old and a new price list, the model may quote either one. Both are source problems, and the fix is in your sources, not the model.

Why it matters

Why RAG matters for a business chatbot

Designed to minimize hallucinations

Using your documents as a source helps reduce made-up answers. AI can still make mistakes.

Always reflects your real data

Your pricing, policies, and products — current, because the chatbot reads your knowledge base, not a frozen training snapshot.

Scales with your business

Add documents as your business grows. With several similar locations or courses, the optional Multi-variant (locations, courses, etc) add-on answers from the right one ($40/mo plus 2x credits per request, Pro and Max).

Consistent on every channel

One knowledge base powers website, WhatsApp, Instagram, and Facebook — the same answer everywhere.

Your sources

What to upload, and what to leave out

The agent can only be as good as what you give it. Start with the material behind the questions you answer most, and keep anything private out of it. Every plan includes 40MB of knowledge per chatbot.

Add

  • Your website pages

    Add the pages customers ask about — services, pricing, FAQ, policies, contact — one at a time, or crawl a section of linked pages.

  • Documents

    PDF, Word (.docx, .doc), and plain-text files: price lists, service menus, policies, brochures, manuals.

  • Question-and-answer pairs

    The questions you get every day, answered the way you would answer them. The most direct way to pin down an exact answer.

Leave out

  • Anything you would not tell a customer

    Internal pricing, margins, staff notes. If it is in a source, the agent can quote it.

  • Old versions next to new ones

    Last year's price list beside this year's invites the wrong answer. Replace, don't stack.

  • Content the indexer cannot read

    Text inside images or videos, and pages behind a login. Write prices and hours as text.

Structure helps retrieval: clear headings, one topic per section, and very long documents split by topic. For a fuller walkthrough, read our knowledge base best practices or see the knowledge base chatbot overview.

Staying current

How to keep answers current

A RAG chatbot is only as current as its sources. The upside is that keeping it current is ordinary housekeeping, not an AI project.

  1. 1

    Change the source, not the AI

    Edit the document or page, and the next answer uses the new version. There is nothing to retrain.

  2. 2

    Refresh changed web pages

    After you update a page on your site, refresh that URL in Sources so the index picks up the change.

  3. 3

    Replace, then delete the old copy

    Upload the new price list and remove the old one, so two documents never disagree.

  4. 4

    Give every source an owner

    Name the person who knows when hours, prices, or policies change, and make updating the source part of that change.

  5. 5

    Retest what the change touches

    Ask the agent the questions the update affects before your customers do.

Hours and prices change most often. The knowledge source checklist covers the routine, and resolving conflicting sources covers what to do when two documents disagree.

Guardrails and fallback

What happens when it should not answer

Retrieval decides what the agent knows. Guardrails and fallback decide what it does at the edges: questions it should not touch, and questions your sources do not cover. You write both, in plain language.

Guardrails

Plain-language rules for what the agent must not do: "Do not discuss competitor pricing." "Do not give medical or legal advice." "Do not promise refunds or delivery dates." Specific rules work better than vague ones.

Fallback

What the agent says when your sources don't have the answer. Give a next step — an email address, a link, an offer to take their details — instead of a guess or a bare "I don't know".

Human handoff (Pro and Max)

Visitors can ask for a person and your team is alerted in Studio. Any teammate can take over the conversation, including on WhatsApp, Instagram, and Messenger, then hand it back to the AI.

In healthcare, legal, and financial services, write guardrails that route rather than advise. The agent can share your published information and pass urgent or personal questions to your team; it does not assess symptoms or give legal advice.

Accuracy

How to test accuracy on your own questions

An accuracy percentage from any vendor or benchmark was measured on someone else’s documents and someone else’s questions. What matters is how the agent does on yours, and you can measure that yourself during your free trial.

  1. Step 1

    Collect real questions

    Pull them from your inbox, DMs, and call notes: the everyday ones, the awkward ones, and a few your sources cannot answer.

  2. Step 2

    Write the answer you expect

    Next to each question, note the correct answer and the document it should come from.

  3. Step 3

    Ask them before you publish

    Run every question in the test preview, against your draft, before customers see it.

  4. Step 4

    Score every reply

    Use the outcomes in the table below. Count them; do not go by feel.

  5. Step 5

    Fix the source, then rerun

    Most misses trace back to a missing, outdated, or conflicting source. Rerun the full set after every significant change.

OutcomeWhat to do
Correct, from your sourcesWorking as intended.
Correct, but not traceable to a sourceTighten your instructions so answers come from your documents.
Declined when it should have answeredThe information is missing or hard to find. Add it, or restructure the document.
WrongFind the source it used in the conversation log. Fix or remove that source, or add a guardrail.
Declined correctlyThe question is outside your sources and the fallback did its job.

For a deeper method, including what “accurate enough” means for your business, read how accurate are AI chatbots.

Change safely

Draft, test, publish, and see where answers came from

Testing only helps if changes can’t reach customers before you’ve tried them, and if you can trace a bad answer to its cause.

Draft → test → publish, with version history

Saving a draft doesn’t touch the live agent. You try the draft in a preview, then publish, and every publish is kept as a version. Open any past version to see what changed, section by section, and restore it to your draft in one click. Nothing goes live until you publish again.

Source citations in the conversation log

In the conversation log, each answer shows which of your sources it drew on. The citation is for your team, not shown to customers in the chat, and it is the fastest way to trace a wrong answer back to the document that caused it.

Compared

RAG chatbot vs. a regular AI chatbot

Regular AI chatbotRAG chatbot
Source of answersModel training dataYour documents
Risk of hallucinationHigher (ungrounded)Lower (grounded by design)
Reflects your real infoOften notYes
Updating answersNeeds retrainingEdit your knowledge base
Best forGeneral chit-chatAccurate customer answers

Compared

RAG vs. fine-tuning

Fine-tuning retrains a model on your examples. It is the other way people try to make AI “know” their business, and it solves a different problem.

RAGFine-tuning
What it changesWhat the AI knows when it answers: your documentsHow the model writes or behaves: tone, format, a specialized task
Updating a factEdit or replace a document; the next answer uses itPrepare new training examples and train again
Seeing where an answer came fromTraceable to the source passageBlended into the model; no source to point to
What it takes to startYour website and documentsCurated training examples, ML expertise, and compute
Good fitBusiness facts that change: prices, hours, policies, productsA consistent voice or format at large scale, or a narrow specialized task

They are not rivals. Teams with ML engineers sometimes fine-tune a model for tone and still use retrieval for facts. For a business answering customer questions, retrieval plus clear written instructions covers the job, and that is how Hyperleap AI works: there is no model training step. The RAG vs fine-tuning vs prompt engineering guide goes further.

FAQ

Frequently asked questions

What is a RAG chatbot?
A RAG chatbot searches your documents for relevant information before writing a reply. RAG stands for Retrieval-Augmented Generation. For a business, that means answers built from your own prices, services, hours, and policies rather than from what an AI model picked up in training. Hyperleap AI uses it to answer customer questions from your business information.
How does RAG reduce hallucinations?
RAG gives the AI relevant passages from your documents to use when answering. This helps reduce made-up answers, but it does not eliminate mistakes. Keep your information current, write a fallback for questions your sources do not cover, and test the replies before you publish.
What is the difference between a RAG chatbot and a regular AI chatbot?
A RAG chatbot looks up your documents before answering, so it can use your current prices, policies, and product details. A regular AI chatbot answers from what its model learned in training, which knows nothing about your business. With RAG you update the source information without retraining the AI model.
What documents can I use to train a RAG chatbot?
There is no training step. With Hyperleap AI you add sources: pages from your website (one page at a time or by crawling linked pages), documents in PDF, Word (.docx, .doc), or plain-text format, and question-and-answer pairs. Every plan includes 40MB of knowledge per chatbot. The more complete and well-organized your sources, the better the answers.
How do I test whether my RAG chatbot is accurate?
Collect real questions from your inbox and messages, note the answer you expect for each, and ask them in the test preview before you publish. Score every reply: correct from your sources, correct but not traceable to a source, wrongly declined, wrong, or correctly declined. Fix the source behind each miss, then rerun the whole set after every significant change.
Can I see which document an answer came from?
Yes. In the Hyperleap AI conversation log, each answer shows which of your sources it drew on. The citation is for your team and is not shown to customers in the chat. It is the quickest way to trace a wrong answer back to an outdated or conflicting document.
What if my business has several similar locations or courses?
Every Hyperleap chatbot answers from your knowledge base out of the box. If you have several similar locations, courses or plans, the Multi-variant (locations, courses, etc) add-on makes sure each answer comes from the right one, pulls from all of them for questions like "which branches open on Sunday?", and asks which one the customer means instead of guessing. It is available on Pro and Max for $40/month plus 2x credits per request.
Can a RAG chatbot work across WhatsApp and other channels?
Yes. Hyperleap AI deploys the same RAG-grounded chatbot across your website, WhatsApp Business API, Instagram DM, and Facebook Messenger, all answering from one shared knowledge base — so customers get the same answers wherever they reach you.
How do I build a RAG chatbot without coding?
Paste your website URL and Hyperleap AI reads the site, imports your branding, and generates a starting prompt. The remaining step is one script tag on your site, so you can be live in under 5 minutes. Adding documents, writing guardrails, and testing are tuning you do afterwards. No coding is required. Plans start at $40/month with a 7-day free trial.

Retrieval is the accuracy half of the job. For the whole workflow it sits inside, see conversational AI for customer service.

Put your business information to work

Add your website and documents. Hyperleap AI uses them to answer customer questions, with no coding required.

7-day free trial on all plans. Cancel anytime.

Explore Hyperleap AI

An AI front desk that answers customer questions, collects contact details, and books appointments on your website and messaging channels.