embed_repo
Precompute and cache symbol embeddings to eliminate first-query latency when using semantic search. Call after reindexing.
Instructions
Precompute and cache symbol embeddings for semantic / hybrid search. Embeddings are also computed lazily on first semantic query, but calling this once after a fresh index avoids the first-query latency spike. Requires AI provider to be enabled in config (ollama/openai). Set force=true to drop and recompute all existing embeddings. Mutates the vector store; idempotent. Use after reindex when you plan to use semantic search. Returns JSON: { status, indexed_this_run, total_embedded, coverage_pct, duration_ms }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch_size | No | Symbols per embedding API batch (default 50) | |
| force | No | Drop existing embeddings and re-embed everything (default false — incremental) |