What does an AI knowledge base actually do?
Retrieval-augmented generation, or RAG, finds relevant material and supplies it as context for an answer. That is the basic approach described in Anthropic's explanation of retrieval. For a company, the material might be product guidance, approved procedures or project documentation.
The business question is more specific than whether the chatbot can read a folder. Which employee should receive which answer, based on which version? Start with one useful knowledge task, such as helping support colleagues find approved troubleshooting steps. Keep the first release read-only, with a named document owner.
Where should document permissions be enforced?
Put permission checks in the retrieval service, using the authenticated caller's identity. Microsoft describes both native document access controls and an application-managed security-filter pattern. In the latter, a filter compares stored identity values; it does not authenticate the person. The application must supply trusted identities and enforce filtering on every query.
Our recommended design is to deny a request when identity or permissions cannot be established. A browser parameter saying “finance” must not make someone a finance user. Similarly, an instruction inside a document must not change its access rules. Test these boundaries through the service API, not only through buttons in the interface.
Consider a hypothetical consultancy. Everyone may read the project-delivery handbook, while only a particular client team may read that client's agreement. Asking for “our standard cancellation terms” should not quietly pull a confidential exception from the agreement into a company-wide answer.
Which information should travel with each passage?
Use a small, explicit document record. The following is a suggested implementation checklist, not a universal platform schema. Keep access metadata under the control of your identity and document systems; do not ask a language model to infer who is authorised from the prose.
| Record | Purpose | Review question |
|---|---|---|
| Source ID and section | Trace an answer back to evidence | Can a reviewer open the exact passage? |
| Permitted users or groups | Apply the access decision | Who supplies and updates these values? |
| Version and effective date | Select the applicable guidance | Is this approved for the date being asked about? |
| Owner and review date | Resolve gaps and outdated guidance | Who can confirm the answer? |
| Sync status | Detect a lagging copy | Have the latest changes reached search? |
Microsoft's document-level access documentation stresses preserving permission metadata through supported chunking. It also describes source-specific synchronisation limits: revocation is not necessarily immediate. Check the actual connector and configuration before promising that changing a folder permission instantly updates the assistant.
How do you keep answers current?
Track content updates and permission changes separately. A policy may remain word-for-word identical after an employee loses access. Conversely, a new policy version may be available to the same people. Each event needs an owner, a propagation target and a way to detect failures.
AWS's synchronisation guidance explains that source changes must be synced into a Bedrock knowledge base; incremental runs process added, changed and deleted documents. It also notes that query visibility can lag a completed ingestion. Treat a successful job as a checkpoint, then test the changed content through retrieval.
Metadata can help choose the right material. Bedrock's query configuration includes filtering by document attributes, including modification time. In your own design, distinguish “recently uploaded” from “currently effective”: uploading an old handbook today should not make it the authoritative policy. Do not silently discard historical versions when someone explicitly asks about an earlier period.
Can better retrieval fix poor access control?
Better retrieval helps find the right passage within the allowed collection. Anthropic describes adding context to individual chunks and combining meaning-based search with exact-term matching. Those techniques address relevance; they do not establish a reader's entitlement.
Choose your test questions accordingly. Include abbreviations, product codes, vague wording and two procedures with similar names. First verify that results stay inside the permitted collection. Then inspect whether the selected passage actually answers the question. Increasing the number of retrieved passages is not a substitute for either check.
When should the assistant decline to answer?
Define useful behaviour for missing evidence before launch. With no permitted source, return a neutral explanation and an approved route to help. Avoid revealing the names or contents of restricted documents. With conflicting approved sources, show the conflict where permitted and ask the owner to resolve it. With an ambiguous question, ask for the missing detail.
For a hypothetical support handbook, “What is the replacement policy?” might need a product and purchase date. A confident generic answer could be less useful than that short clarification. Also test whether a citation genuinely supports the adjacent statement. A clickable source is evidence to inspect, not proof that the whole answer is correct.
What should a pilot prove before wider rollout?
Agree acceptance criteria with the people who own the documents and the access policy. A practical pilot should include these tests:
- Ask the same question as an authorised employee and an unauthorised colleague.
- Remove a test user's access and check fresh searches, old conversations and cached answers.
- Replace a source with a new version and confirm which version is retrieved.
- Delete a test document and verify that its passages and citations disappear as intended.
- Ask questions with no supported answer and inspect refusals or clarifications.
- Check that logs, exports and support tools do not expose material to a wider audience.
Record supported-answer rate, permission-test failures, correct abstentions, source-update delay and review time. Define each denominator: an answer-quality score from easy public questions says little about restricted material. Treat any confirmed unauthorised disclosure as a release blocker for the affected path.
Give someone responsibility for failed synchronisations and reported bad answers after launch. Review the question set when the corpus, connector, retrieval settings or model changes. For the wider delivery process, see our AI application checklist.
How ValidVibe can help
Our AI assistants and integration services can help scope a knowledge search pilot around your documents, users and approval process. Discuss one knowledge task with us to define the source collection and the tests a first release should pass.
FAQ
Is RAG the same as training a model on company documents?
No. A retrieval workflow supplies selected material when answering a question. Fine-tuning changes model parameters through a training process. For a knowledge pilot, begin by specifying the evidence and permissions you need, rather than assuming training is required.
Can a system prompt protect confidential files?
Use prompt instructions to guide the answer, but enforce access outside the model. The assistant should not receive a confidential passage for an unauthorised request in the first place.
Will changing a SharePoint permission immediately change search results?
Do not assume so. Verify the connector's permission refresh behaviour, identity caches and your application's own cache handling. Test revocation end to end and document the observed delay.
What is the best first document collection?
Choose a limited collection with clear ownership, reliable permissions and recurring questions. Approved product or operational guidance is a practical candidate. Exclude material whose ownership or access rules are still disputed.
Sources
- Microsoft: document-level access control
- Microsoft: security-filter pattern
- AWS: query and retrieval configuration
- AWS: knowledge-base synchronisation
- Anthropic: Introducing Contextual Retrieval
About the author
ValidVibe Team writes practical guides to AI assistants, business automation and integration. The checklist above is a proposed design and review approach; the consultancy examples are hypothetical.
