Skip to content

Saketh1702/authorization-for-RAG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Authorization for RAG with Okta FGA

Authorization for RAG ensure that users can only access documents they are permitted to view. By enforcing strict access controls during the document retrieval process, it prevents unauthorized data exposure and maintains data security. For more information, refer to the documentation.

How It Works

  1. User Query: A user submits a query requiring information retrieval.
  2. Document Retrieval: The system employs a retriever to search its vector store for documents relevant to the query.
  3. Authorization Check: Auth0 FGA verifies the user's permissions, filtering out any documents the user is not authorized to access.
  4. Response Generation: Based on the authorized documents, the system generates a response tailored to the user's access level.

Diagram

Below is a high-level workflow:

Examples

Explore the following examples demonstrating the integration of Okta FGA with LangChain and LlamaIndex retrievers:

  • LangChain with FGARetriever:
    An implementation showcasing how to wrap a LangChain retriever with FGARetriever to enforce authorization checks during document retrieval.
    View Example

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors