pub struct VectorHnswConfig {
pub ef_construction: usize,
pub m: usize,
pub max_elements: usize,
}Expand description
HNSW-specific vector configuration.
Fields§
§ef_construction: usizeef_construction parameter for index building.
m: usizeNumber of bi-directional links per node (M parameter).
max_elements: usizeMaximum number of elements the index can hold.
Trait Implementations§
Source§impl Clone for VectorHnswConfig
impl Clone for VectorHnswConfig
Source§fn clone(&self) -> VectorHnswConfig
fn clone(&self) -> VectorHnswConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 VectorHnswConfig
impl Debug for VectorHnswConfig
Source§impl Default for VectorHnswConfig
impl Default for VectorHnswConfig
Source§impl<'de> Deserialize<'de> for VectorHnswConfig
impl<'de> Deserialize<'de> for VectorHnswConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VectorHnswConfig
impl RefUnwindSafe for VectorHnswConfig
impl Send for VectorHnswConfig
impl Sync for VectorHnswConfig
impl Unpin for VectorHnswConfig
impl UnsafeUnpin for VectorHnswConfig
impl UnwindSafe for VectorHnswConfig
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