kb_backfill_embeddings
Generates embeddings for knowledge base entries that are missing or have outdated content, skipping entries with matching content hashes. Supports dry run and batch processing.
Instructions
Embed any KB entries that are missing or stale (model/content changed). Idempotent: skips entries whose stored content_hash still matches. Requires LORE_SEMANTIC_SEARCH=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch_size | No | How many entries to encode per batch (default 32). | |
| limit | No | Optional cap on entries to process this run. | |
| dry_run | No | If true, report what would be embedded without writing. | |
| confirm_production | No | Required (true) to run a real backfill when LORE_ENV=production. Guards against accidental large-scale writes; ignored for dry runs and non-prod. |