pub struct SemanticDeduplicationConfig {
pub similarity_threshold: f32,
pub batch_size: usize,
pub max_memories_per_operation: usize,
pub min_memory_age_hours: i64,
pub prune_threshold: f64,
pub prune_age_days: i64,
pub target_memory_headroom: f32,
pub compression_targets: HashMap<MemoryTier, f32>,
pub lossless_critical: bool,
pub max_operation_time_seconds: u64,
}Expand description
Configuration for the semantic deduplication system
Fields§
§similarity_threshold: f32Cosine similarity threshold for considering memories as duplicates
batch_size: usizeBatch size for processing memories
max_memories_per_operation: usizeMaximum memories to process in a single operation
min_memory_age_hours: i64Minimum age before a memory can be considered for merging
prune_threshold: f64Recall probability threshold for auto-pruning
prune_age_days: i64Days after which memories with low recall probability can be pruned
target_memory_headroom: f32Target memory headroom percentage (0.0 to 1.0)
compression_targets: HashMap<MemoryTier, f32>Compression ratio targets by tier
lossless_critical: boolEnable/disable lossless compression for critical memories
max_operation_time_seconds: u64Maximum time for deduplication operation in seconds
Trait Implementations§
Source§impl Clone for SemanticDeduplicationConfig
impl Clone for SemanticDeduplicationConfig
Source§fn clone(&self) -> SemanticDeduplicationConfig
fn clone(&self) -> SemanticDeduplicationConfig
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 SemanticDeduplicationConfig
impl Debug for SemanticDeduplicationConfig
Source§impl<'de> Deserialize<'de> for SemanticDeduplicationConfig
impl<'de> Deserialize<'de> for SemanticDeduplicationConfig
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 SemanticDeduplicationConfig
impl RefUnwindSafe for SemanticDeduplicationConfig
impl Send for SemanticDeduplicationConfig
impl Sync for SemanticDeduplicationConfig
impl Unpin for SemanticDeduplicationConfig
impl UnwindSafe for SemanticDeduplicationConfig
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