Skip to content

Search Options

Search options are specified by PostgreSQL GUC.

Options for ivf

These options only work for IVF algorithm. Refer to Indexing.

OptionTypeRangeDefaultDescription
vectors.ivf_nprobeinteger[1, 1_000_000]10Number of lists to scan.

Options for hnsw

These options only work for HNSW algorithm. Refer to Indexing.

OptionTypeRangeDefaultDescription
vectors.hnsw_ef_searchinteger[1, 65535]100Search scope of HNSW.

Other Options

Query options for search mode: .

OptionTypeRangeDefaultDescription
vectors.search_modeenum"basic", "vbase""vbase"Search mode, Refer to Search
vectors.pgvector_compatibilitybooleanoffEnable or disable pgvector compatibility, Refer to pgvector compatibility
vectors.enable_indexbooleanonEnable or disable the query planner's use of vector types.