Manual›Jobs
How do I ask questions about a PDF or book and get exact quotes?
Drop a PDF or a book into a chat and ask for the passage in plain words. Irene searches the text of the file itself, finds the lines and quotes them word for word with the page or section, then answers follow-ups about the same book in the same chat. The coffee manual session below took 2.2 minutes.
A real run: a 19th-century coffee manual, then Darwin
A run on sample files, 27 October 2026, on DeepSeek V4.1 Flash.
The two books were sample files: an 1894 coffee manual and the 1859 first edition of On the Origin of Species.
This was the first request:
What does the author think of roasters who put a shiny coating on their beans and say it keeps them fresh? Quote me the passage.
What the main agent did
- Searched the file it was given. It ran a search for gloss, glaze, shiny and coating over the PDF, then read the parsed text. It found the GLAZING section and the same claim repeated in the adulteration chapter.
-
Quoted the real lines, not a summary. It gave the page numbers and the exact words:
"But the claims made by roasters and others who coat or glaze coffee, that large quantities of eggs are used exclusively in the preparation of the glazing compound is simply absurd, as is also the claim that it is resorted to for the purpose of closing the pores, to protect and retain the aroma…"
The author calls the freshness claim a cover for "concealing the defects" and adding weight. The answer also flagged two smaller hits: a lard trick for a glossier surface, and a lustre liquid he suspects is petroleum oil. 3. Answered "does he contradict himself?" by finding the contradiction. About a hundred pages later, the same author tells the home roaster:
"…stir into the coffee the beaten whites of two eggs and a tablespoonful of fresh butter, glazing every bean, as this preserves the aroma until ground."
That is the claim he called absurd. It found a second slip in the same chapter, where the egg glaze is described as protecting the coffee and clarifying the liquor, and a number that moves between chapters: 5 to 10 per cent added weight in the glazing section, 5 to 6 per cent in the adulteration chapter. 4. Said why it did not use the RAG library. The question was lexical: three stems for an 1894 book, two searches against the parsed text, exact matches. Indexing and embedding 196 pages would have been work it did not need to buy for a keyword hit. It also gave the honest caveat: a lexical search only finds the words it guessed; a question about a concept, not a word, is where semantic search with
ragearns its place. 5. Used the same method on a second book. Asked where Darwin discusses how something as complex as the eye could evolve, it found Chapter VI, "Difficulties on Theory", and the section Organs of extreme perfection and complication. It quoted the eye passage, the telescope analogy and the falsification test. It also noted the file is the Project Gutenberg first edition, so the page numbers are the ebook's, and the passage sits around pp. 186–190 in the original.
What you get
The exact words and where they are. The three questions produced:
| the question | what Irene found | where |
|---|---|---|
| a shiny coating and a freshness claim | the GLAZING section, and the same claim in the adulteration chapter | pp. 127–128 |
| does he contradict himself | the home-roaster recipe that glazes with egg and butter to "preserve the aroma" | about 100 pages later |
| how the eye could evolve | Organs of extreme perfection and complication, with the falsification test | ch. VI, pp. 138–141 of this PDF |
- Follow-ups in the same chat. The second question searched the parsed text already saved for the first, instead of parsing the PDF again.
- A checkable quote. You get the page or section with the words, so you can open the book and check it.
- A method that matches the question. Exact words use plain search; concepts use the local library.
- The caveats it found itself: a moving number, an ebook's page numbers, and what a keyword search cannot see.
What it took
| time | steps | tokens | images | |
|---|---|---|---|---|
| the glazing question | 1.1 minutes | 9 | 291,216 read (250,888 cached), 2,968 written | none |
| the contradiction follow-up | 1.0 minutes | 5 | 222,311 read (214,826 cached), 2,130 written | none |
| why not RAG | 0.1 minutes | 1 | 47,256 read (46,220 cached), 488 written | none |
| the coffee session | 2.2 minutes | 15 | 560,783 read, 5,586 written | none |
| the Darwin eye passage (another book) | 1.3 minutes | 8 | 169,446 read (144,136 cached), 2,659 written | none |
It ran on your plan's usage, like any job; Plans, usage & shared usage has what each plan includes.
Why a question like this uses little model work: the search runs over the file on your computer with no model, so the model only reads the passages it quotes.
How it's different
- It quotes the file, not its memory. It parses the PDF, finds the span and quotes the real lines with the place they came from. A quote you cannot check against the page is not a quote.
- It picks the search that fits. Exact words and stems use plain search, which uses no model and needs no index. A concept, where you do not know the author's vocabulary, is where the local RAG library earns its place: it embeds the book on your computer and searches by meaning.
- The library is local.
ragruns a multilingual embedding model on your computer and keeps the index there; searches use no model and nothing is uploaded to be searched. Only the passages the answer needs go to the model. - It tells you what it cannot know. In this run it named its own blind spot (a word it did not guess), and it said the ebook's page numbers are not the 1859 print edition's.
How local document search works, and when to index a book: How does Irene search my own documents (rag)?
Doing it yourself
- Drop the PDF or book into the chat, or name the file or folder.
- Ask in plain words: "Find where he says the coating keeps the beans fresh, and quote the passage." Say quote when you want the exact words rather than a summary.
- Ask follow-ups in the same chat: "Does he contradict himself?" "Where else does he say this?"
- For a long book or a question about a concept, ask Irene to add it to a library with
ragso it searches by meaning. For exact words, plain search is enough. - Check the page or line it gives you against the book.
Limits
- A keyword search only finds the words it guessed. If the author makes the same point in vocabulary you did not think of, plain search misses it. Ask for the library when the question is about an idea.
- Scanned PDFs and images are read with text recognition. That reading can use a model; ordinary text PDFs do not.
- The RAG library is on your computer. An agent carrying
ragcannot be deployed to the cloud; a deployed agent needs a store instead. - 25 MB per file when adding a whole folder, and files over that are reported rather than read.
- A changed file is not re-detected. Adding it again says "already indexed"; forget it from the library, then add it again.
- Page numbers can be the ebook's, not the print edition's. Ask for the original page if that matters.
- It finds; it does not write the answer for you. The RAG library returns places to read, and the agent writes the answer from them.
Questions
Can I chat with a PDF and get exact quotes? Yes. Ask for the passage and say "quote it"; Irene finds the lines in the file and gives you the exact words with the page or section.
Does it make up quotes? It quotes from the parsed file, not from memory, and gives the place so you can check. This run quoted the GLAZING section and the home-roaster recipe, both with page references.
How does it use my plan? The search over a file uses no model. The model reads the passages it quotes, and that runs on your plan's usage; Plans, usage & shared usage has what each plan includes.
Can it handle a whole book, or just a few pages? Both. The coffee manual is 196 pages, and the answer came from two searches. For a concept question across a long book, index it in the local library so the search is by meaning.
Can it find a contradiction across a book? Yes. It searches for the claim, then reads the surrounding passages. This run found the same author recommending the glazing he called absurd, about a hundred pages later.
Related
Updated