Security first
JWT authentication, role-based access, workspace authorization, prompt-injection detection, and PII redaction primitives.
Production-grade RAG reference architecture
A cloud-portable monorepo that demonstrates the complete enterprise RAG lifecycle: ingestion, indexing, retrieval, generation, evaluation, guardrails, and operations.
System topology
The application is intentionally split into independently replaceable surfaces so teams can promote the local demo to managed cloud services without rewriting business logic.
Lifecycle
The demo follows a production RAG path with explicit data ownership, retrieval diagnostics, confidence scoring, and human review routing for low-confidence answers.
Production concerns
JWT authentication, role-based access, workspace authorization, prompt-injection detection, and PII redaction primitives.
Docker Compose for the local stack with package boundaries that map cleanly to AWS, Azure, GCP, or managed SaaS services.
Health endpoints, structured logging seams, Prometheus metrics, and evaluation scripts provide operational visibility.
LLM, embedding, vector store, object storage, and model provider interfaces isolate vendor-specific code.
Explore the repo