pub struct InjectionConfig {
pub candidate_pool: usize,
pub mmr_lambda: f32,
pub knee_gap_ratio: f32,
pub demotion_shown_min: i64,
pub demotion_factor: f32,
pub used_similarity: f32,
pub use_reinforcement: f32,
}Expand description
Tunables for injection attention selection.
Fields§
§candidate_pool: usizeRetrieval pool fanned out before selection.
mmr_lambda: f32MMR relevance weight; the remainder weighs redundancy.
knee_gap_ratio: f32Consecutive score ratio treated as the relevance knee.
demotion_shown_min: i64Shown at least this often with zero uses = demoted at selection.
demotion_factor: f32Score multiplier applied to chronically ignored memories.
used_similarity: f32Reply similarity above which a shown memory counts as used.
use_reinforcement: f32Salience reinforcement applied when a memory is actually used.
Trait Implementations§
Source§impl Clone for InjectionConfig
impl Clone for InjectionConfig
Source§fn clone(&self) -> InjectionConfig
fn clone(&self) -> InjectionConfig
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 moreSource§impl Debug for InjectionConfig
impl Debug for InjectionConfig
Auto Trait Implementations§
impl Freeze for InjectionConfig
impl RefUnwindSafe for InjectionConfig
impl Send for InjectionConfig
impl Sync for InjectionConfig
impl Unpin for InjectionConfig
impl UnsafeUnpin for InjectionConfig
impl UnwindSafe for InjectionConfig
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