Architecture Overview
flowchart LR
App[Mobile and web app] --> API[Gateway API]
API --> DB[(Postgres + pgvector)]
API --> Store[(Object storage)]
API --> LLM[Language model]
App --> CDN[CDN for documents]
CDN --> Store
- Apps: Expo (React Native) mobile app and a Next.js website.
- Gateway: FastAPI service for ingestion, search, and the assistant.
- Retrieval: hybrid search over pgvector embeddings. Answers cite local anchors in the source text.
- Documents: served through a CDN edge, not through the API.