pub struct HybridScorer {
pub config: ScoringConfig,
}Expand description
The daemon’s hybrid ranking: weighted semantic + lexical + graph + freshness + confidence + provenance, gated on relevance thresholds.
Fields§
§config: ScoringConfigImplementations§
Trait Implementations§
Source§impl Clone for HybridScorer
impl Clone for HybridScorer
Source§impl Debug for HybridScorer
impl Debug for HybridScorer
Source§impl Default for HybridScorer
impl Default for HybridScorer
Source§impl Scorer for HybridScorer
impl Scorer for HybridScorer
Source§fn score_fact_with_graph(
&self,
fact: &Fact,
semantic: Option<f32>,
lexical: f32,
graph: f32,
now: DateTime<Utc>,
) -> Option<Score>
fn score_fact_with_graph( &self, fact: &Fact, semantic: Option<f32>, lexical: f32, graph: f32, now: DateTime<Utc>, ) -> Option<Score>
The graph signal orders relevant facts; like freshness, it never lets an irrelevant one through.
Source§fn score_episode(
&self,
episode: &Episode,
semantic: Option<f32>,
lexical: f32,
_now: DateTime<Utc>,
) -> Option<Score>
fn score_episode( &self, episode: &Episode, semantic: Option<f32>, lexical: f32, _now: DateTime<Utc>, ) -> Option<Score>
Episodes rank on relevance plus a small importance term, boosted by
recall count. Age is deliberately absent (daemon scoring.rs): an
old conversation must stay discoverable.
Auto Trait Implementations§
impl Forget for HybridScorer
impl Freeze for HybridScorer
impl Move for HybridScorer
impl RefUnwindSafe for HybridScorer
impl Send for HybridScorer
impl Sync for HybridScorer
impl Unpin for HybridScorer
impl UnsafeUnpin for HybridScorer
impl UnwindSafe for HybridScorer
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