Using memory
Search by meaning
A search can find a note even when it does not use your words. Ask for "the login timeout fix" and MemIndex can return the note about idle proxy connections. It runs on your computer.
How it works
MemIndex turns each note into a list of numbers that describes what it means, then finds the notes closest to your question. This is built into MemIndex. It does not need Python, a separate search service or an account.
The first time MemIndex needs it, it downloads one 23 MB search model. After that it works offline. Run npx memindex doctor to see where you are:
✓ Search by meaning built in; the 23 MB model downloads once, the first time the worker needs it
Once the model is saved, the row reads built in, model cached; no Python or uv needed.
After an update, your notes get their meaning data again in the background, a few at a time. Search keeps working by word until that finishes, so an answer can be less complete for a short while.
When it is used
- A search with a question uses meaning first, then fills gaps by word. A search with only filters, such as a date range, uses the database directly.
- If the meaning search cannot run, MemIndex falls back to word search and says so.
- Searches without explicit dates look back 90 days by default. Change the window with
MEMINDEX_SEARCH_RECENCY_DAYS, or set it to0to search all ages. A date you give always wins.
Related notes when you ask something
MemIndex can add related past notes to a prompt before your agent answers it. This is controlled by MEMINDEX_SEMANTIC_INJECT. Its default, auto, turns it on in the personal mode and leaves it off in the default code mode. true and false always win. It applies to prompts of at least 20 characters. MEMINDEX_SEMANTIC_INJECT_LIMIT (default 5) caps the notes added, and MEMINDEX_SEMANTIC_INJECT_FORMAT picks narrative (the default, with the explanation) or index (short rows your agent can expand).
Turn it off or run your own
MEMINDEX_CHROMA_ENABLEDistrueby default. Set it tofalseto use word search only. Your saved notes are not affected.MEMINDEX_CHROMA_MODEislocalby default.remoteconnects to a search server of your own. Remote search and other embedding services can send your note text to another service, so read Privacy first.
Every related setting, with its default, is in Settings.