pub struct DiskAnnConfig {
pub dim: usize,
pub max_degree: usize,
pub build_beam: usize,
pub search_beam: usize,
pub alpha: f32,
pub pq_subspaces: usize,
pub pq_iterations: usize,
pub storage_path: Option<PathBuf>,
}Expand description
Configuration for DiskANN index
Fields§
§dim: usizeVector dimension
max_degree: usizeMaximum out-degree for Vamana graph (R)
build_beam: usizeSearch beam width during construction (L_build)
search_beam: usizeSearch beam width during query (L_search)
alpha: f32Alpha parameter for robust pruning (>= 1.0)
pq_subspaces: usizeNumber of PQ subspaces (M). 0 = no PQ.
pq_iterations: usizePQ training iterations
storage_path: Option<PathBuf>Storage directory for persistence
Trait Implementations§
Source§impl Clone for DiskAnnConfig
impl Clone for DiskAnnConfig
Source§fn clone(&self) -> DiskAnnConfig
fn clone(&self) -> DiskAnnConfig
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 DiskAnnConfig
impl Debug for DiskAnnConfig
Auto Trait Implementations§
impl Freeze for DiskAnnConfig
impl RefUnwindSafe for DiskAnnConfig
impl Send for DiskAnnConfig
impl Sync for DiskAnnConfig
impl Unpin for DiskAnnConfig
impl UnsafeUnpin for DiskAnnConfig
impl UnwindSafe for DiskAnnConfig
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,
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