pub struct RecallWeights {Show 20 fields
pub lexical_coverage: f32,
pub lexical_jaccard: f32,
pub match_floor: f32,
pub cue_lexical: f32,
pub cue_tag: f32,
pub meta_recency: f32,
pub meta_salience: f32,
pub meta_confidence: f32,
pub meta_provenance: f32,
pub meta_prospective: f32,
pub relevance_base: f32,
pub metadata_share: f32,
pub recency_scale_days: f64,
pub unverified_provenance_factor: f32,
pub prospective_scale_days: f64,
pub undated_commitment_urgency: f32,
pub overdue_floor: f32,
pub listing_scale: f32,
pub redundant_at: f32,
pub redundancy_penalty: f32,
}Expand description
Weights and scales of the recall score:
lexical = max(lexical_coverage × coverage + lexical_jaccard × jaccard, match_floor)when any query term matches;cue = cue_lexical × lexical + cue_tag × tag(only one of them when the query has only terms or only tags);- `meta = meta_recency × recency + meta_salience × salience + meta_confidence × confidence
- meta_provenance × provenance + meta_prospective × prospective`, clamped to [0, 1];
score = cue × (relevance_base + metadata_share × meta); an overdue commitment scores at leastoverdue_floor; with no cue at all,score = listing_scale × meta.
recency = 1 / (1 + age_days / recency_scale_days); provenance = authority × (1 if verified, else unverified_provenance_factor); a commitment’s prospective = 1 / (1 + days_left / prospective_scale_days), 1 when overdue, undated_commitment_urgency
without a deadline. Redundancy suppression folds a result whose word overlap with a
better one is at least redundant_at and otherwise multiplies its score by
1 − redundancy_penalty × overlap.
Fields§
§lexical_coverage: f32§lexical_jaccard: f32§match_floor: f32Relevance given to any trace that shares at least one content term with the query.
cue_lexical: f32§cue_tag: f32§meta_recency: f32§meta_salience: f32§meta_confidence: f32§meta_provenance: f32§meta_prospective: f32§relevance_base: f32§recency_scale_days: f64§unverified_provenance_factor: f32§prospective_scale_days: f64§undated_commitment_urgency: f32§overdue_floor: f32§listing_scale: f32§redundant_at: f32§redundancy_penalty: f32Trait Implementations§
Source§impl Clone for RecallWeights
impl Clone for RecallWeights
Source§impl Debug for RecallWeights
impl Debug for RecallWeights
Source§impl Default for RecallWeights
impl Default for RecallWeights
Source§impl<'de> Deserialize<'de> for RecallWeightswhere
RecallWeights: Default,
impl<'de> Deserialize<'de> for RecallWeightswhere
RecallWeights: Default,
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
Source§impl PartialEq for RecallWeights
impl PartialEq for RecallWeights
Source§impl Serialize for RecallWeights
impl Serialize for RecallWeights
impl StructuralPartialEq for RecallWeights
Auto Trait Implementations§
impl Freeze for RecallWeights
impl RefUnwindSafe for RecallWeights
impl Send for RecallWeights
impl Sync for RecallWeights
impl Unpin for RecallWeights
impl UnsafeUnpin for RecallWeights
impl UnwindSafe for RecallWeights
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