pub struct HybridScoreExplanation {
pub lexical_match: ScoreComponent,
pub semantic_similarity: ScoreComponent,
pub brightness: ScoreComponent,
pub domain_overlap: ScoreComponent,
pub validation: ScoreComponent,
pub authority_weight: ScoreComponent,
pub contradiction_risk: ScoreComponent,
pub staleness_penalty: ScoreComponent,
pub final_score: f32,
}Expand description
Full hybrid score explanation.
Fields§
§lexical_match: ScoreComponent0.30 * lexical_match.
semantic_similarity: ScoreComponent0.25 * semantic_similarity; fixed to zero for v0.
brightness: ScoreComponent0.15 * brightness.
domain_overlap: ScoreComponent0.10 * domain_overlap.
validation: ScoreComponent0.10 * validation.
0.10 * authority_weight.
contradiction_risk: ScoreComponent-0.25 * contradiction_risk.
staleness_penalty: ScoreComponent-0.10 * staleness_penalty.
final_score: f32Final retrieval score.
Trait Implementations§
Source§impl Clone for HybridScoreExplanation
impl Clone for HybridScoreExplanation
Source§fn clone(&self) -> HybridScoreExplanation
fn clone(&self) -> HybridScoreExplanation
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 HybridScoreExplanation
impl Debug for HybridScoreExplanation
Source§impl PartialEq for HybridScoreExplanation
impl PartialEq for HybridScoreExplanation
Source§fn eq(&self, other: &HybridScoreExplanation) -> bool
fn eq(&self, other: &HybridScoreExplanation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for HybridScoreExplanation
impl StructuralPartialEq for HybridScoreExplanation
Auto Trait Implementations§
impl Freeze for HybridScoreExplanation
impl RefUnwindSafe for HybridScoreExplanation
impl Send for HybridScoreExplanation
impl Sync for HybridScoreExplanation
impl Unpin for HybridScoreExplanation
impl UnsafeUnpin for HybridScoreExplanation
impl UnwindSafe for HybridScoreExplanation
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