PDF Chat

Ask a PDF what it actually says

Upload a document and ask questions about it. Answers are built from the passages that were actually retrieved, and each one cites the pages it came from, so you can check it rather than trust it.

The document workspace: a PDF on the left, and a chat answer on the right citing the pages it came from.

How it works

Hybrid retrieval, then reranking
Each question runs as a keyword search and a vector search at the same time. The two rankings are fused, then a reranking model reorders what survives. Embeddings alone are weak on exact strings like names and part numbers, and keyword search alone misses paraphrased questions. Running both covers each other's failures.
Extraction that understands layout
Documents are parsed into markdown rather than a flat text dump, so tables keep their rows and multi-column pages read in the right order instead of interleaving. Page numbers survive chunking, which is what makes the citations clickable.
Secure uploads
The browser uploads straight to blob storage using a write-only credential the server issues for one specific object, valid for fifteen minutes. It cannot choose where its bytes land or read anything back, and the server checks size and file type before any billable work starts.
Containers, not serverless functions
Parsing and embedding a long PDF takes ten seconds or more, which is uncomfortable against a serverless execution limit. Running as a container removes the ceiling, and scaling to zero means an idle app costs nothing.

Built with Next.js, TypeScript and tRPC on Azure AI Search, Azure OpenAI, Document Intelligence and Container Apps. The source and architecture notes are on GitHub.