pub struct ScoringConfig {
pub weights: HybridWeights,
pub semantic_min: f32,
pub lexical_min: f32,
pub freshness_window: Duration,
pub provenance_with_excerpt: f32,
pub provenance_without_excerpt: f32,
pub min_score: f32,
}Expand description
Tunables for HybridScorer.
Fields§
§weights: HybridWeights§semantic_min: f32A candidate is kept when its semantic similarity is above this…
lexical_min: f32…or its lexical score is above this. Both 0.3 in the daemon. The freshness/confidence/provenance signals only order candidates; they never let an irrelevant one through.
freshness_window: DurationFreshness falls linearly from 1 to 0 over this window (7 days).
provenance_with_excerpt: f32Provenance signal for a fact with / without a supporting excerpt.
provenance_without_excerpt: f32§min_score: f32Drop candidates whose fused score is at or below this (default 0).
Trait Implementations§
Source§impl Clone for ScoringConfig
impl Clone for ScoringConfig
impl Copy for ScoringConfig
Source§impl Debug for ScoringConfig
impl Debug for ScoringConfig
Source§impl Default for ScoringConfig
impl Default for ScoringConfig
Source§impl PartialEq for ScoringConfig
impl PartialEq for ScoringConfig
impl StructuralPartialEq for ScoringConfig
Auto Trait Implementations§
impl Forget for ScoringConfig
impl Freeze for ScoringConfig
impl Move for ScoringConfig
impl RefUnwindSafe for ScoringConfig
impl Send for ScoringConfig
impl Sync for ScoringConfig
impl Unpin for ScoringConfig
impl UnsafeUnpin for ScoringConfig
impl UnwindSafe for ScoringConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more