Hi Jose. You can use Auth0 Fine-Grained Authorization (FGA) to model user permissions of the documents used by your RAG pipeline, and filter out any documents the user doesn’t have access to at runtime when a query is made. Integrating Auth0 FGA into your RAG pipeline ensures that every document is checked against the user’s permissions before it’s passed to the LLM.
Here is an overview of how the process works: Authorization for RAG - Auth0 for AI Agents
And be sure to check out these quickstarts to easily implement authorization into your RAG pipeline: Authorization for RAG Quickstart - Auth0 for AI Agents