pub enum MultiQueryAggregation {
Min,
Max,
Avg,
Sum,
}Expand description
Aggregation method for multi-query vector search
When searching with multiple query vectors, this determines how distances from different queries are combined for each candidate.
Variants§
Min
Use minimum distance (best match across any query)
Max
Use maximum distance (worst match across queries)
Avg
Use average distance
Sum
Use sum of distances
Implementations§
Trait Implementations§
Source§impl Clone for MultiQueryAggregation
impl Clone for MultiQueryAggregation
Source§fn clone(&self) -> MultiQueryAggregation
fn clone(&self) -> MultiQueryAggregation
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 moreSource§impl Debug for MultiQueryAggregation
impl Debug for MultiQueryAggregation
Source§impl Default for MultiQueryAggregation
impl Default for MultiQueryAggregation
Source§fn default() -> MultiQueryAggregation
fn default() -> MultiQueryAggregation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MultiQueryAggregation
impl<'de> Deserialize<'de> for MultiQueryAggregation
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
Source§impl From<JsAggregation> for MultiQueryAggregation
impl From<JsAggregation> for MultiQueryAggregation
Source§fn from(a: JsAggregation) -> Self
fn from(a: JsAggregation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MultiQueryAggregation
impl PartialEq for MultiQueryAggregation
Source§impl Serialize for MultiQueryAggregation
impl Serialize for MultiQueryAggregation
impl Copy for MultiQueryAggregation
impl Eq for MultiQueryAggregation
impl StructuralPartialEq for MultiQueryAggregation
Auto Trait Implementations§
impl Freeze for MultiQueryAggregation
impl RefUnwindSafe for MultiQueryAggregation
impl Send for MultiQueryAggregation
impl Sync for MultiQueryAggregation
impl Unpin for MultiQueryAggregation
impl UnwindSafe for MultiQueryAggregation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more