Saifullah.
← Back to work

01 / Flagship Engineering

Shipped

PDF RAG Chatbot

Secure async document intelligence with hybrid retrieval, OCR, abstention, and grounded citations.

FastAPICeleryRedisQdrantPostgreSQLPyMuPDFTesseract OCRDocker

Case study

What this project demonstrates

Built as an infrastructure-complete RAG backend rather than a chat demo. The system treats ingestion, retrieval quality, confidence calibration, document security, citation validity, and regression testing as first-class engineering problems.

Architecture

PDF validation → async queue → extraction/OCR → structure-aware chunks → embeddings → Qdrant + lexical retrieval → fusion/reranking → confidence gate → grounded generation → validated citations

Engineering highlights

Boundaries / limitations

Evaluation is repository-defined and domain-dependent; OCR and layout heuristics are bounded by configured limits and do not imply universal document understanding.