TurboQuant rerank candidates
turboquant_rerank_candidatesRetrieve approximate candidates from a turboquant index, then rerank exactly via SQL to a final limit, returning both approximate and exact ranks or distances.
Instructions
Run tq_rerank_candidates against a turboquant index — approximate retrieval followed by SQL-side exact rerank to final_limit results. Returns the candidates with both approximate and exact ranks / distances. half_precision=True switches to the halfvec overload. Requires the pg_turboquant extension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| metric | Yes | ||
| probes | No | ||
| schema | Yes | ||
| database | No | Optional: target a configured secondary (read-only) database by name; omit for the primary. Call list_databases to see the configured ids. | |
| id_column | Yes | ||
| final_limit | Yes | ||
| query_vector | Yes | ||
| half_precision | No | ||
| candidate_limit | Yes | ||
| embedding_column | Yes | ||
| oversample_factor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |