generate_embeddings
Backfill ChromaDB embeddings for active rules and lessons missing an embedding_id, processing only unembedded entries to support semantic retrieval.
Instructions
Generate or update ChromaDB embeddings for active rules/lessons whose embedding_id is still NULL — an incremental backfill, not a full re-embed.
Access level: write.
Returns: JSON with processed/skipped/errors counts and duration_seconds,
or {"error": "RAG_NOT_INSTALLED", ...} when the rag extra is absent.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_embeddings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope_id | No | Restrict to one scope; omit to process every scope. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |