Saifullah.
← Back to work

01 / Applied AI & Knowledge Systems

Shipped

PDF RAG System

An asynchronous document-question-answering backend with OCR, traceable page citations, and confidence-based no-answer handling.

Role · Applied AI and backend development

FastAPICeleryRedisQdrantPostgreSQLPyMuPDFTesseract OCRDocker

Case study

What this project demonstrates

Built an asynchronous document-question-answering backend that connects PDF ingestion, OCR, retrieval, and cited answers to application workflows. PostgreSQL conversations and retrieval traces support investigation of system behavior; confidence-based abstention handles insufficient evidence. Dense, hybrid, and reranked retrieval were compared across 46 synthetic regression cases, with automated tests and CI gates.

Architecture

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

Engineering highlights

Outcomes

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.