--- title: Document AI Analyst emoji: π§ colorFrom: indigo colorTo: purple sdk: docker app_port: 7860 pinned: true license: mit short_description: Enterprise Agentic RAG β upload PDFs and chat with AI ---
| ### π€ Users - π JWT-secured register, login & email verification - π Upload **PDF**, **DOCX**, **TXT**, and **Markdown** - π URL ingestion via web crawler - π¬ Ask questions in natural language - π **Streaming AI responses** token-by-token - π Inline **source citations** with page numbers - π₯ Export chat as **Markdown, TXT, or PDF** - ποΈ Per-user complete data isolation | ### π€ RAG Pipeline - πͺ Smart **recursive text chunking** (configurable size & overlap) - π§ **Local embeddings** β no data leaves your machine - β‘ **Embedding cache** (Redis + LRU) β skip redundant computation - π **Hybrid search** β vector + BM25 merged via RRF - π **Cross-encoder reranking** for precision answers - πΌοΈ **Image caption extraction** from PDF figures - π **URL extraction** from PDF link annotations - πΊοΈ **Knowledge graph** (GraphRAG) per document | ### βοΈ Engineering - π **Async FastAPI** with SSE streaming - ποΈ **PostgreSQL** metadata + **ChromaDB** vectors - π **Celery + Redis** async ingestion pipeline - π³ **Multi-stage Docker** with CPU & GPU profiles - π **Prometheus metrics** + Grafana dashboard - π©Ί **Deep health endpoint** β DB, Redis, Celery, ChromaDB - π Rate limiting, CORS, file validation, JWT expiry - π§ͺ **Playwright** E2E + visual regression tests |