tune_weights
Adjust column ranking weights for search_data to control how columns are matched and ranked. Inspect current settings, override weights, or reset to defaults.
Instructions
Inspect, set, or reset the weight vector search_data uses to rank columns (name/value/type match weights plus the BM25 and semantic blend scales). Omit all args to inspect the effective weights and their source. Pass set_weights (a {weight: number} object) to override, or reset=true to clear. Scope with dataset (per-dataset overrides win over the global default, which wins over built-ins). Honored by search_data at query time. Unlike jcodemunch/jdocmunch, weights are tuned explicitly here (no ranking ledger). Tunable: name_exact, name_substr, name_word, ai_summary_word, value_exact, value_substr, type_boost, bm25_scale, semantic_scale, default_semantic_weight.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reset | No | Clear this scope overrides. | |
| dataset | No | Tune one dataset. Omit for the global default. | |
| set_weights | No | Weight overrides, e.g. name_exact=30. Unknown names or non-numeric values are rejected; values are clamped to each weight bounds. |