pub enum IndexBackend {
Hnsw,
Ivf,
}Expand description
Which approximate-nearest-neighbor backend to build.
Both backends sit behind the same index trait and share the two-level hybrid search; this only selects the graph/partition structure.
Variants§
Hnsw
Hierarchical Navigable Small World graph with high-degree-preserving pruning. Best recall/latency tradeoff; the default.
Ivf
Inverted file (k-means) partitioning. Naturally sequential per-list reads make it friendly to spinning disks.
Trait Implementations§
Source§impl Clone for IndexBackend
impl Clone for IndexBackend
impl Copy for IndexBackend
Source§impl Debug for IndexBackend
impl Debug for IndexBackend
Source§impl Default for IndexBackend
impl Default for IndexBackend
Source§impl<'de> Deserialize<'de> for IndexBackend
impl<'de> Deserialize<'de> for IndexBackend
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 IndexBackend
Source§impl Hash for IndexBackend
impl Hash for IndexBackend
Source§impl PartialEq for IndexBackend
impl PartialEq for IndexBackend
Source§impl Serialize for IndexBackend
impl Serialize for IndexBackend
impl StructuralPartialEq for IndexBackend
Auto Trait Implementations§
impl Freeze for IndexBackend
impl RefUnwindSafe for IndexBackend
impl Send for IndexBackend
impl Sync for IndexBackend
impl Unpin for IndexBackend
impl UnsafeUnpin for IndexBackend
impl UnwindSafe for IndexBackend
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