TurboQuant approx candidates
turboquant_approx_candidatesRetrieves approximate k-nearest neighbor candidates using a turboquant index. Returns candidate ID, distance, and rank without exact reranking.
Instructions
Run tq_approx_candidates against a turboquant index — approximate k-NN retrieval, no exact rerank. metric is 'cosine' | 'inner_product' | 'l2' (mapped to upstream's runtime metric text). half_precision=True switches to the halfvec overload. probes / oversample_factor are optional per-query knobs (consider calling recommend_turboquant_query_knobs first). Requires the pg_turboquant extension. Returns a list of candidate objects with candidate_id, approximate_distance, and approximate_rank.
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 | ||
| query_vector | Yes | ||
| half_precision | No | ||
| candidate_limit | Yes | ||
| embedding_column | Yes | ||
| oversample_factor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |