pub struct FusedHit<K> {
pub key: K,
pub vector_squared_l2: Option<f64>,
pub lexical_bm25: Option<f64>,
pub fused_score: f64,
}Expand description
One fused hit with both transparent raw leg scores.
Fields§
§key: KCaller-defined common join key.
vector_squared_l2: Option<f64>Exact squared-L2, absent when the document appeared only lexically.
lexical_bm25: Option<f64>Exact BM25, absent when the document appeared only in the vector leg.
fused_score: f64Convex-combination or reciprocal-rank score, always higher-is-better.
Trait Implementations§
impl<K: PartialEq> StructuralPartialEq for FusedHit<K>
Auto Trait Implementations§
impl<K> Freeze for FusedHit<K>where
K: Freeze,
impl<K> RefUnwindSafe for FusedHit<K>where
K: RefUnwindSafe,
impl<K> Send for FusedHit<K>where
K: Send,
impl<K> Sync for FusedHit<K>where
K: Sync,
impl<K> Unpin for FusedHit<K>where
K: Unpin,
impl<K> UnsafeUnpin for FusedHit<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for FusedHit<K>where
K: UnwindSafe,
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