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.
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 |