The idea is attractive: ask a question in plain language and get an answer from your own policies, contracts and manuals. Many organisations try it, and many are disappointed. The disappointment usually comes from the content and the access rules, not from the language model.
This article explains the data foundations that an AI knowledge assistant needs, in the order we would tackle them.
Start with sources people already trust
Ask a simple question: when two documents disagree, which one wins? If nobody can answer, an assistant will not answer it either. It will retrieve whichever passage looks closest to the question.
Begin with a small, defined set of sources. A policy library, an operations handbook or a product knowledge base is a better starting point than "all shared drives". For each source, record:
- The owner, meaning the person who corrects it.
- How it is updated, and how often.
- Whether older versions are removed or kept alongside.
- Who is allowed to read it.
This is a small amount of work, and it does more for answer quality than any change to the model.
Handle duplicates and old versions
Document sets accumulate copies. A policy exists as a final version, a "final v2" and an email attachment. Retrieval systems treat them as separate sources of truth, and the assistant may quote the superseded one with complete confidence.
Decide on a rule: a single current version per document, a clear status field such as current or archived, and a date. Where you must keep history for legal reasons, mark it so the assistant ignores it by default. Where two departments hold different copies, resolve that by agreement before you build.
Preserve permissions
This is the point that most often separates a safe assistant from a risky one. Staff already have different rights to see documents. Finance may read payroll files. Most staff may not. If the assistant indexes everything into one searchable store and answers from it, you have created a way around your own access controls.
There are two sound approaches. The assistant can check the asking user's rights against the source system at the time of each query, or it can keep a copy of each document's access rules and filter results before the model sees them. Either way, access must be applied before the answer is generated, not after.
Test it directly. Ask the assistant a question that only an authorised person should be able to answer, as someone who is not authorised. The correct response is a polite refusal, not a summary.
Keep context with the content
Documents are not neutral text. A clause means something because of the contract it sits in. A rule applies to a region, a product line or a date range. When a document is cut into passages for retrieval, that context is often lost.
Preserve it as attributes: document title, section, effective date, applicable entity, version, owner. These let the assistant filter before it searches, and they let it show a reader exactly where an answer came from. Every answer should link to the passage it used, so the reader can check.
Be careful with scans, tables and mixed languages
Much operational knowledge sits in scanned PDFs, spreadsheets, tables and presentations. Text extraction from these can silently drop rows, merge columns or misread figures. If your documents include several languages, as many Indian and international organisations do, test retrieval in each one rather than assuming it carries over.
Sample a few dozen documents of each type and read the extracted text yourself. It is slow, and it finds problems nothing else will.
Decide what the assistant must not do
Write the limits down before the first demonstration:
- It answers only from approved sources and says when it cannot find an answer.
- It does not give legal, financial or medical advice, and it points to the responsible person.
- It does not act on a user's behalf unless an approved workflow says so.
- Its answers are logged, so you can review what was asked and what was shown.
An honest "I did not find this in the approved documents" builds more trust than a fluent guess.
Plan for change after launch
Content keeps moving. A policy is revised, a product is retired, a team is reorganised. Decide at the start how new and changed documents reach the assistant, and how removed ones leave it. The simplest reliable pattern is a scheduled refresh from the source system, with the owner of each source notified when something they published fails to load.
Also decide who reviews the questions the assistant could not answer. That list is a free map of gaps in your documentation. Often the best result of the project is not the assistant but the policies that finally get written down.
Measure with real questions
Collect actual questions from staff: the ones that reach the help desk, the ones asked in team chats. Pair each with the correct answer and its source. This is your evaluation set. Run it whenever you add content or change the system. Include questions the documents do not answer, to see whether the assistant admits it.
Checklist: is your content ready for a knowledge assistant?
- A defined, limited set of sources has been chosen for the first release.
- Each source has an owner who corrects errors.
- Duplicates are removed, and each document has a status and a date.
- Access rules are known for every document and are enforced before answers are generated.
- A test confirms that an unauthorised user cannot obtain restricted content.
- Document attributes such as version, entity and effective date are kept with the text.
- Scans, tables and each language have been sampled and read by a person.
- Answers cite the passage they came from.
- The assistant's limits are written down and logged answers are reviewed.
- An evaluation set of real staff questions exists, including some without an answer.
Where Kingstek fits
Preparing sources and permissions is part of our data and decision intelligence work, and building the assistant sits within AI and intelligent automation. If you want to test the idea on one document set first, the Workflow Discovery Sprint covers the data assessment and a prototype run on representative examples.