AI for your company knowledge base: answers with document references
An AI knowledge-base assistant retrieves information from permitted documents and drafts an answer with references. Useful answers need current versions, access checks and a clear way to say that the documents do not contain an answer.
When a document assistant helps more than search
Guides and procedures may come from different authors and live in several folders. Staff ask questions in their own words, while an answer requires parts of multiple sections. Test an assistant on recurring questions of that kind when the documents have owners and clear rules for use.
- Conventional search
- Find a known file or phrase. Clear names, structure and full-text search may be enough.
- An assistant with references
- Combine information from permitted documents and explain it in response to a staff question. Show the supporting sources.
- Organise the materials first
- No approved version, conflicting documents or unknown permissions. A model cannot decide which policy the process owner intended.
Start with the questions staff ask, where approved answers live and who may read them. A short FAQ containing a few rules may solve the task more simply and cheaply than a model.
From a question to a verifiable answer
This pattern is often called retrieval-augmented generation, or RAG: retrieve relevant passages from selected material, then use them to draft an answer. Documents do not automatically become authoritative, and a reference alone does not establish that a claim is supported.
- Create an inventory: document, owner, version, effective date, status and access. Exclude outdated or unauthorised material.
- Prepare text and section boundaries. Check OCR for scans and preserve table headings and value relationships. Each passage retains its original section reference.
- Identify the user and permitted sources before retrieval and before sending context to a model. Checking a UI button does not establish data access control.
- Retrieve passages matching the question and relevant terminology. Show missing evidence or contradictions rather than making a confident guess.
- Draft the answer and link substantive claims to specific sections and versions. Let the user open the source and check the support.
- Keep only the agreed information needed to investigate errors. Do not retain unnecessary queries or document passages without a purpose, access rules and retention period.
Microsoft describes RAG as grounding answers in proprietary material and identifies retrieval, multiple sources and access control as separate challenges. It is an architectural approach, not a promise that uploading a folder yields a finished system. Source: RAG in Azure AI Search.
Example: one question and two verifiable sources
The two procedures below and their manually prepared expected answer are fictional. This is a controlled requirements example, not a model run or a customer’s internal documentation. The example assumes the employee may read both documents.
Document 1. Enquiry handling, version 2
Illustrative effective date: 15 October 2026. Section 2.
The coordinator assigns the enquiry to a salesperson. The assigned salesperson reviews the description and records the next step.
Document 2. CRM outage, version 1
Illustrative effective date: 16 October 2026. Section 3.
If the CRM is unavailable, the coordinator saves the original enquiry in a temporary log. After recovery, the assigned salesperson checks for an existing record before transferring it to avoid a duplicate.
Employee question
Who assigns a new enquiry, and where should it be saved if the CRM is unavailable?
Expected answer with supporting references
The coordinator assigns a salesperson. [1, section 2] During an outage, the coordinator saves the original enquiry in a temporary log. Before transferring it after recovery, the salesperson checks whether a record already exists. [2, section 3]
What if the employee asks for a response deadline?
Neither document specifies a salesperson’s response deadline. Expected behaviour is to state that the information is absent and ask the process owner to clarify. “Record the next step” must not become an invented promise to reply within a few minutes.
Acceptance checks go beyond the presence of citation markers. Compare each claim with its cited passage. Removing a rule must change the answer or remove the unsupported part.
Keep obsolete versions and unauthorised content out
- Version and owner
- Identify the effective revision and its approving owner. A more recent file timestamp alone must not decide which rule applies.
- Updates and removal
- Agree when changes reach retrieval. Check that withdrawn documents disappear from answers, search, stored excerpts and accessible links under the selected rules.
- Staff access
- Check permission for the passage, the answer and opening the original. Cached responses and history must not reveal prohibited information to another user.
- Insufficient support
- Missing text, conflicting versions or an unavailable source should make the unresolved part and escalation owner clear. Quietly falling back to general model knowledge does not establish company policy.
Azure AI Search documents document-level permissions and query-time filtering separately. The mechanism depends on the source and identity model; one provider’s capability does not automatically exist in every system. Source: document-level access.
Sources checked on 29 October 2026. Verify the architecture and feature availability for the chosen service version. These references do not mean the project must be hosted on Azure.
The intended reader determines which sources are appropriate. A public website assistant can use published terms and a catalogue. A salesperson drafting a proposal needs the current price list and the terms approved for that deal.
What to verify in a knowledge-base pilot
- A direct question about one section: the answer is supported by the exact passage and an openable reference.
- A question spanning two documents: retain both parts and support each with the appropriate source.
- No answer in the material: show the gap without inventing a deadline, amount or action.
- Conflicting revisions: expose the conflict and apply a selection rule agreed with the owner.
- A document is restricted: its text must stay out of retrieval, model context, answers and accessible history. Direct URLs must check access too.
- A document is updated or withdrawn: after the agreed refresh, use the correct revision and do not return removed content from a cache.
- A service is unavailable or a reference breaks: expose the limitation and retain the agreed manual path.
Prepare expected answers separately from configuration examples. Measure retrieval of the right section, support for the answer, review time and costs. A correctness percentage without the questions and error definition offers little basis for a decision. Agree tolerances and sample scope for the task.
Scope a useful first phase
Choose one staff group, one document source and a recurring question. Assign a knowledge owner and agree versions, access, permitted data and acceptance criteria. Test retrieval and answers on a bounded sample before deciding on production connections and expansion.
BYstudio’s initial task review is free. Full document preparation, access auditing, a pilot and production implementation are separately scoped phases. Material quality, connections, permissions, workload and support affect cost. Do not send customer databases, passwords or internal documents before agreeing a suitable transfer method.