pub struct VectorIndexConfig {
pub m: usize,
pub ef_construction: usize,
pub ef_search: usize,
pub dimensions: usize,
pub max_elements: usize,
pub compaction_threshold: f32,
pub flush_interval_secs: Option<u64>,
}Expand description
Configuration for the vector index.
Field names and semantics match the existing HnswConfig so that
From<HnswConfig> for VectorIndexConfig is a no-op. Backend-specific
fields (e.g. simsimd flags for usearch) are abstracted away — the
usearch backend picks its own defaults from these top-level knobs.
Fields§
§m: usize§ef_construction: usize§ef_search: usize§dimensions: usize§max_elements: usize§compaction_threshold: f32§flush_interval_secs: Option<u64>Trait Implementations§
Source§impl Clone for VectorIndexConfig
impl Clone for VectorIndexConfig
Source§fn clone(&self) -> VectorIndexConfig
fn clone(&self) -> VectorIndexConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VectorIndexConfig
impl Debug for VectorIndexConfig
Auto Trait Implementations§
impl Freeze for VectorIndexConfig
impl RefUnwindSafe for VectorIndexConfig
impl Send for VectorIndexConfig
impl Sync for VectorIndexConfig
impl Unpin for VectorIndexConfig
impl UnsafeUnpin for VectorIndexConfig
impl UnwindSafe for VectorIndexConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more