pub struct EnhancedRetrievalConfig {
pub consolidation_boost_multiplier: f64,
pub recent_consolidation_threshold_hours: i64,
pub max_lineage_depth: usize,
pub include_insights: bool,
pub enable_query_caching: bool,
pub cache_ttl_seconds: u64,
pub max_cache_size: usize,
pub p95_latency_target_ms: u64,
pub insight_confidence_threshold: f64,
pub insight_importance_weight: f64,
}Expand description
Configuration for memory-aware retrieval
Fields§
§consolidation_boost_multiplier: f64Boost multiplier for recently consolidated memories
recent_consolidation_threshold_hours: i64Hours within which consolidation is considered “recent”
max_lineage_depth: usizeMaximum depth for memory lineage traversal
include_insights: boolInclude reflection/insight memories in results
enable_query_caching: boolEnable query pattern caching
cache_ttl_seconds: u64Cache TTL in seconds
max_cache_size: usizeMaximum cache size (number of entries)
p95_latency_target_ms: u64Performance target for p95 latency (milliseconds)
insight_confidence_threshold: f64Minimum confidence threshold for insights
insight_importance_weight: f64Weight for insight importance in scoring
Trait Implementations§
Source§impl Clone for EnhancedRetrievalConfig
impl Clone for EnhancedRetrievalConfig
Source§fn clone(&self) -> EnhancedRetrievalConfig
fn clone(&self) -> EnhancedRetrievalConfig
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 EnhancedRetrievalConfig
impl Debug for EnhancedRetrievalConfig
Source§impl Default for EnhancedRetrievalConfig
impl Default for EnhancedRetrievalConfig
Source§impl<'de> Deserialize<'de> for EnhancedRetrievalConfig
impl<'de> Deserialize<'de> for EnhancedRetrievalConfig
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
Auto Trait Implementations§
impl Freeze for EnhancedRetrievalConfig
impl RefUnwindSafe for EnhancedRetrievalConfig
impl Send for EnhancedRetrievalConfig
impl Sync for EnhancedRetrievalConfig
impl Unpin for EnhancedRetrievalConfig
impl UnwindSafe for EnhancedRetrievalConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more