Vector Search
The recall rate and query latency of vector search are affected by the number of detected partitions, reordering factor, TopK pruning policy, and runtime resources. You need to balance the two factors in your service. This section describes the GUC parameters related to Lance vector search, including query policy parameters (lance_options), runtime behavior parameters (lance_runtime_options), and runtime cache parameters (lance_cache_options). You can adjust these parameters based on the data scale and query performance requirements to improve the recall rate and control the query latency.
Parameter Description
| Parameter | Type | Description |
|---|---|---|
| lance_options | String | Definition: Sets parameters related to Lance vector retrieval, including the number of probed partitions, reordering factor, and distributed Top-K pruning policy. The parameter format is a comma-separated key-value pair, and each key-value pair is represented in the format of (key:value). Range: Key-value pair string. The value range of each subitem is as follows:
Default Value: (nprobes:1024), (refine_factor:0), (large_topk_threshold:0), (global_topk_budget:3.0). Example: set lance_options='(nprobes:10), (refine_factor:0), (large_topk_threshold:0), (global_topk_budget:3.0)' |
| lance_runtime_options | String | Definition: Sets parameters related to the running behavior of Lance, including the number of CPU threads, number of I/O threads, and memory pool size. The parameter format is a comma-separated key-value pair, and each key-value pair is represented in the format of (key:value). lance_runtime_options is a Postmaster-level parameter. It must be configured before the Aura server starts. Modifying this parameter using the SET command at runtime is not supported. Range: A string of key-value pairs. The value range of each sub-item is as follows:
Default Value: None. Example: set lance_runtime_options='(cpu_threads:8), (io_threads:64), (mem_pool_size:1048576)' |
| lance_cache_options | String | Definition: Sets parameters related to the cache of the running Lance, including whether to enable the internal thread pool, thread pool size, thread pool queue size, and read/write timeout interval of the thread pool. The parameter value is a string of key-value pairs separated by commas (,), with each key-value pair in the format of (key:value). This parameter takes effect only when enable_remote_cache is set to on. Range: A string of key-value pairs. The sub-items are as follows:
Default Value: (cache_pool_support: 1), (cache_pool_size: 16), (cache_pool_queue_depth: 4), (cache_pool_timeout: 30). Example: set lance_cache_options = "(cache_pool_size:32), (cache_pool_queue_depth:8)"; |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot