Documentation
¶
Overview ¶
Command tune searches for better hybrid-search weights against the labelled feedback collected by /ask, and — when the evidence is strong enough — promotes them.
Usage:
tune -propose # measure and record a candidate; change nothing tune -promote # same, and make it live if the gate agrees tune -rollback # undo the current promotion tune -dry-run -promote # measure and report, write nothing
It refuses to do anything unless TUNE_ENABLED is set to a true value.
WHERE THIS RUNS: on the same host as PostgreSQL. macmini containers cannot reach ubuntu1's Tailscale addresses and the reverse is blocked too (measured, not assumed), so a batch job on the far side of the database simply does not work. It also means the reranker HTTP service is not reachable from here, which is why every evaluation runs with rerank off — see tune.RunnerFor. When PostgreSQL moves to ubuntu1, this binary moves with it.
It does not run migrations. Schema changes arrive with the server; a batch job that silently migrates the database of a service it does not own is a surprise waiting to happen.
Exit codes:
0 — ran successfully, or declined to run because TUNE_ENABLED is unset 1 — failed