Skip to Content
Simulacra

Embeddings

Choose where posts and documents are turned into vectors for search by meaning, which model and vector size to use, how text is chunked, and rebuild or stop the index.

Embeddings configures search by meaning. Every post and vault document is cut into chunks, and each chunk is turned into a vector by an embedding model; searching by meaning compares those vectors. See Meaning search for the idea.

Settings › Embeddings with the MODEL card (provider Custom, model stub-embed, the local server address, Vector size 256 dims, each with its reset arrow), the CHUNKING card and the INDEX card with Rebuild and Stop
Settings › Embeddings.

MODEL

SettingControlRange or optionsDefaultWhat it does
Embedding providerMenuGemini, Local server, OpenAI, CustomGeminiThe service that turns text into vectors.
Embedding modelTextgemini-embedding-001The model id. Blank means the provider's default.
Local server addressTextblank (http://localhost:11434)Where a local embedding server listens. A custom service uses it too. Dimmed unless the provider is Local server or Custom.
Vector sizeStepper (step 128)128 to 3072 dims768 dimsHow many numbers each vector holds. Smaller is lighter; a change rebuilds the index.
ProviderDefault modelKeyAddress
Geminigemini-embedding-001A Google Gemini credential, or the provider pane's key when Gemini is the AI providerThe Gemini API
Local serverembeddinggemma (Google's Gemma embedding model)NoneLocal server address
OpenAItext-embedding-3-smallAn OpenAI credentialhttps://api.openai.com/v1, or the credential's endpoint
Customtext-embedding-3-smallA Custom Endpoint credentialLocal server address

Switching the provider moves a model still at the old provider's default to the new provider's default. A model id you typed yourself stays.

CHUNKING

SettingControlRangeDefaultWhat it does
Chunk sizeStepper (step 64)128 to 4096 tokens512 tokensHow much text goes into one vector.
Chunk overlapStepper (step 16)0 to 1024 tokens64 tokensText shared by neighbouring chunks. It is never more than half a chunk.

INDEX

SettingControlDefaultWhat it does
Semantic searchSwitchOnFind posts and documents by meaning as well as by words. Off stops indexing and searching by meaning.
Rebuild the indexRebuildEmbeds every post and document again with the current model. A toast says Rebuilding the index with ….
Stop indexingStopStops the embedding that is running. Rebuild resumes it. The button is disabled while nothing is being indexed.

Use a local embedding server

Start the server

Run a local embedding server that serves embeddinggemma and answers POST /api/embed, by default on http://localhost:11434.

Pick Local server

In Settings › Embeddings, set Embedding provider to Local server. The model changes to embeddinggemma and Local server address becomes editable.

Set the address if it differs

Type the server's address if it is not http://localhost:11434.

Rebuild

Click Rebuild. With the server on this computer, the text of your posts and documents no longer leaves it to be embedded.

Tips and limits

  • Embedding requests count against the daily AI budget of Settings › AI & Models. When it is spent, indexing pauses with Today's AI budget is used up, so indexing paused.
  • Request timeout and retries of Settings › AI & Models apply to embedding requests too.
  • Errors such as a missing or rejected key, an unknown model or an unreachable server are listed in Troubleshooting.

On this page