BS

ARTICLE · AI

How to prepare a knowledge base for an AI chatbot

Prepare approved sources, control access and test an AI chatbot that answers customer questions using your business documents.

In short

Prepare accurate, approved sources for your AI chatbot: prices, terms, procedures and answers to customer questions. Decide who maintains each document and when to review it. Test the answers, access restrictions and handover to a person on your team.

The chatbot depends on what it can find

If a price in an old PDF conflicts with the website, an assistant can pass on the wrong information. Before connecting a model, sit down with someone from sales or support and review what customers actually ask about: delivery, availability, terms, prices and contact.

Prepare the sources

  1. Select approved documents and public pages; remove obsolete copies and identify the authoritative version.
  2. Split long documents into meaningful topics and retain their title, source and revision date.
  3. Assign an owner to approve changes for each topic, especially prices and terms.
  4. Separate public information from internal data and verify who can access each.

With retrieval-augmented generation, or RAG, the system first finds relevant passages and then provides them as context for an answer. This is different from retraining the model.

Define boundaries and human handover

The assistant should say when it lacks enough information and offer contact instead of inventing a price or deadline. Order status requires a connection to the real system and verification of the customer's identity; a public document is not proof that someone may see another person's order.

Enforce permissions in the application and data sources, not only in the model prompt. Limit access keys and tools, and require human approval for sensitive actions. OWASP warns that RAG does not eliminate malicious instructions embedded in content.

When an answer is wrong, check the source

When a chatbot makes a mistake, first check whether it found the correct document at all. If it did not, the issue may involve access, an outdated version or how the content was split. If it found the right passage but answered incorrectly, examine how the system uses that context and when it should say it does not know. Save the question, sources and expected answer so the same failure can be retested after a change.

Test before and after launch

Prepare questions with expected answers and sources: straightforward requests, wording in both languages, missing information, old prices and requests for private data. Record correct answers, errors, cases where the bot rightly declines to guess and successful handovers. Recheck after model or document changes; the NIST generative AI profile emphasises evaluation and monitoring during use.

Begin with a narrow set of verified topics. Expand once the team knows who maintains the content and how mistakes are corrected. On Elite projects, every AI chatbot transitions onto AI Operations (from 290 KM/month ex. VAT) so real chats are audited and knowledge stays current.

FAQ

Frequently asked questions

Everything you need to know about building websites, custom software, AI agents, pricing and timelines with Elite. Need more detail?

Contact Us
Yes. Retrieving relevant documents reduces reliance on general knowledge but does not guarantee accuracy. Testing, access controls and human handover remain necessary.
Agree this before launch. Each important topic needs an owner, an approval process and a review schedule.

LET’S TALK

Have a project or idea in mind?

Leave your email or book a relaxed 20-minute call — no obligation, no sales pressure. We will gladly listen to what you are building and suggest the clearest path forward.