tune

command
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL