Vector Embeddings

Meaning-based search across your notes, books, and recordings

Jiva StudioBuilt into Numen

Download Numen
Vector Embeddings: searchVector Embeddings: search
Vector Embeddings: searchVector Embeddings: search

Vector Embeddings

Provides meaning-based search across your vault so you can find related notes, books, and recordings even when they use different words.

What You Can Do

  • Search by meaning, not just keywords: Find passages that discuss an idea or topic even if they don’t contain the exact words you typed.
  • Run privately on your computer or through a connection: Use the built-in local model offline on your machine, or use a connection to OpenRouter, OpenAI, or another service for fast indexing of large libraries.

Settings

  • Source:
    • Local model: Runs privately on your computer at no cost and supports over 100 languages. The performance profile of the settings sizes its threads.
    • Connection: Sends the texts to a service through a connection you add on the Connections page of the settings. The plugin has no key and no address of its own.
  • Model (Local model): Pick one of the suggested models from the list: E5 small (the default, 118 MB, runs well on a CPU), Harrier 270M (better results, 344 MB) and BGE-M3 (large, 569 MB). Any other local model needs a profile of your own, described below.
  • Connection (Connection): One row with a connection and an embedding model. Choosing another connection or model indexes the vault again, and the editor asks first because the service may charge for it. Editing the connection so that its address or the profile of the model changes indexes the vault again as well. If the service rejects the key or asks for payment, indexing stops and the status bar names the connection and the reason.
  • Smallest piece of text to index for meaning: Pieces of text shorter than this many characters, such as page numbers and running heads, get no vector, so they do not crowd out real answers. They stay searchable by their words. A note shorter than this is found by its words too. The default is 40, and 0 gives every piece a vector. Changing it does not make the other vectors stale: no text is embedded again, and the vectors of the pieces below the new value are removed.
  • Longest chunk of a note, in tokens: A note is cut into chunks of at most this many tokens, and each chunk gets a vector. The chunk never exceeds the input limit of the model. A smaller value gives more precise passages and more vectors. The default is 256, and the value is held between 16 and 8192. A change cuts the notes again in every open vault; the vectors of texts that did not move are kept.

Model profiles

A local model is run as its profile says: the profile is data, not code. The profiles that ship with the plugin are in backend/domain/model/profiles.json. To add a model or change one without rebuilding, put a *.json file in the profiles folder of the plugin data directory (the folder the host grants the plugin as NUMEN_PLUGIN_DATA_DIR). A file holds one profile or an array of them, and a profile is merged over the shipped profile with the same id, field by field, so a file that gives only queryPrefix changes that and nothing else. A file that is not valid JSON, names a field the plugin does not know, or holds a profile that cannot run is reported on the log of the plugin and skipped whole. The files are read again each time a setting of the plugin changes.

A profile has these fields. id is the Hugging Face repository of a local model, and the value of the Model setting. title, tier and sizeMB describe it in the list. dims is the width of the vectors, and maxTokens the longest text the model takes; the plugin gives a local model at most 512 tokens whatever this says. pooling is how the output becomes a vector: mean of the tokens, cls (the first token), last (the last token), or output (the graph answers one vector per text as sentence_embedding). normalize scales the vector to unit length and is true when absent. queryPrefix and documentPrefix are put in front of a text that is searched with and a text that is searched, and both may be empty. onnxFile is the model file in the repository, such as onnx/model_quantized.onnx; a file with a _data file beside it is fetched with it. dependencies maps the path of each file in the repository to the id under which the manifest declares it as a model; a shipped profile fetches its files this way. revision and sha256 pin the repository of a profile of your own to a commit and each file to its sha256, with the path in the repository as the key, and are optional. A profile that changes onnxFile drops the shipped dependencies unless it names its own, and the shipped pins unless it gives sha256. extraInputs lists inputs besides the tokens and the mask, and only position_ids is known. floorHint is the starting similarity a passage has to reach to answer a query, and 0 means unknown. tokenizer is the kind of the model’s tokenizer.json: unigram (E5, BGE-M3) is read by the plugin’s own tokenizer, whose version goes into the recipe, and bpe (Harrier) is read as before and adds nothing to the recipe; any other value is reported and the file skipped. A profile that adds a model must name it, and one merged over a shipped profile keeps the shipped value. A model whose tokenizer.json is not the kind its profile names is refused when it opens, with an error that names the profile and the file. A model with no profile is refused with an error that names the folder, and a model whose graph asks for an input the profile does not list is refused. The variables NUMEN_EMBEDDING_DIMENSIONS, NUMEN_EMBEDDING_MAX_TOKENS, NUMEN_EMBEDDING_POOLING, NUMEN_EMBEDDING_REPO, NUMEN_EMBEDDING_DIR and NUMEN_EMBEDDING_FILE still override the profile that is chosen.

A text is embedded for one of two roles. The index embeds the pieces of your notes as documents, and a question you type is embedded as a query. A model that tells the two apart, such as E5, reads each with the prefix its profile names. A connection is given the prefixes of the profile that its provider reports for the model, which are empty for a model the provider has no profile for.

After a change of the profile

The vectors are stored under a recipe that holds a short hash of the prefixes, the model file, the token limit, the normalization and, for a local model whose profile names the unigram tokenizer, the version of that tokenizer. For a connection the recipe takes the type of the connection with its address as the source, and the name, width, input limit, pooling and prefixes from the profile that the provider gives before any text is embedded, so the index is fitted before the first batch. The plugin asks for the profile once for each configuration, and the host sends a configuration again when the connection is edited. Any change of those makes the vectors of the old profile stale: the plugin embeds the vault again under the new recipe in the background, and the old vectors are removed when the index is rebuilt. The smallest piece of text to index is not part of the hash. A local model now reads text with the plugin’s own tokenizer for Unigram models (E5, BGE-M3), which matches Hugging Face; a vault embedded with one of these models before is embedded once more in the background. This takes about one to two and a half hours for a large vault with the performance profile, and search by words works meanwhile. The search floor is measured again once the vault is embedded again.

Search Relevance

This plugin tells Numen which model it runs and a starting value for the model’s threshold, the similarity a note has to reach to show up in a search. Choosing the threshold, measuring it on your vault and checking a query against it is the job of the Search Relevance plugin.

Permissions

  • Read your notes, files and tabs.vault:read
  • Open links in your browser.link:open
  • Read the titles and the search index of your notes.index:read

Settings

  • SourceWhere texts are turned into vectors
  • ModelLocal embedding model from Hugging Face; it needs a profile
  • ConnectionA new connection or model reindexes the vault
  • Smallest piece of text to index for meaningFewest characters a piece of text needs for a vector
  • Longest chunk of a note, in tokensLargest piece of a note, in tokens, that gets one vector

Downloads

  • onnxruntime 1.23.0Linux amd64 8.3 MBLinux arm64 7.2 MBmacOS arm64 10 MBmacOS amd64 12 MBWindows amd64 78 MB
  • e5-small-graph 761b726dd34fb83930e26aab4e9ac3899aa1fa78Any platform 118 MB
  • e5-small-tokenizer 761b726dd34fb83930e26aab4e9ac3899aa1fa78Any platform 17 MB
  • harrier-270m-graph d59c919d0159aea2c19ed7d04288fcdd048d0f9cAny platform 243 KB
  • harrier-270m-graph-data d59c919d0159aea2c19ed7d04288fcdd048d0f9cAny platform 344 MB
  • harrier-270m-tokenizer d59c919d0159aea2c19ed7d04288fcdd048d0f9cAny platform 20 MB
  • bge-m3-graph 4de13258303883538bd53b696b452bf8099f0858Any platform 568 MB
  • bge-m3-tokenizer 4de13258303883538bd53b696b452bf8099f0858Any platform 17 MB

Checks

  • PassedManifestThe manifest matches the schema.
  • PassedLicenseAGPL-3.0
  • PassedREADMEREADME.md with an introduction.
  • PassedScreenshots1 in light and dark.
  • PassedHas testsPassed
  • PassedMutation score ≥ 80%Passed
  • Not runComponents have storiesNo frontend.
  • PassedManual pagehttps://docs.numen.md/semantic-search/
  • InfoNetwork requestsYes, read from the code and the manifest.Downloads from: dl.photoprism.app, github.com, huggingface.co.Opens links in your browser.
  • PassedKnown vulnerabilitiesNo known vulnerabilities.

Dependencies

  • github.com/getcharzp/onnxruntime_puregoGo v1.25.0 MIT
  • Indirect Go modules10

Tests

  • Go tests198
  • Mutation score95.1%
  • Coverage82.8%
  1. 2026.11.18

    • screenshots of each plugin in the window, taken from stories by one tool (#2705)
    • copy the root golangci config into every plugin
    • copy the root golangci config into every plugin
    • move the file count and hash wrappers into the driven adapter vaultchecks
    • satisfy the use case port rules, the plugin config parity and the identity wiring test
    • clear the CI findings of the link branch
    • use exact ONNX library member on macOS (#2467)
    • support fallback mirror URLs in manifest dependency sources (#2465)
    • arbitrate local inference and apply host scheduling priority (#2462)
    • let the core provision models for all four engines (#2456)
    • add the Licenses page with machine activation and deactivation (#2388)
  2. 2026.11.17

    • query functions from plugins (#2187)
    • rerank, top and sort stages in search queries (#2163)
  3. 2026.11.16

    • download the models of a plugin at its first use (#2212)
    • search query language with numen-cli query (#2158)
    • tokenize with the exact Unigram tokenizer (#2100)
  4. 2026.11.13

    • a connection holds the service, the address and the key (all stages) (#1776)
  5. 2026.11.7

    • limit the doc comment of an exported symbol to five lines (#1719)
    • window slots, shared commands with handlers and triggers, and the title bar as a plugin (#1687)
  6. 2026.11.6

    • share a secret between plugins (#1704)
  7. 2026.11.5

    • one setting-changed event replaces the timed re-reads (#1613)
  8. 2026.11.4

    • keep each changed plugin at one version bump against main
  9. 2026.11.2

    • call the staged-plugins check from apps/desktop by its real path
    • stage theme plugins in the release and repair the checks main broke (#1445)
  10. 2026.10.2

    • open a cached model that has no pinned revision without the network
    • add model profiles and the search relevance panel
  11. 2026.10.1

    • version plugins as year.month.build (#1429)
    • polish settings UI, ACP discovery, MCP server config, embeddings sync, and palette icons
    • enforce strict thin-computed rule, restore note tab linking, fix agent chat links and settings UI
    • align note line numbers, extensible plugin filter, agent turn ordering, and settings defaults
    • overhaul plugin settings UI, README accordions, media player, file tree menu, and note editor prefs
    • show and use only the settings of the chosen embeddings provider
    • link plugin settings to one another and add path settings
    • serve a mock embedding model and leave a question a pass