pub struct AdaptiveLearner { /* private fields */ }Expand description
Adaptive configuration learner.
Implementations§
Source§impl AdaptiveLearner
impl AdaptiveLearner
Sourcepub fn record_compression_feedback(
&mut self,
session_id: &str,
original_tokens: u32,
compressed_tokens: u32,
stage: &str,
rating: u8,
accepted: bool,
comments: Option<String>,
)
pub fn record_compression_feedback( &mut self, session_id: &str, original_tokens: u32, compressed_tokens: u32, stage: &str, rating: u8, accepted: bool, comments: Option<String>, )
Record compression feedback.
Sourcepub fn record_focus_feedback(
&mut self,
session_id: &str,
focus_topic: &str,
rating: u8,
accurate: bool,
suggested_correction: Option<String>,
)
pub fn record_focus_feedback( &mut self, session_id: &str, focus_topic: &str, rating: u8, accurate: bool, suggested_correction: Option<String>, )
Record focus detection feedback.
Sourcepub fn record_retrieval_feedback(
&mut self,
session_id: &str,
memory_id: &str,
memory_content: &str,
rating: u8,
relevant: bool,
suggested_context: Option<String>,
)
pub fn record_retrieval_feedback( &mut self, session_id: &str, memory_id: &str, memory_content: &str, rating: u8, relevant: bool, suggested_context: Option<String>, )
Record retrieval feedback.
Sourcepub fn get_preferences(&self) -> &AdaptivePreferences
pub fn get_preferences(&self) -> &AdaptivePreferences
Get current preferences.
Sourcepub fn get_stats(&self) -> &FeedbackStats
pub fn get_stats(&self) -> &FeedbackStats
Get current statistics.
Sourcepub fn get_compression_aggressiveness(&self) -> f32
pub fn get_compression_aggressiveness(&self) -> f32
Get compression aggressiveness.
Sourcepub fn get_focus_sensitivity(&self) -> f32
pub fn get_focus_sensitivity(&self) -> f32
Get focus sensitivity.
Sourcepub fn get_preferred_stage(&self) -> &str
pub fn get_preferred_stage(&self) -> &str
Get preferred compression stage.
Sourcepub fn get_retrieval_weight(&self, factor: &str) -> f32
pub fn get_retrieval_weight(&self, factor: &str) -> f32
Get retrieval weight for a specific factor.
Sourcepub fn export_feedback(&self) -> FeedbackExport
pub fn export_feedback(&self) -> FeedbackExport
Export feedback history for analysis.
Sourcepub fn import_feedback(&mut self, export: FeedbackExport)
pub fn import_feedback(&mut self, export: FeedbackExport)
Import feedback history.
Sourcepub fn prune_old_feedback(&mut self)
pub fn prune_old_feedback(&mut self)
Clear old feedback (keep last 100).
Sourcepub fn generate_report(&self) -> String
pub fn generate_report(&self) -> String
Generate adaptation report.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdaptiveLearner
impl RefUnwindSafe for AdaptiveLearner
impl Send for AdaptiveLearner
impl Sync for AdaptiveLearner
impl Unpin for AdaptiveLearner
impl UnsafeUnpin for AdaptiveLearner
impl UnwindSafe for AdaptiveLearner
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