TL;DR: RAG pipelines can expose unauthorized documents when access control waits until after reranking, Protecto says. Candidate filtering has to happen before precision scoring so sensitive context never reaches the ranking step.
Editorial analysis by NHI Mgmt Group, based on content published by Protecto: “Why Is a Reranker Needed in RAG If We Have a Retriever?”.
Key questions
Q: Why can a high-precision reranker still create data exposure risk?
A: A reranker improves relevance, not entitlement.
Q: What breaks when retrieval returns more documents than the user should see?
A: The candidate set becomes the exposure surface.
Q: How should teams place access controls in a two-stage RAG pipeline?
A: Access controls should sit between the retriever and the reranker, after candidate generation but before relevance scoring.
Practitioner guidance
- Implement retrieval-stage authorization gates Apply per-request policy checks after initial retrieval but before reranking so only authorised candidates can be scored.
- Mask sensitive values before indexing Redact or contextually mask PII, PHI, PCI, and similar identifiers before chunks are written to the vector store.
- Log every retrieval and filtering decision Record what was retrieved, what was removed, and what entered the context window so reviewers can reconstruct exposure paths.
Bottom line: RAG pipelines create a distinct governance problem when retrieval and ranking are treated as one step instead of two.
Glossary terms: Retriever, Reranker, Candidate Set, Context Window
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Retrieval and reranking are governance stages, not just model stages. The article correctly separates recall from precision, but the more important lesson is that each stage changes the trust boundary. Retrieval expands the candidate set, while reranking decides what gets elevated into the model context, so the control model must follow that sequence. For identity teams, this is the same design problem seen in other policy-sensitive pipelines: the system must decide what a request is allowed to touch before it decides what is most relevant. Practitioners should treat the boundary between stages as a governance checkpoint, not an implementation detail.
A question worth separating out:
Q: How can organisations tell whether RAG access controls are working?
A: They should be able to show that unauthorized documents are removed before reranking, and that audit logs capture each retrieval, filter, and context-window decision. If the system cannot prove which candidates were blocked before ranking, then the control boundary is probably in the wrong place. Effective governance is visible in the retrieval audit trail, not just in final answer quality.
👉 Read our full editorial: Why reranker placement matters for RAG access control