Expand description
Cognitive Memory System Integration
This module provides a unified interface for the SOTA cognitive memory system, integrating all cognitive enhancement components into a cohesive architecture.
§System Architecture
The Cognitive Memory System combines several research-backed components:
§Core Components
- Three-Component Scoring: Real-time memory importance calculation
- Cognitive Consolidation: Enhanced memory strengthening with spacing effects
- Reflection Engine: Meta-memory and insight generation
- Knowledge Graph: Semantic relationship tracking
- Loop Prevention: Quality control and duplicate detection
§Research Foundation
- Park et al. (2023): Generative agents three-component scoring
- Ebbinghaus (1885): Forgetting curve and spaced repetition
- Collins & Loftus (1975): Semantic network theory
- Flavell (1979): Metacognition and reflection processes
- Bjork (1994): Desirable difficulties and testing effects
§Usage Example
use codex::memory::CognitiveMemorySystem;
let mut system = CognitiveMemorySystem::new(repository).await?;
// Store memory with cognitive enhancement
let memory = system.store_memory_with_cognitive_processing(
"Important information to remember",
context
).await?;
// Retrieve with enhanced scoring
let results = system.cognitive_search(
"find related information",
search_context
).await?;
// Trigger reflection for insight generation
let insights = system.trigger_reflection_if_needed().await?;Structs§
- Cognitive
Flags - Flags indicating cognitive processing status
- Cognitive
Memory Config - Configuration for the complete cognitive memory system
- Cognitive
Memory Request - Enhanced memory storage request with cognitive context
- Cognitive
Memory Result - Enhanced memory with cognitive processing results
- Cognitive
Memory System - Main cognitive memory system orchestrator
- Cognitive
Performance Metrics - Performance metrics for the cognitive system