flowchart LR api("FastAPI API
Internal query, answer, and job routes") worker("Worker
Claims and executes durable runs") db[("PostgreSQL + PgVector
Checkpoints, graph, vectors, HNSW")] stages("Numbered stage modules
Normalize through answer") llm("OpenAI-compatible provider
Chat and embeddings") api -->|"dispatch"| worker worker -->|"execute"| stages stages -->|"persist/retrieve"| db stages -->|"prompts/vectors"| llm api -->|"status and query"| db classDef application fill:#dae8fc,stroke:#6c8ebf,color:#000; classDef storage fill:#d5e8d4,stroke:#82b366,color:#000; classDef external fill:#fff2cc,stroke:#d6b656,color:#000; class api,worker,stages application; class db storage; class llm external;