System Diagram
System Overview
R2R is built on a modular, service-oriented architecture designed for scalability and flexibility:- API Layer: A FastAPI-based cluster handles incoming requests, routing them to appropriate services.
- Core Services: Specialized services for authentication, retrieval, ingestion, graph building, and app management.
- Orchestration: Manages complex workflows and long-running tasks using a message queue system.
- Storage: Utilizes PostgreSQL with pgvector for vector storage and search, and graph search.
- Providers: Pluggable components for embedding, LLM, auth, and ingestion services, supporting multimodal ingestion and flexible model integration.
- R2R Application: A React+Next.js app providing a user interface for interacting with the R2R system.