Document Summarizer
~50% lower latency · 99% factual consistency
Production-grade, multi-strategy document summarization platform. Upload a PDF, DOCX, TXT, Markdown, HTML file or URL and get a structured summary streamed live, with automatic strategy routing (Stuff / Map-Reduce / Refine / Recursive), PII scanning, and LLM-as-judge faithfulness scoring.
Problem
Long documents need summaries that stay faithful to the source, whatever the format or length.
Approach
- Upload PDF, DOCX, TXT, Markdown, HTML or a URL
- Automatic strategy router: Stuff, Map-Reduce, Refine and Recursive
- PII scanning before summarization
- Summary streamed live over SSE, scored by an LLM-as-judge for faithfulness
- FastAPI, Celery, Next.js 14 and LangChain with JWT auth
Screens









Results
- ~50% lower latency
- 99% factual consistency
Stack
- FastAPI
- Next.js 14
- LangChain
- ChromaDB
- Celery
- SSE
By Muzammil Nawaz Khan, AI Engineer.