refresh_hard_negatives
Mine hard negative pairs from retrieval telemetry by scanning low-scored and requery signals, then upsert them into the knowledge base. Supports incremental refresh with 'since' and dry-run mode.
Instructions
Scan retrieval_telemetry for low-scored and requery signals, then upsert hard negative pairs into knowledge.hard_negative_pairs. Use since= for incremental refresh. dry_run=true returns counts without writing. Requires LORE_HARD_NEGATIVE_MINING=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |