Users call API Gateway with auth/API keys. Core services handle auth, users, projects, billing. AI Orchestration performs retrieval + synthesis using vector DB and cache. Document ingestion uploads files, stores metadata, indexes vectors. Billing emits events for async processing.
Nodes
User, External API Client, Next.js Web App, API Gateway, Auth Service, User Service, Project Service, Billing Service, AI Orchestration Engine, Retrieval Engine, Response Synthesizer, Document Ingestion Service, Embedding Generator, Cache, Vector DB, Postgres, File Storage, Event Bus (Kafka/Queue)
Edges
user → web_app, external_api → api_gw, web_app → api_gw, api_gw → auth, api_gw → user_svc, api_gw → project_svc …