Semantic search inside a PDF
Searching for “liability for delay” in a contract when the text actually says “failure to meet deadlines shall bind the provider”: keyword search fails, meaning-based search finds. The tool indexes your PDF text into passages, vectorizes them with a multilingual embedding model running on your device — Transformers.js, downloaded once (about 115 MB) then served from the browser cache — and ranks the passages closest to your query, even with zero words in common. Under the hood, each page’s text is sliced into overlapping passages of about 500 characters — enough to keep a sentence’s context — then each one is compared to your query by cosine similarity. Up to eight passages come back, at most two per page, so a single dense page cannot monopolize the results. The document and your queries never leave the browser: a real difference with cloud AI assistants, which need the file on their servers to answer. Use cases: questioning a long agreement, exploring technical documentation, finding “the passage that talks about…” without remembering its wording, reviewing a policy before signing. The search works in natural language — phrase your need as a question (“what are the late-payment penalties?”) rather than guessing keywords. Honest limits: indexing needs real text, so a scan requires OCR first; and ranking is relevance-based — always open the flagged passage to confirm the context.

FAQ
What gets downloaded?
An embeddings model (~115 MB) from Hugging Face, once only, and only if you enable AI search. It is then served from the browser cache — no further download afterwards.
Is the PDF sent anywhere?
No — text extraction, vector computation and passage ranking happen entirely on your device. Only the model (not your data) comes from the network, once.
What is the difference with Ctrl+F?
Ctrl+F finds exact words; semantic search finds meaning: “termination” will surface the passage about ending the contract, even without the searched word.
What about a scanned PDF?
Indexing works on text: a scan without a text layer must first go through the OCR tool.
How are results presented?
As passages ranked by relevance, with location in the document — you read the excerpt that answers, not just a list of positions.
Does search work offline?
Yes, after the first model download (~115 MB): indexing and queries then run with no network.
Which language for queries?
The model is multilingual: ask in English even inside a French document — the passages closest in meaning surface.
Do I need a special browser?
Indexing uses Transformers.js inside the browser; a recent browser is required to load the model — no plugin, no account.
Does it answer questions like a chatbot?
It retrieves and ranks the most relevant passages — it does not compose an answer. You read the excerpt itself, with its location, and judge the context.
Why does my query return nothing?
A minimum similarity threshold filters weak matches: if no passage clears it, the list stays empty. Rephrase with more context — name the topic, add a synonym, or paste the half-remembered phrase — rather than repeating a bare keyword.
Are tables and figures searchable?
Passages are built from the page text: table contents are indexed as running text — findable, but without their row structure — while text embedded in images stays invisible unless the page has an OCR layer.
How long does indexing take?
Text extraction is fast; vectorization is the real cost — a few seconds on a short file, up to a minute or two on a long one, depending on your device. The index lives only in memory: closing the tab discards it.
How to proceed
- Drop your PDF into the upload area
- Enable AI search — the ~115 MB model downloads once, then stays cached
- Phrase your query as a question or a natural sentence
- Browse the passages ranked by relevance
- Rephrase if the first passage is not the right one