pub enum IndexType {
Hnsw(HnswConfig),
IvfPq(IvfPqConfig),
Auto,
}Expand description
Which index algorithm to embed in the AILK section.
Variants§
Hnsw(HnswConfig)
HNSW (default). Best recall for in-memory workloads.
IvfPq(IvfPqConfig)
IVF-PQ. Best for S3: 10-100x smaller index, sequential inverted-list reads.
Auto
Detect hardware at write time and pick the best index automatically.
Chooses IVF-PQ when a GPU or ≥8 CPU cores are available AND the dataset has ≥5 000 vectors. Falls back to HNSW otherwise (local/low-power hardware).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndexType
impl RefUnwindSafe for IndexType
impl Send for IndexType
impl Sync for IndexType
impl Unpin for IndexType
impl UnsafeUnpin for IndexType
impl UnwindSafe for IndexType
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