Skip to content

Architecture Diagram

InspectRAG Architecture


Overview of the Architecture

The InspectRAG architecture demonstrates how different components integrate to provide secure access to documents and efficient role-based querying. Here’s a breakdown of the flow:

  1. User Authentication: Users log in via OpenID, which integrates with Windows Active Directory (AD) or Azure AD to fetch users, roles, and group memberships.

  2. Fetching Files and Permissions: Files and their permissions are accessed from SharePoint via webhooks and event receivers.

  3. User Roles and Permissions: OpenID ensures the user’s roles are matched with SharePoint access roles to control access and querying permissions within InspectRAG.

  4. Query Execution: Once authenticated, the user can issue queries to InspectRAG. Queries related to files are verified against permissions before access is granted.

  5. Asynchronous Task Handling: Celery queues and processes tasks efficiently, ensuring the system remains responsive even when handling large workloads.

  6. Storing File Embeddings: File embeddings, along with metadata such as roles, permissions, and creators, are stored in the VectorDB. This allows fast and accurate querying for users with appropriate access.