Enterprise AI implementation guide

Enterprise RAG Knowledge Base: Retrieval, Permissions and Evaluation

How to build a RAG knowledge base for enterprise documents with source governance, permission-aware retrieval, citations and repeatable evaluation.

Direct answer

Why is uploading documents to a model not enough for an enterprise knowledge base?

A production system must determine which material is valid, who may access it, how the right passages are retrieved, how sources are shown, and when an answer should be refused or reviewed. RAG combines retrieval and generation; it does not replace content quality or business rules.
01

Govern the source material before choosing a model

Policies, manuals, project files and support scripts often contain duplicate versions, outdated content and different access levels. Start by defining ownership, validity, update time and scope.

If source material conflicts, even accurate retrieval cannot reliably determine which document is authoritative.

  • Catalog material by department, workflow and confidentiality
  • Retain version, publication date, expiry date and owner
  • Remove scan noise, duplicate headers and irrelevant attachments
02

Retrieval quality sets the ceiling for answer quality

Chunk size, heading hierarchy, table handling and the combination of keyword and vector retrieval all affect recall. A few demo questions are not enough; use real business questions as a repeatable evaluation set.

Evaluation should cover source recall, factual consistency, accessible citations and refusal behavior—not merely fluent wording.

03

Permissions must apply before retrieval

An enterprise knowledge base should not retrieve everything and then ask the model not to disclose it. Identity, department, project and record-level permissions must filter retrieval, with access and citation logs retained.

  • Separate public, internal and sensitive material
  • Reuse existing identity and organization permissions
  • Add confirmation for export, sharing and high-risk answers

Recommended practice · hypothetical investigation

Investigating an answer that cites an outdated policy

Suppose a knowledge base contains both current and superseded travel policies. An employee asks for the current reimbursement rule, but the answer cites the old version. This sequence helps isolate the issue before changing the prompt:

  1. 01

    Check sources and access first: record each policy’s owner, version, effective status and audience. Filter by employee identity, department and document scope before retrieval. Archived versions should not compete in a “current policy” search.

  2. 02

    Reproduce the question and inspect the retrieval trace: keep the redacted query, role, filters, candidate document IDs and versions, and final citation. Check whether the current version was ingested and retrievable before investigating why the old one ranked.

  3. 03

    If the old policy is still marked effective, fix metadata and rebuild the index. If the current policy exists but is not retrieved, inspect OCR, heading-based chunks, keyword and vector recall. A prompt asking for newer sources does not repair bad metadata or filters.

  4. 04

    Regression-test with fixed questions: an authorized employee should get the current version with an openable citation; an unauthorized account must not see the passage or answer; missing evidence should lead to uncertainty and human review. Record the knowledge version and result for the next update.

This redacted hypothetical scenario and its checks explain a recommended method. They are not an incident report or evaluation result from a delivered Leadpeng project.

Pre-project checklist

  1. 1

    Define the first users and frequent questions

  2. 2

    Identify authoritative versions of source material

  3. 3

    Confirm integration with existing identity and permissions

  4. 4

    Prepare real questions and reference answers

  5. 5

    Define citation, refusal and human escalation rules

Apply the checklist to a real project

We can review the workflow, data, integrations and acceptance criteria before choosing a model or implementation path.

Discuss the project