pub struct HnswConfig {
pub max_connections: usize,
pub ef_construction: usize,
pub ef_search: usize,
pub max_level: usize,
pub level_multiplier: f32,
pub seed: Option<u64>,
}Expand description
HNSW configuration for GPU operations
Fields§
§max_connections: usizeNumber of bidirectional links created for each node
ef_construction: usizeSize of the dynamic list for nearest neighbors (construction)
ef_search: usizeSize of the dynamic list for nearest neighbors (search)
max_level: usizeMaximum level in the hierarchy
level_multiplier: f32Level assignment multiplier
seed: Option<u64>Random seed for level assignment
Trait Implementations§
Source§impl Clone for HnswConfig
impl Clone for HnswConfig
Source§fn clone(&self) -> HnswConfig
fn clone(&self) -> HnswConfig
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 HnswConfig
impl Debug for HnswConfig
Source§impl Default for HnswConfig
impl Default for HnswConfig
Source§impl<'de> Deserialize<'de> for HnswConfig
impl<'de> Deserialize<'de> for HnswConfig
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 HnswConfig
impl RefUnwindSafe for HnswConfig
impl Send for HnswConfig
impl Sync for HnswConfig
impl Unpin for HnswConfig
impl UnwindSafe for HnswConfig
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