~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
"Sync library" no longer deletes downloaded documents that still hold content. It deleted a document whose PDF it could not find even when the document still had its extracted text or a PDF stored in the database, and the text, stored PDF, collection memberships and search index entries went with it. This hit documents whose PDF had been removed to save space, documents re-downloaded with PDF storage set to "none", failed downloads later completed with text, documents labelled as stored in the database without a stored PDF, and Zotero imports with a source URL or DOI whose PDF is stored in the database.
A document whose PDF file was removed from disk but whose extracted text was not now keeps its text, collection memberships and search index entries. If its research still has the resource it was downloaded for, the sync counts it under "Files Missing" and makes it a text-only document, so the library no longer offers a PDF that is not there, and the Download Manager counts it as available to download rather than as already downloaded. The Download Manager's PDF downloads then put its PDF back into the same document, also when the PDF downloaded again differs from the one removed. Each download run downloads it once, also when several of its researches cite the paper; two runs over different researches at the same time can each download it. The run downloads it through the document's own resource, or through another resource for the same paper when the own one cannot succeed: its URL is not downloadable or is refused by the egress policy, the retry manager holds it back, or its latest download attempt failed. A download that a restart of the server cut off does not keep the document's other resources from downloading its PDF. "Extract Text to DB" skips such a document, since it already has the text. If the resource is gone, the sync still makes the document text-only but does not count it under "Files Missing", because the Download Manager has no resource to download its PDF from. A later download of the identical PDF for another research then stores the PDF in it. A document whose PDF file was removed and that has no extracted text and no PDF stored elsewhere is still deleted, so it can be downloaded again. A document whose PDF was removed with "Remove PDF to save space" is kept as it is, and its PDF is not offered for download again.
When a resource links to a newer document, an older retained document cannot hide the newer document's missing PDF. Download queues, direct refills and download counts follow the explicit link, while preserving the older document for resources that still use it. Cached PDF text extraction follows the same link, so it cannot report success while the linked document still lacks text.
Refills preserve canonical document reuse and retry bookkeeping. A regenerated PDF updates the document whose file was lost and joins the requested collection; if another document owns those bytes, the refill reports a conflict and keeps both documents intact. Refills that cannot store a PDF because storage is disabled or its size limit is exceeded settle as text-only downloads. When accepted text changes, its old search entries stay invalid until reindexing finishes.
The sync now checks each document against its own PDF: its file, or its blob when it stores the PDF in the database. Several documents can share a URL, such as the documents of two researches that cite the same paper. When another document with the same URL had stored its PDF later, a document whose file was removed counted as found as long as that other file was still there, so its missing PDF was never reported or downloaded again.
A failed download that a later PDF download completes is now recorded as a PDF document, and so is a document that "Extract Text to DB" created once a later PDF download stores its PDF in it, so library search results link to their PDFs.
In the Download Manager, the "downloaded" counts under a research's "Sources by Domain" and the "Downloaded" badges of its PDFs now show the PDFs that are downloaded. They compared the stored status with a string it never equals, so they showed none as downloaded. Five more places made the same comparison and now read the status correctly:
GET /library/api/get-research-sources/{research_id}andPOST /library/api/check-downloadsreported every source as not downloaded. They now report a source as downloaded when the Download Manager counts its document as downloaded, which a document that awaits its PDF is not.POST /library/api/download-sourcenever answered "Already downloaded". For a downloaded source it queued the source again and answered "Download completed". It now answers "Already downloaded" when the Download Manager counts the source's document as downloaded, and downloads the PDF of a document that awaits it.- The document details page showed the "Download Status" of every document as a warning badge reading "Documentstatus.completed" or the like. It now shows "Completed", or another status such as "Failed" in a warning badge.
- Text extraction, such as "Text Only (from PDFs)" or the document scheduler's, never read the PDF file that a downloaded document without text keeps on disk. It asked the source for the text or the PDF again, or gave up when the retry manager held the source back. It now extracts the text from that file before it asks the source. For an arXiv paper the text is still requested from arXiv first, as before.