pub enum IndexStrategy {
BruteForce,
LSH {
num_tables: usize,
num_hyperplanes: usize,
},
}Expand description
Index strategy for the super::InMemoryVectorStore
Variants§
BruteForce
Checks all documents in the vector store to find the most relevant documents.
LSH
Uses LSH to find candidates then computes exact distances.
Trait Implementations§
Source§impl Clone for IndexStrategy
impl Clone for IndexStrategy
Source§fn clone(&self) -> IndexStrategy
fn clone(&self) -> IndexStrategy
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndexStrategy
impl Debug for IndexStrategy
Source§impl Default for IndexStrategy
impl Default for IndexStrategy
Source§fn default() -> IndexStrategy
fn default() -> IndexStrategy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IndexStrategy
impl RefUnwindSafe for IndexStrategy
impl Send for IndexStrategy
impl Sync for IndexStrategy
impl Unpin for IndexStrategy
impl UnwindSafe for IndexStrategy
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)