pub enum SearchAlgorithm {
Cosine,
Euclidean,
DotProduct,
Hybrid {
methods: Vec<SearchAlgorithm>,
weights: Vec<f32>,
},
}Expand description
Search algorithms available
Variants§
Cosine
Cosine similarity search
Euclidean
Euclidean distance search
DotProduct
Dot product search
Hybrid
Hybrid search (combine multiple methods)
Trait Implementations§
Source§impl Clone for SearchAlgorithm
impl Clone for SearchAlgorithm
Source§fn clone(&self) -> SearchAlgorithm
fn clone(&self) -> SearchAlgorithm
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SearchAlgorithm
impl RefUnwindSafe for SearchAlgorithm
impl Send for SearchAlgorithm
impl Sync for SearchAlgorithm
impl Unpin for SearchAlgorithm
impl UnwindSafe for SearchAlgorithm
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