-
Notifications
You must be signed in to change notification settings - Fork 0
Document Library
The library is Draggy's answer to "what does my lease say about pets". You point it at a folder, it indexes the contents locally, and from then on questions that look like they are about your own material get searched there before the web.
Nothing is uploaded. Indexing runs against your local Ollama, and the index lives in the same SQLite database as your chats.
Settings → Library → Add folder. Pick a directory and Draggy walks it,
extracts text from what it recognises, splits it into passages, and computes an
embedding for each one. Progress is shown per file.
Large folders take a while — this is a model running over every paragraph you own. It is a one-time cost per folder, and you can keep using Draggy while it runs.
You can add several folders. Each is listed with how many files and passages it contributed, and each can be removed on its own without rebuilding the rest.
nomic-embed-text by default. It is small, fast and good enough that changing
it is rarely the reason results are bad.
If you do change it, the existing index becomes meaningless — embeddings from one model cannot be compared with embeddings from another. Re-index after switching.
When the helper model decides a question is about your own files, the assistant
calls search_library before search_web. It answers from the passages that
come back and names the file each fact came from, so you can go and check.
If the library has nothing relevant it says so rather than inventing something, and offers to search the web instead.
You can also force it: ask "what do my notes say about X" and the intent is usually clear enough.
Structure helps. Documents with headings chunk into meaningful passages. A hundred-page PDF with no structure chunks into a hundred pages of soup.
Index less, not more. A folder of what you actually care about beats your entire home directory. Precision drops as the index grows, because there are simply more near-matches competing.
Check the file names in the answer. If it cites the wrong document repeatedly, the passages it is finding are probably too short to be distinctive.
Settings → Library lists what is indexed, removes a single source, or clears
everything. Clearing the index does not touch your actual files — Draggy only
ever reads them.