refactor(memory): restructure memory system and improve configuration management
- Remove deprecated main.py entry point from memory module - Reorganize imports across controllers and services for consistency - Update emotion controller to pass db session instead of config_id to services - Enhance memory agent controller with db session parameter for status_type and user_profile endpoints - Refactor memory agent service to accept db parameter in classify_message_type method - Improve configuration handling in celery_app by removing automatic database reload - Update all memory-related services to use centralized config management - Standardize import ordering and remove unused imports across 50+ files - Add pilot_run_service for new pilot execution workflow - Refactor extraction engine, reflection engine, and search services for better modularity - Update LLM utilities and embedder configuration for improved flexibility - Enhance type classifier and verification tools with better error handling - Improve memory evaluation modules (LOCOMO, LongMemEval, MemSciQA) with consistent patterns
This commit is contained in:
@@ -391,6 +391,29 @@ class MemoryConfig:
|
||||
embedding_params: Dict[str, Any] = field(default_factory=dict)
|
||||
config_version: str = "2.0"
|
||||
|
||||
# Pipeline config: Deduplication
|
||||
enable_llm_dedup_blockwise: bool = False
|
||||
enable_llm_disambiguation: bool = False
|
||||
deep_retrieval: bool = True
|
||||
t_type_strict: float = 0.8
|
||||
t_name_strict: float = 0.8
|
||||
t_overall: float = 0.8
|
||||
|
||||
# Pipeline config: Statement extraction
|
||||
statement_granularity: int = 2
|
||||
include_dialogue_context: bool = False
|
||||
max_dialogue_context_chars: int = 1000
|
||||
|
||||
# Pipeline config: Forgetting engine
|
||||
lambda_time: float = 0.5
|
||||
lambda_mem: float = 0.5
|
||||
offset: float = 0.0
|
||||
|
||||
# Pipeline config: Pruning
|
||||
pruning_enabled: bool = False
|
||||
pruning_scene: Optional[str] = "education"
|
||||
pruning_threshold: float = 0.5
|
||||
|
||||
def __post_init__(self):
|
||||
"""Validate configuration after initialization."""
|
||||
if not self.config_name or not self.config_name.strip():
|
||||
|
||||
Reference in New Issue
Block a user