Skip to content
Convertto

Chat with a PDF — Ask Questions, Get Answers With Page Numbers

Ask questions about any PDF and get answers with the page each one came from. The model runs in your browser — the file is never uploaded.

Chat with PDF reads a PDF in your browser, splits it into passages, indexes them with a sentence-embedding model, and answers your questions from the passages closest to what you asked — showing each passage and its page number beside the answer. The whole pipeline, retrieval and answering alike, runs on your own device, so the file is never uploaded and no API key or account is needed. It answers questions whose answer is stated in the document, and says it cannot find it rather than guessing when it is not.

Runs in your browser
Accepts
PDF with a text layer. Scanned pages need OCR first
Citations
Every answer shows the passages and page numbers it came from
Uploads
None — parsing, indexing and answering all happen in your browser
Cost
Free, with no API key, account or per-question charge
Privacy
Runs entirely in your browser — nothing is uploaded

Frequently asked questions

Why does it say my PDF has no text?

Because it is a scan — a photograph of pages rather than a document. There is nothing to read and no amount of indexing will help. Run it through the PDF OCR tool first to add a text layer, then chat with the result.

Can it tell me which page an answer came from?

Yes, and it always does. Passages keep their page number through splitting and indexing, so every answer arrives with the page and the exact text it was drawn from. A local model of this size is wrong often enough that an answer you cannot check is not worth much.

How large a PDF can it handle?

A few hundred pages is realistic on a laptop. Indexing time grows with length — it is roughly linear, at a second or two per ten pages once the model is loaded — and it all happens once, before the first question. Very long documents are better split first.

Is my document uploaded anywhere?

No. The file is read, split, indexed and answered entirely inside this browser tab. The only thing downloaded is the model itself, from Hugging Face, and that happens once and is then cached. Nothing about your document goes the other way — which is the point of using this rather than a service on a contract, a payslip or a medical letter.

How does it answer questions about a document too long for the model to read?

The document is split into passages and each one is turned into a vector that captures its meaning. Your question is turned into a vector the same way, the closest few passages are found by comparing them, and only those passages are given to the answer model. This is the same retrieval-augmented approach the hosted services use; the difference is that here the retrieval and the answering both happen on your device.

How accurate is it?

It is a model between 65 and 400 megabytes, which is one to four orders of magnitude smaller than a hosted assistant. It is good at pulling out a fact that is stated plainly in one place and much weaker at questions requiring several parts of the document to be combined, or at anything needing judgement. That is exactly why the passages behind every answer are shown with it — the answer is a shortcut to the right paragraph, not a substitute for reading it.

What happens if the document does not contain the answer?

It says so rather than inventing one. Two separate checks make that possible: if no passage is even topically close to the question, the question is never put to the model at all, and when the extractive model is used its confidence is thresholded, because that model always returns its best guess and only its low confidence distinguishes a guess from an answer.

Do I need an API key or an account?

Neither. There is no key to obtain, no sign-up, no quota and no per-question cost. The trade is that the models are small enough to run on your own hardware, and answer quality reflects that.

Does it work offline?

After the first run, yes. The model is cached by the browser, so a second visit works with no network at all. The first visit has to download it.

How to use the chat with pdf

  1. 1Select your pdf file — the file stays on your device and is never uploaded.
  2. 2Enter or paste your question.
  3. 3Choose the answer model.
  4. 4Press Run, then download the result when it is ready.

Sources & specifications

Embed this tool

Put the working chat with pdf on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.

Share this tool

Last updated

More on-device ai