Back to Blog
Strategy · Enterprise RAG

Article · Data & AI

Enterprise RAG: how to evaluate retrieval, sources, permissions and citations before a pilot

A guide to scoping tasks, assessing retrieval and answers, enforcing permissions and checking citations in enterprise RAG systems.

A well-written answer does not, by itself, show that an enterprise RAG system retrieved the right source, respected permissions or supported its claims with evidence. Before assessing generated text, check whether the system found relevant content and whether that person was allowed to receive it. RAG—retrieval-augmented generation—combines a search over data or documents with a language model. This can make private or updated knowledge available without incorporating it into the model’s training. It does not make every answer correct, replace source governance or determine who may see each document. A pilot starts with a bounded question: which task will it support, who will use it, which sources will it consult, and what are the consequences of an incomplete or incorrect answer?

Sources consulted: [1][2]

1. Define the task and corpus

Choose a specific workflow, its users and the kind of question it should answer. Also record what is outside scope: decisions requiring human judgment, requests without authorized documentation, or actions the pilot must not perform.

For each source, identify its owner, subject-matter authority, authorized audience, version, update status, format and retention policy. Check for duplicates, conflicting documents, tables or attachments that lose context during extraction, and files with no owner. An index may quickly return an outdated or incomplete passage; faster search does not fix the state of the original document.

Define how to identify the current version when documents conflict and how content will be removed or re-indexed. Internal policies, operating instructions and reference materials may require different rules. No single configuration is suitable for every corpus.

2. Treat preparation and retrieval as parts of the system

Heterogeneous content needs to be extracted and split into passages that preserve meaning. Headings, tables, footnotes, identifiers and hierarchy may matter for accurate retrieval and citations. Chunk size, metadata enrichment, the embedding model and the choice of text, vector or hybrid search should be tested on data representative of the task—not selected only by preference or a single demonstration.

Record ingestion and indexing settings, including exclusions, parser version, chunking strategy, metadata and search parameters. This helps reproduce an evaluation when sources or the index change. Preparation, chunking, enrichment, embeddings, retrieval and evaluation each involve their own decisions.

Sources consulted: [3]

3. Enforce authorization on every retrieval

In a corporate environment, filtering after the model has received the context is too late. Authenticated identity and authorization rules need to reach the document retrieval layer. Restrict results before sending context to the model, on every search and every retrieval step that may occur during a conversation or agent run.

Test with representative identities and groups, including negative cases: someone without access must not receive the content, a citation or a summary derived from a restricted document. Check unit and sensitivity filters when applicable. Record what was accessed and under which service identity, according to the organization’s audit policies.

The architecture may use storage isolation, platform controls, filters or an API layer that enforces the rules. The choice depends on the tenancy model and environment requirements. Authentication, authorization, filtering at retrieval time and isolation tests are distinct controls.

Sources consulted: [4][5]

4. Separate retrieval quality from answer quality

Build a test set with real or representative questions, reference documents and, where possible, human judgments of the expected passages’ relevance. Include direct questions, alternative terms, ambiguous queries, information spread across multiple documents and questions with no answer in the corpus. The set should reflect intended use, not only examples where search already works.

Evaluate retrieval first: do the right documents appear in a useful position? Are there irrelevant passages, gaps or old sources? When relevance labels exist, ranking and coverage measures can help compare configurations. Without them, careful qualitative review can still find failures, but it should not be described as a universal benchmark.

Then assess the final answer across distinct dimensions: relevance to the question, support in retrieved context, completeness against the expected answer and citation fidelity. An answer can be relevant yet contain an unsupported claim; it can also be well-grounded but omit an important condition. Automated metrics and model-based evaluators help organize comparisons, but should be interpreted alongside examples and human review.

Document the questions, corpus version, retrieval configuration and acceptance criteria before comparing changes. Product, data and use-case risk owners should define thresholds. Vendor examples are not automatically suitable targets for an organization.

Sources consulted: [6][7]

5. Make every citation verifiable

A citation is useful when it leads to an authorized, identifiable source—such as a document, version and section—and the passage actually supports the associated claim. Test whether the interface preserves the reference to the original document, whether the recipient can open that source and whether the claim remains accurate when quoted out of context.

Check for missing citations, broken links, duplicate sources, changed documents and claims supported only by a related but inconclusive passage. A link does not prove that an answer is correct. When the evidence does not support a claim, the system should make that limitation clear.

Sources consulted: [1][5]

6. Define when not to answer

Include cases where the answer is not in the sources, documents conflict, permissions prevent access or retrieval provides insufficient context. Assess whether the system signals the limitation, asks for clarification or routes the question to an owner instead of filling the gap with an inference presented as fact.

Test the abstention policy alongside answer usefulness. A system that never takes a risk may fail the pilot’s purpose; one that always answers may hide missing evidence. The balance depends on task criticality and should be approved by process owners.

RAG does not eliminate hallucinations or replace quality, security or review controls. Even with retrieved context, a model may answer incompletely or make unsupported claims.

Sources consulted: [2][6][7]

7. Consider operations, cost and change

Retrieval adds components, processing, latency and maintenance to the generation flow. Ingestion, index updates, embeddings, context volume and search strategy also affect behavior and cost. Record these signals during evaluation and compare options against the use case’s objectives and constraints rather than setting generic targets.

A pilot should make clear how source changes will be detected, test questions and examples reviewed, regressions identified and ownership assigned for access or content incidents. Approval of a prototype does not replace the operational planning needed before broader use.

Sources consulted: [2][3]

Decision discussion checklist

Use these questions to structure the evaluation. They do not guarantee that a solution is ready for production.

  • Are the task, its users and its boundaries defined?
  • Do the sources have identifiable owners, versions and update rules?
  • Are identity and permissions enforced before context reaches the model?
  • Does the test set include representative questions, including unanswerable and access-denied cases?
  • Are retrieval, answer quality, grounding, completeness and citations evaluated separately?
  • Do citations lead to current evidence the authorized person can access?
  • Can the system recognize insufficient context or conflicting sources?
  • Have cost, latency, updates, auditing and operational ownership been considered?

Question for your context

Which sources and permissions need to be clear before testing RAG on a real task?

Sources consulted

  1. [1] Microsoft Foundry — RAG and indexes

    Related content: Retrieval flow, grounding, sources, citations, security and RAG limitations.

  2. [2] IBM Think — what is RAG

    Related content: Concept, workflow, external sources and the caveat that RAG does not make a model infallible.

  3. [3] Microsoft Azure Architecture Center — design and develop a RAG solution

    Related content: Phase-specific decisions, preparation, chunking, enrichment, embeddings, retrieval and evaluation.

  4. [4] Microsoft Azure Architecture Center — secure multitenant RAG

    Related content: Identity, authorization, per-query filtering, isolation and access logging.

  5. [5] Microsoft Security — input, context and retrieval hygiene

    Related content: Security controls for input, context and content retrieval.

  6. [6] Microsoft Foundry — RAG evaluators

    Related content: Separate retrieval and response evaluation, with examples of dimensions and metrics.

  7. [7] Microsoft Azure Architecture Center — end-to-end LLM evaluation

    Related content: Answer-quality dimensions and a structured evaluation approach.

01Takeaways

An idea that can shape the next decision.

A guide to scoping tasks, assessing retrieval and answers, enforcing permissions and checking citations in enterprise RAG systems.

Define the task, users, authorized sources and consequences of an incorrect answer.

Enforce identity and permissions before providing context to the model.

Assess retrieval, answers, citations and abstention as distinct dimensions.

Article · Data & AI

Bring the topic into your context.

An initial conversation helps connect the concept to your environment’s priorities, dependencies and capabilities.

Talk to an expert