Build Embeddings
build_embeddingsRebuild vector embeddings for semantic and hybrid search. Default converges the index to the current vault; force=true rebuilds from scratch after changing the embedding model.
Instructions
Rebuild vector embeddings for semantic and hybrid search.
Embeddings are built automatically on startup, so this is normally not needed. Use force=True to rebuild from scratch after changing the embedding model. Without force, the vector index converges to the FTS chunk set: missing or changed documents are embedded, orphaned vectors are removed, unchanged chunks are untouched.
A fast convergence (small drift) returns its result inline. A build
still running at the server's soft deadline — typical for a
force=True rebuild of a large vault — continues in the background
and returns {"status": "working", "job_id": ...} immediately;
fetch the outcome with get_job_result. embeddings_status
remains the observability view of the vector index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | When True, discards existing embeddings and rebuilds from scratch. Use only if the embedding model has changed. When False (default), converges the vector index to the FTS chunk set — work scales with the size of the drift, not the size of the vault (#665). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||