On this page
A support lead exports the whole help center, hands the file to a vendor, and asks them to "train the bot on it." Six weeks later the bot still describes a refund window that does not exist. The docs were fine. The way they reached the model was the problem.
For a chatbot that answers customer questions, training rarely means teaching the model new facts by adjusting its weights. It means handing the model your content to read at the moment someone asks, then making sure it reads the right passage. Get that pipeline right and the same base model that guessed last week starts quoting your actual policy.
This guide covers what training a chatbot on a knowledge base really means, whether to use retrieval or fine-tuning, what content to feed it, how to structure that content, how to test the bot's accuracy, and how to keep it current after launch.
What does it mean to train an AI chatbot on a knowledge base?
Training an AI chatbot on a knowledge base almost always means grounding it with retrieval so it reads your content at answer time. The common technique is retrieval augmented generation, or RAG, which AWS describes as "the process of optimizing the output of a large language model, so it references an authoritative knowledge base outside of its training data sources before generating a response."
The mechanics matter because they define what your actual job is. AWS notes that RAG "extends the already powerful capabilities of LLMs to specific domains or an organization's internal knowledge base, all without the need to retrain the model." Your job is to build a searchable library of your content and wire the model to consult it before it answers. The model supplies fluent language. Your knowledge base supplies the facts.
Google Cloud makes the case for why this beats leaning on the model alone: "LLMs are limited to their pre-trained data, which leads to outdated and potentially inaccurate responses. RAG overcomes this by providing up-to-date information to LLMs." A grounded bot answers from your current pricing page. An ungrounded one answers from whatever it absorbed in training, which may be a year stale and was never about your company to begin with.
That framing changes the whole project. You are curating and organizing documents, then testing whether the retriever finds the right one. Most of the work sits in the content, and that is where the rest of this guide spends its time.
Should you train with retrieval or fine-tuning?
Use retrieval for facts that change and fine-tuning for tone and format that stay fixed, and for most knowledge-base chatbots retrieval is the one you want. The two methods solve different problems. Retrieval gives the model the right information at answer time. Fine-tuning adjusts how the model writes and behaves, baked in during a training run.
The cost gap is the clearest way to decide. Analyses of the two approaches put a single fine-tuning update cycle at roughly $500 to $5,000 and several days of work, because it needs a curated dataset and a training run. Updating a retrieval knowledge base is a document edit, which costs close to nothing and takes effect as soon as the content is re-indexed.
Here is the math over one quarter. Say your pricing changes once a quarter and your help center gets edited twice a week. With fine-tuning, every one of those edits is a candidate for retraining, so a quarter with one pricing change and roughly 24 doc edits could imply a stack of update cycles at hundreds to thousands of dollars each. With retrieval, the same edits are just saved documents the bot picks up on its next index refresh, at close to zero marginal cost. For knowledge that moves, retrieval wins on both price and freshness.
Fine-tuning still earns its place. It is the better tool when you need the bot to answer in a rigid format, follow a niche house style, or handle a narrow task where the underlying knowledge barely changes. Many production systems combine both: retrieval for the facts, a light fine-tune for the voice. If your content changes week to week, start with retrieval and add fine-tuning later only if the writing style demands it.
What content should you feed a bot?
Feed the bot the canonical, customer-facing answers you already maintain, and keep out anything you would not want quoted back to a customer. The strongest sources are the documents that already represent your official position: product and setup documentation, help center and FAQ articles, pricing and plan details, policies (refunds, shipping, security, privacy), and troubleshooting guides.
Guidance on building these knowledge bases recommends running an inventory before you ingest anything, so you set clear boundaries on which sources belong. Pick the canonical version of each answer. If three pages describe your return policy and two are out of date, the bot will happily retrieve one of the wrong ones.
Just as important is what to leave out. Internal notes, draft copy, old campaign pages, contradictory duplicates, and anything speculative all create retrieval noise, and noise is where wrong answers come from. A rule that saves teams later: if two documents disagree, the bot has roughly even odds of citing the loser. Deduplicate first, then ingest.
One trap deserves its own mention. Content that assumes prior knowledge breaks grounding. The same playbook warns that a line like "follow the usual refund process," with the actual steps living somewhere else, forces the model to guess, because it has no memory of anything outside the passage it retrieved. Every chunk has to stand on its own. Choosing which sources the assistant is allowed to read is the first real step, and the AI knowledge base guide walks through picking those sources.
How do you structure a knowledge base for AI?
Structure the knowledge base as many small, single-topic passages, each self-contained enough to answer a question on its own. The unit that matters is the chunk, the slice of text the system retrieves and hands to the model. Retrieval works on chunks, so the way you cut your documents decides what the bot can find.
Practitioner guidance converges on a few rules. Chunk by topic or complete concept rather than by arbitrary length, and keep most chunks in the range of 200 to 500 words. One chunk should cover one idea completely. Add clear headings, because they help both the retriever and the model understand what a passage is about.
A worked example makes the shape concrete. Take a 2,000-word "Billing" help article that covers plans, proration, failed payments, and refunds in one long scroll. Fed in whole, a question about refunds retrieves the entire article, and the refund answer competes with three unrelated topics for the model's attention. Split the same article into four self-contained chunks of roughly 300 to 500 words, each with a heading and enough context to stand alone, and a refund question now pulls one tight passage about refunds. Same content, very different accuracy.
Two more structural habits pay off. Use hybrid search that combines vector embeddings with plain keyword matching, so a customer who types your exact product name or an error code still gets a hit. And treat the knowledge base as a real engineering artifact. Teams that give it ownership, versioning, and a review cycle consistently outperform those that treat it as an afterthought.
How do you test bot accuracy?
Test accuracy by building a fixed set of real questions with known answers, then scoring the bot on how faithful and relevant its replies are. You cannot eyeball a handful of chats and call it done. You need a repeatable test set and a small number of metrics you track on every change.
Four measures do most of the work, and RAG evaluation guides group them into retrieval quality and answer quality:
- Faithfulness: does the answer stick to the retrieved passages, without adding claims the source never made. This is the direct measure of hallucination.
- Answer relevancy: does the reply actually address what the person asked.
- Context precision: of the passages retrieved, how many were relevant.
- Context recall: of the passages that were relevant, how many got retrieved.
The split tells you where a failure lives. If faithfulness is low, the model is drifting off its sources, and you tighten the prompt or the grounding. If context recall is low, the right passage never got retrieved, so the fix belongs in your chunking or search rather than the model.
These numbers are real and measurable. A 2025 mixed-methods study of a RAG chatbot for orthopedic patient education reported answer relevancy of 0.864, contextual precision of 0.891, and faithfulness of 0.853 on its evaluation set, on a 0 to 1 scale. Scores in that range are a reasonable bar for a grounded bot. Coming in well short is a signal to fix retrieval before you ship.
Now the worked example. Assemble 50 questions your sales and support teams actually get, write the correct answer for each from your own docs, and run all 50 through the bot. If 44 answers are faithful and on-topic, you are at 88 percent, and the 6 failures become your worklist. Re-run the same 50 after every content or prompt change, so you can see whether an edit helped or quietly broke something that used to work.
How do you keep the bot up to date?
Keep the bot current by tying its knowledge base to the same source documents your team already edits, and re-indexing on a schedule rather than by hand. A grounded bot is only as fresh as its index. When a policy changes and the index still holds the old version, the bot serves the outdated answer with full confidence.
Staleness has a measurable cost. One analysis of knowledge-base staleness found that stale embeddings can degrade retrieval accuracy by up to 20 percent, often with no warning signal to tell users the answer is out of date.
Prefer incremental updates over full rebuilds. Production RAG guidance recommends tracking what is indexed with a metadata registry (document IDs, content hashes, and timestamps), then reprocessing only the documents that actually changed. That keeps refreshes cheap enough to run often, which is the entire point.
Three habits keep a bot honest after launch:
- Assign an owner. One person signs off on what enters the knowledge base and when it gets refreshed.
- Set a review cadence. Re-check high-traffic answers (pricing, policies, top FAQs) on a fixed schedule, and refresh the index whenever a source document changes.
- Watch the misses. Log the questions the bot could not answer or answered badly, and feed those gaps back into the content.
This is where a bot and a live team work together. When the bot hits a question outside its knowledge base or a high-intent buyer clearly needs a person, the clean move is a fast handoff, which is worth designing alongside the AI chat assistant itself. The AI assistant setup guide covers connecting sources and tuning behavior once the content is in place.
Key takeaways
- Training on a knowledge base is a grounding job. Retrieval augmented generation points a stock model at your content and has it read the right passage before it answers.
- Choose retrieval for anything that changes. A document edit costs close to nothing, while a fine-tuning cycle runs hundreds to thousands of dollars and takes days.
- Feed it canonical, self-contained content. Official docs, FAQs, pricing, and policies belong in; drafts, duplicates, and internal notes create the noise that produces wrong answers.
- Cut content into single-topic chunks. Passages of 200 to 500 words, each covering one idea and standing on its own, are what make the right answer findable.
- Score faithfulness and relevance on a fixed test set. A repeatable set of real questions with known answers turns "seems fine" into a number you can track on every change.
- Re-index whenever the source changes. Stale embeddings can cut retrieval accuracy by roughly a fifth, so tie the knowledge base to your live docs and refresh incrementally.
TAGS

Written by
Nilas MylerCo-founder & CTO, Glimpze
Nilas is the co-founder and CTO of Glimpze, an inbound sales tool that turns high-intent website visitors into live conversations. A former SEO consultant for some of the largest companies in Denmark, he writes about speed-to-lead, inbound sales, and conversion rate optimization — the technical and operational mechanics of turning traffic into pipeline.