pub enum RecommendationStrategy {
AverageVector,
BestScore,
}Expand description
RecommendationStrategy : Strategy to use for recommendations, either "average_vector" or "best_score". The default is "average_vector". The "average_vector" strategy will construct a single average vector from the positive and negative samples then use it to perform a pseudo-search. The "best_score" strategy is more advanced and navigates the HNSW with a heuristic of picking edges where the point is closer to the positive samples than it is the negatives. Strategy to use for recommendations, either "average_vector" or "best_score". The default is "average_vector". The "average_vector" strategy will construct a single average vector from the positive and negative samples then use it to perform a pseudo-search. The "best_score" strategy is more advanced and navigates the HNSW with a heuristic of picking edges where the point is closer to the positive samples than it is the negatives.
Variants§
Trait Implementations§
Source§impl Clone for RecommendationStrategy
impl Clone for RecommendationStrategy
Source§fn clone(&self) -> RecommendationStrategy
fn clone(&self) -> RecommendationStrategy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RecommendationStrategy
impl Debug for RecommendationStrategy
Source§impl Default for RecommendationStrategy
impl Default for RecommendationStrategy
Source§fn default() -> RecommendationStrategy
fn default() -> RecommendationStrategy
Source§impl<'de> Deserialize<'de> for RecommendationStrategy
impl<'de> Deserialize<'de> for RecommendationStrategy
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>,
Source§impl Hash for RecommendationStrategy
impl Hash for RecommendationStrategy
Source§impl Ord for RecommendationStrategy
impl Ord for RecommendationStrategy
Source§fn cmp(&self, other: &RecommendationStrategy) -> Ordering
fn cmp(&self, other: &RecommendationStrategy) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for RecommendationStrategy
impl PartialEq for RecommendationStrategy
Source§impl PartialOrd for RecommendationStrategy
impl PartialOrd for RecommendationStrategy
Source§impl Serialize for RecommendationStrategy
impl Serialize for RecommendationStrategy
Source§impl ToString for RecommendationStrategy
impl ToString for RecommendationStrategy
impl Copy for RecommendationStrategy
impl Eq for RecommendationStrategy
impl StructuralPartialEq for RecommendationStrategy
Auto Trait Implementations§
impl Freeze for RecommendationStrategy
impl RefUnwindSafe for RecommendationStrategy
impl Send for RecommendationStrategy
impl Sync for RecommendationStrategy
impl Unpin for RecommendationStrategy
impl UnwindSafe for RecommendationStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.