A private AI knowledge base uses retrieval-augmented generation to answer from selected organizational documents. At request time, the system searches authorized content, supplies relevant passages to a model and returns an answer linked to evidence. It does not require the model to memorize every document.
Privacy is an operating property, not a label. It depends on identity, permissions, vendor terms, encryption, retention, logging and source governance. Reliability depends on current authoritative documents, effective retrieval, supported answers and a safe response when evidence is missing.
Choose a narrow use case
Begin with one audience and one job, such as helping employees find approved procedures or helping support agents locate current product guidance. Define questions the assistant may answer, sources it may use and decisions it must escalate. Name an accountable owner and measurable outcome.
A broad assistant connected to every drive creates permission, duplication and quality problems before value is proven. Keep the first release read-only. Exclude financial approval, external commitments, legal interpretation and record changes until a bounded information service is demonstrably reliable.
Govern the source collection
Create a register with document title, owner, authority, audience, version, effective date, review date, classification and retention. Remove superseded duplicates from active retrieval. When two sources conflict, define which one controls and route unresolved conflicts to the owner.
Improve documents before indexing. Use descriptive headings, stable sections and machine-readable text. Verify scanned pages and tables after extraction. Attach metadata that supports filtering by product, region, role, status and date. The assistant cannot repair a knowledge base nobody maintains.
Preserve permissions
Authenticate the user and filter retrieval according to source access. Do not send unauthorized passages to the model and hope a prompt will hide them. Use limited service identities, separate testing from production and review connector permissions after role changes.
Test users with different roles, departed users, shared links and documents whose permissions change. Logs should support investigation without exposing sensitive content to administrators who lack business access. The same access model must cover search results, citations, caches and exports.
Design ingestion and retrieval
Split documents around meaningful sections, preserve title and location, create embeddings and index searchable text. Tune chunk size and overlap with representative questions. Use keyword, vector and metadata retrieval together when this improves exact product names, policy terms and semantic matches.
Evaluate retrieval before generation. For each test question, record the passages that must appear. Measure whether they are found, whether irrelevant material displaces them and whether access filters work. Missing evidence should produce clarification or abstention, never improvised policy.
Generate grounded answers
Require the model to answer from supplied passages, cite title and location, distinguish policy from suggestion and state when evidence is insufficient. Show users the supporting excerpt and document date. Use deterministic checks for identifiers, links, required fields and other exact facts.
Do not force every template field to be completed. An explicit “not found in approved sources” is safer than fluent invention. High-risk topics should route to a specialist, and the assistant should never create policy by blending ambiguous or expired documents.
Evaluate and operate
Build a test set from real normal, edge and adversarial questions. Include expected evidence, acceptable answer, prohibited disclosure and correct escalation. Track retrieval recall, grounded correctness, citation validity, abstention, human correction, latency and cost.
Rerun evaluation after changes to models, prompts, documents, chunking, connectors, permissions or tools. Review failed searches as source-improvement work. Maintain incident response, release history and a tested shutdown method. Expand sources and actions only through controlled approval.
Implementation checklist
- Define scope: Choose users, questions, sources, owner, outcome and prohibited decisions.
- Inventory documents: List authority, versions, duplicates, gaps, classifications and permissions.
- Clean and structure: Resolve conflicts, extract text and add useful headings and metadata.
- Design identity: Map existing user and group access through retrieval and citations.
- Build the index: Chunk, embed and index with stable source identity and filters.
- Create answer policy: Require evidence, limitations, abstention and escalation.
- Evaluate retrieval: Test whether the correct authorized passages appear.
- Evaluate answers: Check correctness, citations, disclosure and refusal.
- Pilot read-only: Use representative staff and review every failure.
- Operate changes: Monitor, version, regression-test and review sources.
- Expand deliberately: Add a source, audience or action only after the current scope passes.
- Review quarterly: Reconfirm value, permissions, retention, vendors and ownership.
Worked example
Scope
An operations team wants staff to ask how to perform approved procedures. The assistant uses current SOPs and related policies, not email, chat or personal notes. It cannot change inventory, customer or finance records.
Source preparation
Every SOP receives an owner, version, effective date and review date. Obsolete files move outside the index. Scanned appendices are converted and checked, and duplicated regional documents receive explicit metadata.
Permission model
Warehouse staff retrieve warehouse procedures; finance content remains restricted. Managers receive cross-functional access only through existing groups. Test accounts prove the filtering before real data is used.
Answer design
A response provides a short procedure, critical exceptions, source title and linked passage. If the procedure is expired, conflicting or silent about the case, the assistant names the process owner instead of guessing.
Evaluation
The test set covers normal steps, rare exceptions, old filenames, spelling errors, conflicting versions, indirect sensitive requests and questions without evidence. Retrieval and answer results are scored separately.
Operation
Unanswered searches become a maintained content backlog. Each model, prompt and index release is logged and regression-tested. Owners receive reports for expired documents and repeated failure topics.
Operating questions
Assign a business content owner, not only a technical administrator. The owner resolves conflicts, approves versions and accepts the operational consequence of the guidance.
What happens after a document is deleted?
Define how quickly the index, caches, embeddings, logs and backups reflect deletion. Test the procedure before promising that removal from a folder removes all derived copies.
How will permissions change?
Synchronize access from a controlled identity source where possible. Role transfer and offboarding should remove knowledge access promptly and generate evidence for review.
How will users challenge an answer?
Provide a visible feedback route that preserves the question, retrieved passages and response. Route factual corrections to source owners rather than endlessly editing prompts.
What is the safe failure?
When identity, evidence or service health is uncertain, the assistant should stop, explain the limitation and direct the user to the current approved repository or owner.
Which action could be added first?
If information service is reliable, begin with a reversible action such as creating a draft task or feedback ticket. Preserve approval for messages, commitments and master-data changes.
Metrics
- Supported answers using current authorized evidence.
- Retrieval recall for required passages.
- Citation precision and link validity.
- Correct abstention when evidence is missing.
- Unauthorized retrieval or disclosure attempts.
- Human correction and escalation time.
- Documents without owners or review dates.
- Search failures caused by source quality.
Common mistakes
- Indexing every drive before defining a use case.
- Treating document presence as authority.
- Ignoring permissions during vector retrieval.
- Leaving obsolete copies searchable.
- Evaluating generation while ignoring retrieval.
- Forcing an answer when evidence is missing.
- Granting broad connector access to the pilot.
- Launching without source owners and change control.
Frequently asked questions
Is RAG the same as model training?
No. RAG supplies selected information at request time; fine-tuning changes behavior from examples. They solve different problems.
Can a provider train on private data?
Terms vary by service and plan. Verify contractual use, settings, retention, location and subprocessors rather than assuming.
How many documents are required?
Use the smallest authoritative collection that covers the task. Quality, ownership and permission are more important than volume.
What if sources conflict?
Apply documented precedence and escalate to the owner. The model should not invent a blended policy.
Can the knowledge base take actions?
Later, if the read-only service is reliable. Add one reversible, permission-limited action with approval, logging and rollback.
Production readiness review for private RAG
Use these gates after the read-only pilot and before broader access. Each gate needs evidence from the real content collection and representative users.
Source gate
Authoritative documents have owners, versions, effective dates and review dates. Superseded and duplicate copies are excluded from active retrieval. Record the owner, evidence, exception path and next review date. Test the rule with a realistic normal case and a difficult case before treating it as an operating control. If the result cannot be verified from the source record, keep the decision with a person and improve the process.
Permission gate
Role-based test accounts prove that restricted sources, passages, citations, caches and exports remain inaccessible. Record the owner, evidence, exception path and next review date. Test the rule with a realistic normal case and a difficult case before treating it as an operating control. If the result cannot be verified from the source record, keep the decision with a person and improve the process.
Retrieval gate
Representative questions return the required evidence at an accepted rate, including spelling variation, exact terms and filters. Record the owner, evidence, exception path and next review date. Test the rule with a realistic normal case and a difficult case before treating it as an operating control. If the result cannot be verified from the source record, keep the decision with a person and improve the process.
Answer gate
Material claims are supported, citations open correctly, limitations are visible and the assistant abstains when evidence is insufficient. Record the owner, evidence, exception path and next review date. Test the rule with a realistic normal case and a difficult case before treating it as an operating control. If the result cannot be verified from the source record, keep the decision with a person and improve the process.
Security gate
Service identities, connectors, administration, logging, encryption, secrets and environments follow approved controls. Record the owner, evidence, exception path and next review date. Test the rule with a realistic normal case and a difficult case before treating it as an operating control. If the result cannot be verified from the source record, keep the decision with a person and improve the process.
Operations gate
Monitoring, release history, feedback, content updates, incident response and shutdown have named owners and tested procedures. Record the owner, evidence, exception path and next review date. Test the rule with a realistic normal case and a difficult case before treating it as an operating control. If the result cannot be verified from the source record, keep the decision with a person and improve the process.
Value gate
Users find answers faster or more consistently at an acceptable correction, latency and cost level without creating a second unmaintained repository. Record the owner, evidence, exception path and next review date. Test the rule with a realistic normal case and a difficult case before treating it as an operating control. If the result cannot be verified from the source record, keep the decision with a person and improve the process.
Final takeaway
Build a private RAG knowledge base as a governed information service. Start narrow, maintain authoritative sources, preserve identity and permissions, evaluate retrieval and answers separately, require evidence and expand only through controlled releases.
Sources and further reading
- NIST AI RMF resources
- Microsoft Learn: Retrieval-augmented generation
- NIST software-agent identity and authority
