← All Articles
RAGAI StrategyProduction

How to Build a Chatbot That Answers From Your Company Documents

Christian Chukwuka··4 min read
How to Build a Chatbot That Answers From Your Company Documents
TL;DR

A company knowledge assistant reads your documents, finds the passages relevant to a question and writes an answer that links to its sources. To build one that people trust you need current documents, permissions that match your org chart, source links on every answer and a test set of real questions to measure accuracy. ChuksForge builds these from ₦1,200,000 for a team of up to 500 documents, in four weeks.

Every company has the same problem: the answer exists, in a policy, a contract, a handbook or an old email, and nobody can find it quickly. A chatbot that answers from your own documents solves that, when it is built carefully. This guide explains how it works and where projects go wrong.

How it works in plain terms

The technique is called retrieval-augmented generation, or RAG. Your documents are split into passages and indexed. When someone asks a question, the system finds the passages most likely to contain the answer and gives them to a language model, which writes a response and points to the passages it used. The model answers from your material, instead of from memory.

The five steps

  1. Audit the knowledge. List the sources that matter, who owns them and which are out of date. Many projects improve more from retiring ten stale documents than from any technical choice.
  2. Ingest and index. Convert files, such as PDFs, Word documents, spreadsheets and web pages, into clean text and keep the index in step with the originals as they change.
  3. Retrieve and answer. Tune how passages are found and how the model is instructed, including what it must say when it does not know.
  4. Control access. Make sure people only see answers drawn from documents they are allowed to read. Finance policies and HR files should not leak through a helpful assistant.
  5. Evaluate and hand over. Test on real questions, measure accuracy, train the people who will maintain it and set up a way to report wrong answers.

Where these projects fail

  • Stale documents. The assistant repeats an old policy with total confidence.
  • No sources. If answers cannot be checked, people stop trusting them after the first mistake.
  • No permissions. The first time someone sees something they should not, the project is over.
  • No measurement. Without a test set of real questions, nobody can say whether the system is improving or getting worse.
  • Answering when it should refuse. A good assistant says "I could not find that in your documents" when it is true.

We cover the engineering side in building production-grade RAG systems and explain why the usual shortcut fails in why "just add RAG" gives wrong answers.

Off-the-shelf tool or custom build?

  • An off-the-shelf tool fits when your documents live in one supported place, your permissions are simple and you can accept the vendor's limits on where data is stored.
  • A custom build fits when you have several sources, role-based access, a need to control where data is processed, or a requirement to measure accuracy on your own questions.

Whichever you choose, ask where your documents are stored and processed, who can access them, and whether they are used to train any model. These questions matter under the Nigeria Data Protection Act 2023 whenever documents contain personal data.

What our Company Knowledge Assistant includes

The Standard scope is ₦1,200,000 for a single team or department, up to 500 documents and one interface. The Enterprise scope is ₦2,800,000 for company-wide deployments with multiple sources, roles and interfaces. Both cover a knowledge audit, an ingestion pipeline, retrieval and answering with linked sources, access control, a quality evaluation on your own questions and a handover to your team. The timeline is four weeks, followed by a 30-day tuning period. If you complete an AI Readiness Assessment first, its fee is fully offset against the build.

See the full scope on the Company Knowledge Assistant page.

Frequently asked questions

Will the chatbot make things up?

Any language model can, which is why the system should answer only from retrieved passages, show its sources and say so when nothing relevant is found. Measuring accuracy on your own questions shows how often it succeeds.

Can it read scanned documents and spreadsheets?

Scanned files need text recognition first, and spreadsheets need careful handling so that rows and columns keep their meaning. Both are routine in an ingestion pipeline, but they should be tested on your real files.

How do we keep it up to date?

Automate ingestion so that when a document changes, the index updates. Assign an owner for each source and review which documents are included every quarter.

Can different staff see different answers?

Yes. Access control can follow your organisation, so that the assistant draws only on documents each person is allowed to read.

The takeaway

Trust is the product. Current documents, linked sources, correct permissions and a measured accuracy score turn a demo into a tool people use every day.

Christian Chukwuka
Christian Chukwuka
Founder & AI Systems Engineer

Have a similar challenge?

Book a free 30-minute architecture call and we'll tell you honestly whether and how we can help.

Book Free Discovery Call →