pub enum RankingExpression {
Fusion {
sources: Vec<QueryExpression>,
method: FusionMethod,
rank_constant: f32,
rank_window_size: Option<usize>,
weights: Option<Vec<f32>>,
},
}Expand description
Result-set composition expressions.
See [[feature-rrf-retrievers#RankingExpression]].
Variants§
Fusion
Fuse N query sources using a configurable method.
Each source is executed independently, then results are combined using the specified fusion method. Sources can be scoring queries or nested fusion expressions.
Fields
§
sources: Vec<QueryExpression>§
method: FusionMethodTrait Implementations§
Source§impl Clone for RankingExpression
impl Clone for RankingExpression
Source§fn clone(&self) -> RankingExpression
fn clone(&self) -> RankingExpression
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RankingExpression
impl Debug for RankingExpression
Source§impl PartialEq for RankingExpression
impl PartialEq for RankingExpression
Source§fn eq(&self, other: &RankingExpression) -> bool
fn eq(&self, other: &RankingExpression) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RankingExpression
Auto Trait Implementations§
impl Freeze for RankingExpression
impl RefUnwindSafe for RankingExpression
impl Send for RankingExpression
impl Sync for RankingExpression
impl Unpin for RankingExpression
impl UnsafeUnpin for RankingExpression
impl UnwindSafe for RankingExpression
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