All Products
Search
Document Center

OpenSearch:Proxima Searcher

Last Updated:Aug 27, 2024

LinearSearcher

Parameter

Type

Default value

Description

proxima.linear.searcher.read_block_size

uint32

1024*1024

The size of memory that can be read at a time during the search. Approximately 1 MB of memory can be read. A small value reduces queries per second (QPS). A large value causes high memory usage. We recommend that you set the value to 1024*1024.

QcSearcher

Parameter

Type

Default value

Description

proxima.qc.searcher.scan_ratio

float

0.01

The maximum ratio of documents that can be scanned during the search to all documents. This parameter is used to calculate the value of the max_scan_num parameter. The following formula is used to calculate this value: Value of the max_scan_num parameter = Total number of documents × Value of the proxima.qc.searcher.scan_ratio parameter.

proxima.qc.searcher.optimizer_params

IndexParams

Empty

The online retrieval parameters that correspond to the optimizer specified when you specify the builder. For example, if you specify the optimizer as HnswBuilder in an offline build phase, you can specify the following retrieval parameter that corresponds to HnswSearcher:

proxima.hnsw.searcher.max_scan_ratio: 0.1

proxima.qc.searcher.brute_force_threshold

int

1000

A threshold value. If the total number of documents is less than this threshold value, linear retrieval is performed.

HnswSearcher

Parameter

Type

Default value

Description

proxima.hnsw.searcher.ef

uint32

500

The search precision. A larger value indicates a larger number of scanned documents and a higher recall rate.

proxima.hnsw.searcher.max_scan_ratio

float

0.1f

The maximum ratio of documents that can be scanned during the search to all documents. For example, if 1,000,000 documents exist in the current index and this parameter is set to 0.1, up to 100,000 documents are scanned during the search. If the value of the proxima.hnsw.searcher.ef parameter converges early, fewer than 100,000 documents are scanned.

proxima.general.searcher.scan_count

uint32

10000

The maximum number of documents that can be scanned during the search.