Skip to content
Giminger ConsultingDE

Which sources can retrieval use for each role?

Key takeaway

Define permissible sources for each identified user role. In retrieval-augmented generation, or RAG, retrieved passages inform the answer, so they must pass access checks before retrieval results are used.

Lessons in this path
  1. Which sources can retrieval use for each role?
  2. Why evaluate retrieval separately from the answer?
  3. How do you verify a document update reached answers?

How to do it

Record system, owner, region, valid revision and access group for each source. Test revoked access and expired revisions. If access cannot be determined, omit that source from the response.

What matters in practice

Review indirect hints in document titles and reference paths too. After access is revoked, test again after the expected update window. Use the actual response under the affected role as evidence.

Example: A fictional scenario

A French employee gets the local travel policy. A draft from another country appears neither as a passage nor as a filename.

Common mistakes

  • Filtering visibility after generation and leaving references in the answer.

Frequently asked questions

Is a prompt instruction enough?

Enforce access in retrieval and data services. Text instructions cannot substitute for authorization.

Try it yourself

Build a test matrix for two roles, two regions and one deliberately revoked permission.

Check your result

Retrieval returns only permitted and applicable sources. The test record includes role and source version.

Official documentation and sources

Practical guides and references