Search Options
Search options are specified by PostgreSQL GUC.
Search options are specified by PostgreSQL GUC.
Options for ivf
These options only work for IVF algorithm. Refer to Indexing.
| Option | Type | Range | Default | Description |
|---|---|---|---|---|
| vectors.ivf_nprobe | integer | [1, 1_000_000] |
10 |
Number of lists to scan. |
Options for hnsw
These options only work for HNSW algorithm. Refer to Indexing.
| Option | Type | Range | Default | Description |
|---|---|---|---|---|
| vectors.hnsw_ef_search | integer | [1, 65535] |
100 |
Search scope of HNSW. |
Other Options
Query options for search mode: .
| Option | Type | Range | Default | Description |
|---|---|---|---|---|
| vectors.search_mode | enum | "basic", "vbase" |
"vbase" |
Search mode, Refer to Search |
| vectors.pgvector_compatibility | boolean | off |
Enable or disable pgvector compatibility, Refer to pgvector compatibility |
|
| vectors.enable_index | boolean | on |
Enable or disable the query planner’s use of vector types. |