pub struct VectorSearchOptions {
pub k: usize,
pub label: Option<String>,
pub properties: Option<HashMap<String, Value>>,
pub rescore_factor: Option<usize>,
}Expand description
Options for vector_search_with.
Fields§
§k: usizeMaximum number of results to return.
label: Option<String>If set, only nodes carrying this exact label are included in results.
properties: Option<HashMap<String, Value>>Optional property key-value filters. Only nodes matching all filters are returned.
rescore_factor: Option<usize>Rescore factor. When greater than 1, search fetches k * rescore_factor
candidates from the index and re-ranks them by exact distance against
the full-precision vectors stored in LMDB. Defaults to 2 on a quantized
index and 1 (no rescore) on a Float32 index. Without the hnsw feature
the default is always 1, because that backend keeps the raw f32 and so
has no precision to recover whatever the persisted tag says. The default applies to
filtered searches too, where the over-fetch means the traversal must
find k * rescore_factor predicate-matching candidates; pass
Some(1) to disable rescoring for a selective filter.
Trait Implementations§
Source§impl Clone for VectorSearchOptions
impl Clone for VectorSearchOptions
Source§fn clone(&self) -> VectorSearchOptions
fn clone(&self) -> VectorSearchOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more