tune_weights
Tunes per-repository semantic weights using recent ranking events, preventing stale data from influencing the tuning and reducing overfitting.
Instructions
Online weight tuning. Reads ranking_events from ~/.doc-index/telemetry.db (requires JDOCMUNCH_PERF_TELEMETRY=1) and proposes a per-repo semantic_weight step. dry_run=true skips the disk write. min_events gates against early overfitting. Learns from a recency window of the ledger (default 90 days) so stale events can't anchor the weights.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Optional — single repo to tune. Omit to scan all repos with events. | |
| min_events | No | ||
| dry_run | No | ||
| max_age_days | No | Only learn from ledger events newer than this many days. Keeps stale events from anchoring weights to an outdated query distribution. 0 = lifetime ledger. |