pub enum RecallPolicy {
Importance,
Hybrid {
recency_weight: f32,
frequency_weight: f32,
},
}Expand description
Controls how memories are scored and ranked during recall.
Variants§
Importance
Rank purely by importance score (default).
Hybrid
Hybrid score: blends importance, recency, and recall frequency.
score = importance + recency_score * recency_weight + frequency_score * frequency_weight
where recency_score = exp(-age_hours / 24.0) and
frequency_score = recall_count / (max_recall_count + 1) (normalized).
Trait Implementations§
Source§impl Clone for RecallPolicy
impl Clone for RecallPolicy
Source§fn clone(&self) -> RecallPolicy
fn clone(&self) -> RecallPolicy
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 moreAuto Trait Implementations§
impl Freeze for RecallPolicy
impl RefUnwindSafe for RecallPolicy
impl Send for RecallPolicy
impl Sync for RecallPolicy
impl Unpin for RecallPolicy
impl UnsafeUnpin for RecallPolicy
impl UnwindSafe for RecallPolicy
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