A practical guide to document selection, access classes, source ownership, versioning and test questions before building a Private AI knowledge base.
Choose one decision that an employee makes with a document open in front of them. To help with that decision, a Private AI assistant needs to find the current instruction, show the relevant passage and respect the employee’s access rights. CANIMAPS DIGITAL agrees with each company which sources, users and processes fall within its implementation.
For the project setup, read about starting a Private AI implementation. Record the results of knowledge-base testing in the pilot handover evidence. Verify the current service description on the Private AI page.

1. Start with the work question, not a bulk file import
Ask a colleague at the service desk for an actual question they had to look up this week. A customer wants to return a component that arrived in an opened carton. The colleague needs the applicable rule, the exceptions and the person who may approve the return. They do not need a summary of the entire sales manual. Write down what the colleague should be able to do after reading the answer. In this example the assistant can locate a procedure. Authorising a refund belongs to another process.
Try answering the question by hand before collecting files. Follow the links as a new employee would, without borrowing a manager's account. If two people reach different conclusions, note the point at which their sources diverge. They may serve different markets, or an exception may exist only in someone's memory. Resolve that distinction with the process owner. It becomes a useful test question later and prevents an undocumented convention from quietly becoming company policy.
2. Build a source inventory with named owners
Start the inventory where the answer is actually maintained. The returns procedure might live in a document library, while a copy sent to the warehouse sits beside a packing checklist. Give the procedure a stable identifier and record its current location, business owner, approver, intended readers, format and review date. The owner is the person who can decide whether a sentence still applies. The employee who happened to upload the file may have no authority to make that decision.
Give each candidate a disposition such as approved, awaiting a decision or excluded, with a reason someone can revisit. A useful register entry might say that a supplier bulletin awaits confirmation for the local product line. Keep it outside the searchable collection until a named person resolves that question. During a pilot, a short register with reliable links is more useful than a formidable spreadsheet whose owners have never seen it. Ask someone outside the project to open a sample entry and find the signed original.
The NIST Generative AI Profile recommends documenting data provenance, quality, intended use and limitations. Avots / Source.
3. Separate authoritative documents from supporting material
Conflicting documents can both be genuine. A training slide might say that unopened goods can be returned within a month, while the approved distributor agreement measures a different period from delivery. Ask who is asking the question and under which agreement. Assign authority by process, audience and effective date. Give the assistant an approved source for the ordinary case and a named escalation route for a contractual exception. A slide can illustrate the process without providing the authority to change it.
Record the conflict in terms a reviewer can reproduce. Include the two document identifiers, the relevant passages and the decision about their scope. Where the owners cannot reconcile the wording, exclude that decision from the pilot. Otherwise retrieval may select whichever passage happens to be phrased most like the user's question. Similarity makes a passage easy to find, but it does not tell a salesperson which contract governs the order on the desk.
4. Assign an access class to every source
Translate labels such as internal or restricted into people and actions. Warehouse staff may read packaging instructions for all customers, account managers may see commercial terms for their own accounts, and contractors may see only installation instructions for the assigned site. For each collection specify who grants access, which group carries it and what removes it. Reuse an existing identity group where its membership really matches the business rule. A familiar group name alone is weak evidence.
Test a move between teams as well as a new hire. An employee leaving a sales territory may keep a valid company login while losing access to its contracts. Check what that person can retrieve after the membership change has taken effect. Include mobile and shared-terminal use if those are part of the pilot. A private deployment can keep processing inside the agreed environment, but the location of the server does not decide which colleague may see a confidential price.
5. Enforce rights at document-fragment level
Search systems often divide a long file into passages. A general returns handbook may have a restricted appendix containing customer discounts. If a passage combining both ends up marked as broadly readable, hiding the appendix in the original document will not protect the derivative copy. Split at the actual permission boundary or exclude the appendix. Carry the document identifier, section reference and access group alongside each passage so that a reviewer can trace an answer to a permitted source.
Use two ordinary pilot identities to ask the same question about an exception. The account manager may receive a citation to their customer's appendix. The warehouse operator should see only the general workflow available to that role. Inspect the material selected for the second account as well as its final answer. A polished answer that omits the discount can still conceal a retrieval error if the restricted paragraph was supplied to the model. The correction belongs at retrieval time.
OWASP RAG security guidance recommends access metadata on every chunk and permission checks at retrieval time. Avots / Source.

6. Remove duplicates and superseded versions
A file called final may be a working copy. Group possible duplicates by document identifier and business purpose, then compare their contents, approval and effective dates. A byte-for-byte match can establish that two copies are identical. A PDF export and its source file will usually differ as files even when their instructions agree. Check the passages where a changed instruction would alter an employee's decision. A short change log is often more informative than a visual comparison of two polished covers.
Keep an explicit record of supersession. An older edition can remain in the company's archive for historical orders while being unavailable for questions about current work. If historical lookup is part of the agreed use, require the relevant date and distinguish that collection from current instructions. Try a question about a shipment processed just before the change. The answer should cite the edition in force for that shipment, or explain what date is missing before it can choose.
7. Structure documents before indexing
Read one extracted passage without its surrounding page. A sentence saying “repeat the step above if necessary” is unusable if the preceding step is in another passage. Keep prerequisites, numbered actions and exceptions together. Replace ambiguous cross-references in a maintained working representation with the relevant section name and a link. Preserve the approved original. This lets a reviewer check that editorial clarification did not quietly change an obligation or remove a condition that mattered.
Use the unit of work as your guide. A technician looking up how to receive a returned motor needs the inspection sequence and the conditions for escalation. Splitting after every fixed number of characters could separate a warning from the action it qualifies. Conversely, placing a whole product catalogue in one passage may obscure a model-specific exception. Read a few retrieved samples with the employee who performs the job and adjust boundaries where the explanation ceases to make sense.
8. Add metadata that helps retrieve the right source
Choose metadata by asking which mistakes it helps prevent. Region distinguishes two valid policies with different markets. Product family separates a replacement battery from the complete unit. Document language helps locate the edition the employee can read. Effective date distinguishes a future instruction from one usable today. Store these as consistent fields where they are needed for filtering. Putting them in filenames makes imports depend on spelling and on people continuing to follow an informal convention.
Define the consequence of a missing value. A missing optional keyword need not stop an import, whereas a missing region on a regional price agreement can make retrieval misleading. Route the second case back to its owner. Keep a small dictionary of accepted values, examples and the person who can add a new value. When a business unit changes its name, keep the old alias for search without silently changing who can view its records.
9. Preserve provenance and integrity evidence
When an employee challenges an answer, the useful question is which source was available at the time. Record the originating system, document version, import time and approval reference. A checksum stored alongside a version helps establish whether its bytes were changed. It cannot establish that the policy was accurate or authorised. Keep approval evidence under the control of someone other than a person who can freely replace files in the incoming folder.
Follow one citation back from the answer through the indexed passage to the retained original. If the link always opens the latest edition, retain a version-specific reference as well. A support engineer investigating yesterday's refund advice needs the edition that informed yesterday's answer. Limit access to these records according to the sensitivity of the material. Diagnostic logs can themselves disclose document titles, user identifiers or parts of a question, so agree what needs recording before collecting it.
OWASP also recommends approved-document checksums, provenance records and a protected manifest, while noting that a checksum alone does not prove content safety. Avots / Source.
10. Test tables, images and scanned files
A discount table is a good test of extraction quality. A cell containing a number may be meaningless once detached from the currency, product group, volume band and footnote. Keep the row and column labels with each usable value. Try an enquiry at a band boundary and compare the result with a calculation made directly from the signed table. A plausible answer from the adjacent row is a failure even if its citation opens the correct file.
Scanned instructions present a different problem. A faint negative sign, a crossed-out line or a note in a margin can change the meaning of a procedure. Review a small sample visually against the scanned page. Where extraction is unreliable, record exactly which pages need transcription or human consultation. A photograph showing where to inspect a component may deserve a written description, but a description should not invent measurements that are invisible in the photograph.

11. Plan for multiple languages and terminology
Make a brief glossary from real customer and employee language. A spare part may be described by a catalogue code, a local nickname and a translated product name. Identify the same underlying item while preserving terms whose legal or technical meanings differ. Let a bilingual specialist check the vocabulary used for approval, cancellation and replacement. Two expressions can sound close while giving the employee very different authority to act on an order.
Link translations to their approved source edition. A German instruction created from last year's Latvian original can be a faithful translation of an outdated process. State which language governs if authorised versions conflict and who maintains the translation. Test a question asked in one language about an item labelled in another. A useful answer should retain the exact product code, quote the applicable condition accurately and offer a source that the employee is allowed to open.
Try a warehouse nickname that colleagues use for two different parts. Enter the question just as a clerk hears it at the counter and note whether the assistant asks for the model code. Once given the code, it should locate the relevant catalogue and identify the same item the clerk sees in the order. Record the ambiguous nickname with both meanings in the glossary. An arbitrary default could send the employee to the wrong part’s return conditions.
12. Do not ingest secrets merely because they appear in a file
A maintenance export can contain staff signatures, private telephone numbers or connection details buried in a footer. Decide which fields are actually required for this use. A support assistant may need the responsible department and a shared contact route while having no reason to index personal addresses. Make the reduction during preparation and retain the original in its approved system. Review attachments, hidden sheets and comments as well as the visible first page.
Use an artificial sample to verify the result. Add a harmless reference value to an excluded field and confirm that it cannot be found in the searchable derivative or a generated citation. Document how someone can report an accidental inclusion and how the affected copy is removed. If a real secret has already been exposed, involve the responsible security owner. Removing the indexed text alone does not establish that the underlying credential remains safe to use.
13. Test hidden instructions inside documents
Treat imported documents as reading material. A supplier brochure or a comment in a manual may contain language that sounds like a request to the assistant. Its presence does not give the author authority over system behaviour. For acceptance testing, use a harmless labelled note in a synthetic document that asks the reader to print an unrelated colour name. Ask a normal question about the procedure and observe whether the answer stays grounded in the approved passage.
Keep the test away from live customer data and operational actions. A failure is an opportunity to examine document admission, the separation of instructions from evidence and the permissions available to the assistant. Record the source, expected answer and visible deviation without including private content in the defect report. An assistant intended only to explain a procedure usually has no business executing the transaction described by that procedure.
14. Create a question set with expected sources
Collect questions before showing employees the new tool. People phrase a real question differently from a writer who has just read the manual. A service clerk might ask whether an opened item can go back on the shelf; a supervisor might ask which inspection permits it. Preserve both formulations if they require different evidence. For each case record the user's role, the source that should support the answer and what action the answer should enable.
Write a short marking guide rather than prescribing a perfect sentence. A correct answer can use different words, cite the right passage and still preserve every material condition. Mark answers deficient if they omit a decisive exception, pick a superseded edition or direct the reader to a document they cannot open. Keep some questions aside during tuning. Passing only the examples used to adjust the system tells you little about how it will handle a new employee's wording.
15. Test refusal when no source exists or access is denied
Design the response to missing evidence in advance. If an invoice number or product variant changes the applicable procedure, the assistant can ask for that detail. If the relevant document has not been approved, it can explain that the available sources do not settle the question and direct the employee to the process owner. Those outcomes are more helpful than completing an answer with an apparently reasonable company rule that nobody actually adopted.
A refusal also needs a privacy check. A user without commercial access should not learn the title of a restricted contract from an explanation of the refusal. Ask the same question as a user who genuinely has the relevant role. That distinguishes a correctly restricted answer from a broken source link affecting everyone. Save the expected outcomes separately for both roles, so the team does not later loosen permissions while trying to remedy an unrelated retrieval failure.

16. Define update, deletion and re-indexing procedures
Set the order of operations for changes. When an owner approves a revised procedure, register the new edition, rebuild the affected searchable passages and check that current queries cite it. Then retire the previous edition for current work. A withdrawn document needs a quicker route. Its owner should be able to request removal from retrieval, identify derivative passages and verify that a cached response cannot still expose the withdrawn text.
Practise with a small reversible example before rollout. Change a named business condition, search for both the old and new wording and ask the original acceptance question again. Follow its citation all the way to the source page. If the new extraction is defective, decide which earlier version remains authorised before restoring it. Reverting a search index must never reintroduce a file withdrawn for confidentiality or a procedure that is no longer valid.
NCSC recommends documenting the data and model life cycle, controlling updates and retaining the ability to restore a known good state. Avots / Source.
17. Illustrative acceptance protocol for 40 documents and 24 questions
Consider an illustrative pilot with 40 documents, 24 questions and 4 roles: service clerk, warehouse operator, account manager and process owner. The team deliberately includes 6 faults: an obsolete edition, a duplicate, a missing owner, a table with a detached heading, a restricted appendix and a broken citation. These are sample design choices, not CANIMAPS client results. Each fault should lead to a visible decision about admission, retrieval or escalation.
Distribute the questions across ordinary work, borderline cases and matters outside the agreed collection. Record the answer and its supporting passage for the roles that should be able to use it. A correct refusal counts as a successful test where access is restricted. Summarise failures by business consequence instead of quoting one headline percentage. One disclosure of confidential terms can be more important to the release decision than several imperfect phrasings in an otherwise usable procedure.
At handover, give the acceptance material to a colleague who missed the demonstration. Ask them to open the case with their own permissions, locate the instruction and record whether it supports a decision. If the citation opens only the document library’s home page, log that as a separate defect. Even a correct conclusion leaves the next employee searching from scratch when they cannot find its source.
18. Assign responsibility after the knowledge base launches
After launch, give employees a place to report the question, citation and action they could not complete. The content owner decides what the procedure actually means. The technical maintainer investigates extraction or search defects. The access administrator investigates group membership, and a named business owner decides whether a problematic collection should remain available. In a small company one person may hold several roles, but each decision still needs an identifiable owner.
Review the questions that had no useful answer alongside changes to the underlying procedures. Several unanswered questions about the same component may justify adding an approved guide. Several conflicting answers from existing guides call for reconciliation first. Hand over the inventory, access rules, question set and change procedure in formats the client can maintain in its own environment. The practical endpoint is an employee following a citation to the right instruction and an owner who knows what to do when that instruction changes.
Conclusion: a reliable knowledge base starts before indexing
Return to the first question about a component delivered in an opened carton. Can a colleague signed into their own account find the current rule, open the relevant section and identify who makes the final decision? If the procedure never addresses that case, a useful answer identifies the missing information and the person who can clarify it. Keep the example for the next revision of the procedure. It will show whether the answer changed and whether the new document supports that change.