pub struct ScoreWeights {
pub alpha: f32,
pub beta: f32,
pub gamma: f32,
pub delta: f32,
pub half_life_secs: f32,
}Expand description
Weights for the multi-signal recall score.
score = α·similarity + β·recency + γ·importance + δ·ln(access_count + 1)
Fields§
§alpha: f32Weight on semantic similarity.
beta: f32Weight on recency decay.
gamma: f32Weight on the importance score.
delta: f32Weight on access frequency.
half_life_secs: f32Half-life of the recency term, in seconds.
Implementations§
Trait Implementations§
Source§impl Clone for ScoreWeights
impl Clone for ScoreWeights
Source§fn clone(&self) -> ScoreWeights
fn clone(&self) -> ScoreWeights
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScoreWeights
Source§impl Debug for ScoreWeights
impl Debug for ScoreWeights
Auto Trait Implementations§
impl Freeze for ScoreWeights
impl RefUnwindSafe for ScoreWeights
impl Send for ScoreWeights
impl Sync for ScoreWeights
impl Unpin for ScoreWeights
impl UnsafeUnpin for ScoreWeights
impl UnwindSafe for ScoreWeights
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