Skip to content
项目

关于

DocFinder is a local-first indexing and searching documents using semantic embeddings stored in SQLite. Everything runs on your machine, no external services required.

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
+3
15天
+3
1个月
+4

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

DocFinder

CI CodeQL License: AGPL v3 Python Release Downloads

DocFinder

Local-first semantic search for your documents.
Ask questions, find passages, and keep a private library that never leaves your machine.

DocFinder demo: library, search and cited answers

What it does

  • Ask your library — one question across every indexed document, answered locally with numbered citations that open the exact page, line or timestamp. Answers stream token by token, and the in-app preview shows the cited passage in place.
  • Semantic search — find documents by meaning, not just keywords: PDF, Word, PowerPoint, Excel/CSV, OpenDocument, HTML, EPUB, Markdown, email, source code, images, audio and video, with a multilingual cross-encoder reranking the best passages.
  • Watched folders stay in sync — folders you watch update while the app is open; changes made while it was closed are caught up at the next launch.
  • Organize and annotate — tags/collections, favorites, saved searches and searchable notes, written by you or drafted by the local model.
  • Local OCR — scanned PDFs and screenshots become searchable and citable text, fully offline.
  • Bring your own models — connect any OpenAI-compatible server and choose embedding and chat models independently.
  • 100% privacy mode — mark an indexing run as strictly local; remote LLMs are blocked for chat on those documents.
  • Fast on your hardware — auto-detects Apple Silicon (Metal), NVIDIA (CUDA), AMD (ROCm) or CPU, with adaptive indexing.
  • Cross-platform — native apps for macOS, Windows and Linux, plus an experimental global shortcut.

Download

Platform Installer
macOS DocFinder-macOS.dmg
Windows DocFinder-Windows-Setup.exe
Linux DocFinder-Linux-x86_64.AppImage

macOS — open the DMG, drag DocFinder to Applications, then right-click → Open on first launch (Gatekeeper warning: normal for unsigned open-source apps).

Windows — run the installer; if SmartScreen appears, choose More info → Run anyway.

Linux

chmod +x DocFinder-Linux-x86_64.AppImage && ./DocFinder-Linux-x86_64.AppImage

Run from source

Requires Python 3.10+ and make.

git clone https://github.com/filippostanghellini/DocFinder.git
cd DocFinder
make setup   # create .venv and install all dependencies
make run     # desktop GUI
make run-web # web interface at http://127.0.0.1:8000

Runtime acceleration (auto)

DocFinder picks the best available backend:

  • NVIDIA — ONNX CUDA when available, otherwise PyTorch CUDA
  • AMD — ONNX ROCm when available, otherwise PyTorch
  • Apple Silicon — PyTorch MPS when available, otherwise ONNX ARM64
  • Intel Mac / CPU-only — ONNX or PyTorch CPU

Indexing parallelises parsing automatically based on the machine's resources.

Custom models via a local server

DocFinder is not locked to its built-in models. In Settings → Models & Local Server you can connect any OpenAI-compatible server (Ollama, LM Studio, llama.cpp) and choose:

  • Server URL — e.g. http://127.0.0.1:1234, with a one-click Test connection that lists the installed models
  • Embedding model — used to build the index; changing it invalidates the existing index, so use Re-index now afterwards
  • Chat model — used by AI Chat; applies immediately, no reindex needed

Both choices are independent, so a small embedding model and a larger chat LLM can run side by side. Everything stays on your machine; no API key is needed.

100% privacy mode

The 100% privacy checkbox in the Index dialog marks an indexing run as strictly local:

  • Indexing requires a local embedding model; the checkbox is disabled while a remote server is configured for embeddings
  • AI chat on privacy-marked documents refuses remote LLMs (Ollama on localhost is fine, and the built-in models are always allowed)
  • Privacy-marked documents show a shield badge in the Library, and the flag survives re-indexing

Documents indexed without the flag still work with any model, including remote servers.

Contributing

Contributions are welcome: open an issue or submit a pull request.

License

Licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).

DocFinder was originally released under the MIT License. Starting from version 1.1.1 the license changed to AGPL-3.0 to comply with PyMuPDF's licensing, as PyMuPDF is AGPL-3.0 licensed.

探索相关项目

加载中…