rag-aio — Modular RAG Platform
PROBLEM
Building production RAG systems requires stitching together document ingestion, OCR, chunking, embedding, retrieval, reranking, and generation — leading to vendor lock-in, opaque pipelines, and heavy framework dependencies.
ARCHITECTURE
- 18 independently testable/deployable packages in a uv workspace monorepo
- Protocol-based contracts: OpenAI-compatible providers, Qdrant/SQLite/InMemory stores
- Fully offline mock profile runs end-to-end with zero services and zero API keys
- Lazy loading: `import rag_aio` stays dependency-light; heavy backends load on demand
- Secrets by reference (env-var names), never values; redacted in logs, traces, and UI
- Stage timings on every answer, citation provenance, explainable retrieval and reranking
- Bulk ingestion with bounded queues, per-stage concurrency, checkpoints, and dead letters
- Built-in Streamlit management console for monitoring and experimentation
IMPACT