pub struct RecallScoringConfig {
pub half_life_days_short: Option<f64>,
pub half_life_days_mid: Option<f64>,
pub half_life_days_long: Option<f64>,
pub legacy_scoring: bool,
}Expand description
Per-tier half-life (days) overrides loaded from [scoring] section of
config.toml.
The half-life is the number of days it takes for a memory’s recall score
to drop to 50% of its undecayed value. Shorter half-lives prioritize fresh
memories; longer half-lives give older memories more weight. Defaults are
chosen so each tier’s decay curve matches its retention expectations:
short memories decay quickly (7 d), mid moderately (30 d), long
slowly (365 d).
Setting legacy_scoring = true disables the decay multiplier entirely,
restoring the pre-v0.6.0.0 blended-score behavior for A/B comparison or
if a recall-quality regression is reported.
Fields§
§half_life_days_short: Option<f64>Half-life for short-tier memories, in days (default 7).
half_life_days_mid: Option<f64>Half-life for mid-tier memories, in days (default 30).
half_life_days_long: Option<f64>Half-life for long-tier memories, in days (default 365).
legacy_scoring: boolWhen true, skip the decay multiplier entirely. Default false.
Trait Implementations§
Source§impl Clone for RecallScoringConfig
impl Clone for RecallScoringConfig
Source§fn clone(&self) -> RecallScoringConfig
fn clone(&self) -> RecallScoringConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RecallScoringConfig
impl Debug for RecallScoringConfig
Source§impl Default for RecallScoringConfig
impl Default for RecallScoringConfig
Source§fn default() -> RecallScoringConfig
fn default() -> RecallScoringConfig
Source§impl<'de> Deserialize<'de> for RecallScoringConfig
impl<'de> Deserialize<'de> for RecallScoringConfig
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>,
Auto Trait Implementations§
impl Freeze for RecallScoringConfig
impl RefUnwindSafe for RecallScoringConfig
impl Send for RecallScoringConfig
impl Sync for RecallScoringConfig
impl Unpin for RecallScoringConfig
impl UnsafeUnpin for RecallScoringConfig
impl UnwindSafe for RecallScoringConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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>
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>
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