PDF chat
pdf.js reads the text of the PDF in this browser, a small multilingual model finds the passages that fit your question, and the chat model answers from them with page numbers. Scanned PDFs need Text from pictures first. The file never leaves your device.
How it works
- Open a PDF: its text is read in this browser
- The passage finder and the chat model download once
- Ask a question; each answer names its pages
Questions
Is the PDF uploaded?
No. pdf.js reads it in this tab and both models run here. The meter on the page counts every request while it works; the only downloads are the models and pdf.js character maps.
Why did it say the document does not say?
It answers only from the five passages that fit your question best. Ask with the words the document uses, or ask about one section at a time.
My PDF is a scan
A scan has no text layer. Run it through Text from pictures first.
Is my file uploaded?
No. The model is downloaded to this browser once and the work happens here. The meter at the top counts every byte this page sends while you work.
Why is the first run slower?
The first time, the model downloads from Hugging Face and is stored in this browser. After that it loads from the device, even with Wi-Fi off.