#[non_exhaustive]pub struct PerHitExplain {
pub id: u64,
pub arm: SoftFallbackBranch,
pub vector_rank: Option<u32>,
pub text_rank: Option<u32>,
pub graph_rank: Option<u32>,
pub fused_score: f64,
pub ce_score: Option<f64>,
pub blended: f64,
}Expand description
0.8.8 EXP-OBS (Slice 5) — per-hit provenance + score breakdown. One entry per
returned SearchHit, same order. *_rank is the 0-based rank the hit’s body
held in that arm’s pre-fusion list (None = absent from that arm).
Derives Clone, Debug, PartialEq but not Eq — scores are f64.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: u64§arm: SoftFallbackBranchWinning arm after RRF dedup (vector-first), == SearchHit.branch.
vector_rank: Option<u32>§text_rank: Option<u32>§graph_rank: Option<u32>§fused_score: f64Raw RRF fused score AFTER recency reweight, BEFORE CE blend (the value
ce_rerank normalizes). Faithful to the engine computation — downstream
may normalize. (ADR §A.4 Q1: raw exposed; normalization deferred.)
ce_score: Option<f64>In-pool cross-encoder score sigmoid(ce_logit) ∈ [0,1], == the returned
SearchHit.ce_score; None outside the reranked pool / no-CE path.
blended: f64Final blended score, == the returned SearchHit.score.
Trait Implementations§
Source§impl Clone for PerHitExplain
impl Clone for PerHitExplain
Source§fn clone(&self) -> PerHitExplain
fn clone(&self) -> PerHitExplain
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 PerHitExplain
impl Debug for PerHitExplain
Source§impl PartialEq for PerHitExplain
impl PartialEq for PerHitExplain
Source§fn eq(&self, other: &PerHitExplain) -> bool
fn eq(&self, other: &PerHitExplain) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PerHitExplain
Auto Trait Implementations§
impl Freeze for PerHitExplain
impl RefUnwindSafe for PerHitExplain
impl Send for PerHitExplain
impl Sync for PerHitExplain
impl Unpin for PerHitExplain
impl UnsafeUnpin for PerHitExplain
impl UnwindSafe for PerHitExplain
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