pub struct CognitiveConfig {Show 21 fields
pub write_inference: bool,
pub decay_on_recall: bool,
pub pain_tracking: bool,
pub interference_detection: bool,
pub phantom_tracking: bool,
pub speculative_cache: bool,
pub archival_evaluation: bool,
pub inference_config: WriteInferenceConfig,
pub decay_config: DecayConfig,
pub phantom_config: PhantomConfig,
pub archival_config: ArchivalConfig,
pub stream_config: StreamConfig,
pub enrichment_config: EnrichmentConfig,
pub interference_threshold: f32,
pub trajectory_max_turns: usize,
pub speculative_cache_size: usize,
pub pain_max_warnings: usize,
pub injection_config: InjectionConfig,
pub flush_snapshot_interval: u32,
pub entity_boost_enabled: bool,
pub entity_boost_weight: f32,
}Expand description
Configuration for the cognitive engine subsystems.
Fields§
§write_inference: boolWhether write inference (auto-edges, contradiction detection) is enabled on store.
decay_on_recall: boolWhether salience decay is applied during retrieval.
pain_tracking: boolWhether pain tracking is enabled.
interference_detection: boolWhether interference detection is available.
phantom_tracking: boolWhether phantom tracking is enabled.
speculative_cache: boolWhether speculative caching is enabled.
archival_evaluation: boolWhether archival evaluation is available.
inference_config: WriteInferenceConfigConfiguration for the write inference engine.
decay_config: DecayConfigConfiguration for the decay engine.
phantom_config: PhantomConfigConfiguration for phantom tracking.
archival_config: ArchivalConfigConfiguration for the archival pipeline.
stream_config: StreamConfigConfiguration for the cognition stream.
enrichment_config: EnrichmentConfigConfiguration for sleeptime enrichment.
interference_threshold: f32Similarity threshold for interference detection.
trajectory_max_turns: usizeMaximum trajectory turns to track.
speculative_cache_size: usizeMaximum speculative cache entries.
pain_max_warnings: usizeMaximum pain signals to retain.
injection_config: InjectionConfigConfiguration for injection attention selection.
flush_snapshot_interval: u32How many hot flushes may pass before index and graph snapshots are rewritten. Durability comes from the WAL checkpoint on every flush; snapshots only accelerate reopen, and open reconciles stale ones, so rewriting them per flush just multiplies fsync cost.
entity_boost_enabled: boolWhether recall boosts memories linked (in the graph) to an entity named in
the query. Off by default: it only helps corpora that have run enrichment
(so entity nodes and their Derived edges exist), and its ranking effect
should be A/B measured before it is turned on broadly.
entity_boost_weight: f32Score added to a candidate that a query-named entity links to. Applied on top of the fused recall score, so it is calibrated against that scale.
Trait Implementations§
Source§impl Clone for CognitiveConfig
impl Clone for CognitiveConfig
Source§fn clone(&self) -> CognitiveConfig
fn clone(&self) -> CognitiveConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more