pub struct RecallHit {
pub entry: MemoryEntry,
pub bm25_score: f32,
pub vector_score: Option<f32>,
pub final_score: f32,
}Expand description
Weighted recall hit returned by hybrid retrieval.
Fields§
§entry: MemoryEntryMatched entry.
bm25_score: f32Normalized BM25 score in [0, 1].
vector_score: Option<f32>Normalized vector similarity in [0, 1].
final_score: f32Final fused score in [0, 1].
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RecallHit
impl<'de> Deserialize<'de> for RecallHit
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
impl StructuralPartialEq for RecallHit
Auto Trait Implementations§
impl Freeze for RecallHit
impl RefUnwindSafe for RecallHit
impl Send for RecallHit
impl Sync for RecallHit
impl Unpin for RecallHit
impl UnsafeUnpin for RecallHit
impl UnwindSafe for RecallHit
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