Enrich documents with a local AI model
Have a local AI model on your computer describe your documents, so Plexii finds and grounds its answers better, with no credits used.
PlexiiDesk describes your documents with a local AI model: a short summary of each, what kind of document it is, the people, organisations and dates it mentions, a handful of keywords and its language. A small search model also lets PlexiiBrain find documents by meaning, not only by the exact words. PlexiiAssist then finds the right documents more easily, and grounds its answers in richer context.
From 4.3.40, the model that does this comes with PlexiiDesk. There is nothing to install. Ollama is still supported, as a fallback for anyone who already runs it.
The work happens on your computer. It uses no PlexiiDesk credits and no API key.
This article is about describing your documents and searching them by meaning. To run PlexiiAssist and PlexiiDesk's other AI features on your computer, choose the AI source Local on this device. See Run AI on this computer with Local on this device.
Before you start
- Local AI enrichment is on every plan.
- The model needs to be on this computer. A Mac installed from the disk image on plexiidesk.com already has it; on Windows, and on a Mac updated from inside the app, it is downloaded once. If PlexiiDesk asks for a one-time download, see The one-time download.
- Your computer needs 8 GB of memory or more for the model.
- Your AI source does not matter. Documents are described on this computer whichever AI source you choose in AI · source.
- Ollama is optional. It is used only while the built-in model is not downloaded. See Use Ollama instead.
Find the settings
- Click the gear at the right-hand end of the header to open Settings.
- Click the AI tab.
- Under AI · source, scroll through Local on this device to PlexiiBrain on this device.
Check how search by meaning runs
A line under PlexiiBrain on this device says what PlexiiDesk is using:
- Search by meaning uses nomic-embed-text v1.5, which runs on this computer. Document descriptions are written by the on-device model. Everything is in place.
- Search by meaning needs the small search model that downloads with the on-device model. Until then, PlexiiBrain searches by keyword. Download the model under Local on this device.
Click Refresh status to check again, for example after a download.
What PlexiiAssist can see
The box headed What PlexiiAssist can see shows how much of your work Plexii can draw on.
| Line | What it counts |
|---|---|
| Searchable | How many of your documents, files and conversations are indexed so Plexii can search them. Documents with no text are counted separately as empty. |
| Described | How many documents have been described by your local model. |
| Ranked by meaning | How many documents can be found by meaning, not only by the exact words. |
| Read for memory | How many documents have been read for facts Plexii can remember. |
A count that is not complete yet shows in bold.
Passages ranked by meaning
Search by meaning looks at your documents passage by passage. PlexiiDesk splits each document into passages of about 1,200 characters and gives each passage its own search vector. When you search, a document is ranked by the passage that best matches your words, rather than by one vector for the whole document. A short, specific question can then find a long document that mentions the answer only once. A document whose passages have no vector yet is still ranked by meaning as a whole, if it has a vector of its own.
A last line in the box, Passages ranked by meaning:, counts the passages of your documents that the search model in use can compare, out of all of them, for example 120 of 150. It appears once your documents have been split into passages.
This is a count, not a setting. There is nothing to switch on: PlexiiDesk adds the vectors by itself in the background, shortly after you open it and then every few minutes, after your documents and PlexiiBrain entries. When a document changes, its passages are given new vectors. Ranked by meaning counts a document once any of its passages, or the document as a whole, can be compared.
Enrich your documents
You do not have to do anything: while a local model is available, PlexiiDesk works through anything outstanding by itself, a few documents at a time, shortly after you open it and then every few minutes. A document is described again only when it changes.
To describe everything now:
- Click Describe my documents. The button says Working… while it works.
- When it finishes, a line says how many documents it described, how many were already done and how many were skipped, ending PlexiiAssist now has richer context to answer from.
Documents already described are left as they are. One document is described at a time, so a large workspace can take a while. You can keep working meanwhile.
Describe my documents is greyed out until the model under Local on this device is on this computer.
What changes for you
- Better answers. Plexii can match your question to the right documents by their summary, people, dates and keywords. See What Plexii can read and search.
- Search by meaning on this computer. With the small search model, PlexiiDesk ranks documents by meaning on this computer. See Add your own API keys.
- Nothing leaves your computer for this. Your documents go only to the model running on this computer. See Privacy settings and what leaves your computer.
Use Ollama instead
If you already run Ollama, open Advanced: Ollama at the bottom of the section. It says: If no on-device model is downloaded, document descriptions and search by meaning use an Ollama server running on this computer (localhost:11434, or FB_OLLAMA_URL), if there is one. The on-device model above is used first whenever it is downloaded.
So Ollama is used only while the built-in model is not on this computer, and only for describing documents and searching by meaning. It does not answer PlexiiAssist or PlexiiDesk's other AI features. Describe my documents needs the built-in model, but the background pass uses Ollama when that is all there is.
Tips
- Leave PlexiiDesk open while you work. The background pass keeps new and changed documents described, with nothing for you to click.
- Check the counts after a big import. Click Refresh status to see the new documents being picked up.
Common questions
Describe my documents is greyed out. The model under Local on this device is not on this computer. Download it there, then click Refresh status.
It says no on-device model is installed. The line reads No on-device model is installed, so nothing was described. Download the model under Local on this device.
Is this the same as Local on this device? No. Local on this device is an AI source: it decides where PlexiiAssist and the other AI features run. This page is about describing your documents and searching them by meaning, which happens on this computer whichever source you choose. See Run AI on this computer with Local on this device.
Do I still need Ollama? No. The built-in model does this work. Ollama is used only if the built-in model is not downloaded.
It says some documents were skipped. The local model could not describe them, often because it took too long or returned something unexpected. They are tried again in a later pass.
Does this use my PlexiiDesk credits? No. Local enrichment runs only on your computer.
Can I stop enrichment once it has started? Let it finish. It runs one document at a time, and you can keep working.
Related
Was this helpful?
Still need help? Contact support at connect@plexiidesk.com.