pub struct HNSWSearchParams {
pub ef: u32,
pub limit: u32,
pub distance_far: Option<f64>,
pub distance_near: Option<f64>,
pub pruning: bool,
}Fields§
§ef: u32the size of the dynamic candidate list in the HNSW algorithm retrieval process
limit: u32§distance_far: Option<f64>the farthest distance in the range retrieval scenario
distance_near: Option<f64>the nearest distance in the range retrieval scenario
pruning: boolTrait Implementations§
Source§impl Clone for HNSWSearchParams
impl Clone for HNSWSearchParams
Source§fn clone(&self) -> HNSWSearchParams
fn clone(&self) -> HNSWSearchParams
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 HNSWSearchParams
impl Debug for HNSWSearchParams
Auto Trait Implementations§
impl Freeze for HNSWSearchParams
impl RefUnwindSafe for HNSWSearchParams
impl Send for HNSWSearchParams
impl Sync for HNSWSearchParams
impl Unpin for HNSWSearchParams
impl UnwindSafe for HNSWSearchParams
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