#[non_exhaustive]pub enum IndexKind {
Hnsw,
Vamana,
DiskVamana,
Ivf,
Colbert,
}Expand description
The index structure a collection is served by (ADR-0007). The default is the in-memory HNSW graph; the others are the Phase 2 memory-frugal options.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Hnsw
In-memory HNSW graph: lowest latency, fits in RAM. The default.
Vamana
In-memory Vamana (DiskANN) graph.
DiskVamana
Disk-resident Vamana: PQ codes in RAM, graph + full vectors on SSD.
Ivf
Inverted-file index with coarse Voronoi partitioning.
Colbert
ColBERTv2/PLAID compressed token-pool index for late-interaction
(multivector) collections: centroid + residual-PQ codes in RAM with
centroid-pruned candidate generation (ADR-0034). Valid only for a
multivector collection.
Trait Implementations§
impl Copy for IndexKind
Source§impl<'de> Deserialize<'de> for IndexKind
impl<'de> Deserialize<'de> for IndexKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IndexKind
Source§impl Serialize for IndexKind
impl Serialize for IndexKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for IndexKind
Auto Trait Implementations§
impl Freeze for IndexKind
impl RefUnwindSafe for IndexKind
impl Send for IndexKind
impl Sync for IndexKind
impl Unpin for IndexKind
impl UnsafeUnpin for IndexKind
impl UnwindSafe for IndexKind
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