Retrieval & RAGintermediate13 min · 9 steps
Access Control & Compliance
A RAG system will happily retrieve anything it indexed. Govern it with layered controls: roles and attributes, permission-aware retrieval, tenant isolation, data residency and the industry frameworks that demand them.
requesterrordataresponsesignal
ProblemStep 1 of 9
Retrieval doesn't know who is asking
A support agent asks the internal assistant “what's the salary band for senior engineers?”. The HR compensation spreadsheet was indexed along with everything else, it is the nearest match, and the model quotes it.
Nothing was hacked. The system did exactly what it was built to do — find relevant text — with no idea that this user may not see it. RAG governance exists to close that gap.
Watch outAn LLM instruction like “don't reveal HR data” is not access control. Once a chunk is in the prompt, assume it can come out.
Lesson 34 of 37 in Retrieval & RAG