pub struct DiskAnnOptions {
pub r: usize,
pub l: usize,
pub beam_width: usize,
pub alpha: u32,
}Expand description
DiskANN (Vamana) build parameters.
Fields§
§r: usizeMaximum graph degree R (the robust-prune degree bound). Default 64.
l: usizeSearch-list size L during build (controls build quality/time).
Default 128. Must be >= r.
beam_width: usizeSearch beam width at query time (number of candidate vectors fetched per I/O round). Default 8.
alpha: u32Robust-prune distance threshold alpha × 100 (stored as integer for
Eq; 120 = alpha 1.2). Default 120. Range [100, 300].
Trait Implementations§
Source§impl Clone for DiskAnnOptions
impl Clone for DiskAnnOptions
Source§fn clone(&self) -> DiskAnnOptions
fn clone(&self) -> DiskAnnOptions
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 DiskAnnOptions
impl Debug for DiskAnnOptions
Source§impl Default for DiskAnnOptions
impl Default for DiskAnnOptions
Source§impl<'de> Deserialize<'de> for DiskAnnOptions
impl<'de> Deserialize<'de> for DiskAnnOptions
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
impl Eq for DiskAnnOptions
Source§impl PartialEq for DiskAnnOptions
impl PartialEq for DiskAnnOptions
Source§impl Serialize for DiskAnnOptions
impl Serialize for DiskAnnOptions
impl StructuralPartialEq for DiskAnnOptions
Auto Trait Implementations§
impl Freeze for DiskAnnOptions
impl RefUnwindSafe for DiskAnnOptions
impl Send for DiskAnnOptions
impl Sync for DiskAnnOptions
impl Unpin for DiskAnnOptions
impl UnsafeUnpin for DiskAnnOptions
impl UnwindSafe for DiskAnnOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more