Recommend TurboQuant query knobs
recommend_turboquant_query_knobsRecommends per-query tuning knobs for TurboQuant candidate generation and reranking, with generic or index-aware advice based on catalog state and optional filter selectivity.
Instructions
Run tq_recommended_query_knobs — per-query knob advisor. Two modes: plain (just candidate_limit + optional final_limit) gives generic recommendations; index-aware (supply both index_schema and index_name, plus optional filter_selectivity) specialises the recommendations to the named index's catalog state. Returns probes, oversample_factor, max_visited_codes, max_visited_pages — pass these to turboquant_approx_candidates / turboquant_rerank_candidates. Requires pg_turboquant.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"candidate_limit": "<candidate_limit>"
},
"name": "recommend_turboquant_query_knobs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | Optional: a database id from list_databases, to target a configured secondary (read-only) database; omit for the primary. Database names that are not configured ids are rejected. | |
| index_name | No | ||
| final_limit | No | ||
| index_schema | No | ||
| candidate_limit | Yes | ||
| filter_selectivity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| probes | Yes | ||
| max_visited_codes | Yes | ||
| max_visited_pages | Yes | ||
| oversample_factor | Yes |