pub struct ScoringDecayConfig {
pub recency_notes: DecayParams,
pub recency_artifacts: DecayParams,
pub warmth: DecayParams,
pub graph_proximity: DecayParams,
pub causal_proximity: DecayParams,
}Expand description
Per-factor decay configuration.
Each scoring factor can use the unified parametric decay with its own
half-life and shape. Builders override these via ScoringDecayConfig
in the pack bundle manifest or environment variables.
Fields§
§recency_notes: DecayParamsRecency decay for notes (default: τ=7 days, β=1.0 exponential)
recency_artifacts: DecayParamsRecency decay for artifacts (default: τ=30 days, β=1.0 exponential)
warmth: DecayParamsWarmth (access frequency) decay (default: τ=7 days, β=1.0 exponential)
graph_proximity: DecayParamsGraph proximity decay over hop distance (default: τ=5 hops, β=1.0)
Replaces the legacy linear decay 1 - d/D with smooth exponential.
causal_proximity: DecayParamsCausal proximity decay over event recency (default: τ=10 events, β=0.8 heavy-tail)
Implementations§
Trait Implementations§
Source§impl Clone for ScoringDecayConfig
impl Clone for ScoringDecayConfig
Source§fn clone(&self) -> ScoringDecayConfig
fn clone(&self) -> ScoringDecayConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScoringDecayConfig
impl Debug for ScoringDecayConfig
Source§impl Default for ScoringDecayConfig
impl Default for ScoringDecayConfig
Source§impl<'de> Deserialize<'de> for ScoringDecayConfig
impl<'de> Deserialize<'de> for ScoringDecayConfig
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 ScoringDecayConfig
impl PartialEq for ScoringDecayConfig
Source§impl Serialize for ScoringDecayConfig
impl Serialize for ScoringDecayConfig
impl StructuralPartialEq for ScoringDecayConfig
Auto Trait Implementations§
impl Freeze for ScoringDecayConfig
impl RefUnwindSafe for ScoringDecayConfig
impl Send for ScoringDecayConfig
impl Sync for ScoringDecayConfig
impl Unpin for ScoringDecayConfig
impl UnwindSafe for ScoringDecayConfig
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