embed_repo
Precompute and cache symbol embeddings to reduce first-query latency for semantic code search. Configure batch size or force recomputation as needed.
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.
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) |