Filter by access rights before the model
A poorly designed RAG system can show one customer another customer's documents, and that kind of leak is a security incident, not a display bug. The lesson helps a PM specify access control for RAG, place the filtering step in the pipeline, and ask the right questions about how the architecture protects data.
Lesson objective
By the end of this lesson, you will be able to specify a RAG system's access filtering (where rights come from, where the filter applies, how rights stay in sync) and to reject an architecture whose security relies on the prompt.
Topics covered
- RAG access control
- RAG security
- multi-tenant isolation
- AI data leakage
Where it fits
Access rights and freshness
How do you guarantee that each user only reads what they are allowed to see, in its current version?
Lessons in this module
- Filter by access rights before the model (this lesson)
- Keep the index up to date
What you will learn in the course
This lesson is part of the course Design a RAG architecture that fits your product
- Choose, for an information need, between long context, data injected by the application, RAG and fine-tuning, and justify the choice by volume, update frequency, access rights and cost.
- Specify the source inventory, exclusions, the metadata to capture and the document chunking strategy.
- Design retrieval: semantic, keyword or hybrid search, reranking, contextual retrieval, number of passages and relevance threshold.
- Specify the answer grounded in sources, how citations are displayed, how conflicting sources are handled and what happens when nothing is found.
- Specify access filtering before the model reads any passage, and index freshness (resync, deletions, versions).
- Build a set of 30 test questions that covers RAG failure modes and diagnose which stage caused a wrong answer.
- Estimate the cost items of a RAG system and choose between a hosted tool, a managed knowledge base, a vector database and a custom build.
Related courses
- Build an AI assistant for your productAdvanced · ~3 hr
- Evaluate an AI feature: test sets, metrics and LLM judgesAdvanced · ~3 hr
- Ship and monitor an AI feature in productionExpert · ~3 hr