Skip to main content

RecallWeights

Struct RecallWeights 

Source
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 least overdue_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: f32

Relevance 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§metadata_share: 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: f32

Trait Implementations§

Source§

impl Clone for RecallWeights

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RecallWeights

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RecallWeights

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for RecallWeights

Source§

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

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for RecallWeights

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for RecallWeights

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.