pub enum FuseStrategy {
Rrf {
k: usize,
},
Weighted {
weights: Vec<f64>,
},
Union,
}Expand description
Fusion strategy for combining sub-query result lists.
Mirrors FusionStrategy at the IR level
so that the query plan is self-contained and serialisable without depending
on runtime fusion internals.
Variants§
Rrf
Reciprocal Rank Fusion with smoothing constant k.
Standard default: k = 60 (Cormack et al., 2009).
Weighted
Weighted linear combination of scores.
One weight per child; weights are normalised at execution time.
Union
Union with max-score-per-document semantics.
Trait Implementations§
Source§impl Clone for FuseStrategy
impl Clone for FuseStrategy
Source§impl Debug for FuseStrategy
impl Debug for FuseStrategy
Source§impl<'de> Deserialize<'de> for FuseStrategy
impl<'de> Deserialize<'de> for FuseStrategy
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
Auto Trait Implementations§
impl Freeze for FuseStrategy
impl RefUnwindSafe for FuseStrategy
impl Send for FuseStrategy
impl Sync for FuseStrategy
impl Unpin for FuseStrategy
impl UnsafeUnpin for FuseStrategy
impl UnwindSafe for FuseStrategy
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