Architecture
System Overview
ImplementedSita is three memories on three services. The browser never calls FastAPI directly; a Next.js BFF proxies every request.
AS-IS
Web, API, worker, Postgres, Redis, Neo4j, R2, Clerk, optional OpenAI. Docs-app is a fourth deployable service.
TARGET
Same topology plus pgvector, a GNN service, and a manufacturer catalogue pipeline — none of which exist as running code.
Why this exists
Why this exists
Architecture
AS-IS / TARGET
AS-IS
- Org is a Clerk claim; no organisations table.
- Projects exist in Postgres (post Phase 1).
- Reference data is in-process synthetic JSON.
- GNN routes stub 404.
TARGET
- pgvector partitions per domain.
- Learned semantic model with a hash-identified checkpoint.
- Real EPD / cost / code corpora.
- Manufacturer PDF pipeline.
Implementation
- services/web
- services/api/app/main.py
- services/worker