From d05ed8a16ea5f3d2634bd80ed03ee4f0a04f4861 Mon Sep 17 00:00:00 2001 From: mtayfur Date: Sat, 18 Oct 2025 20:31:04 +0300 Subject: [PATCH] Update semantic retrieval thresholds in Constants class for improved accuracy --- memory_system.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/memory_system.py b/memory_system.py index 3e6a75b..3fdc595 100644 --- a/memory_system.py +++ b/memory_system.py @@ -44,13 +44,13 @@ class Constants: CACHE_KEY_HASH_PREFIX_LENGTH = 10 # Hash prefix length for cache keys # Retrieval & Similarity - SEMANTIC_RETRIEVAL_THRESHOLD = 0.5 # Semantic similarity threshold for retrieval - RELAXED_SEMANTIC_THRESHOLD_MULTIPLIER = 0.9 # Multiplier for relaxed similarity threshold in secondary operations - EXTENDED_MAX_MEMORY_MULTIPLIER = 1.5 # Multiplier for expanding memory candidates in advanced operations - LLM_RERANKING_TRIGGER_MULTIPLIER = 0.5 # Multiplier for LLM reranking trigger threshold + SEMANTIC_RETRIEVAL_THRESHOLD = 0.25 # Semantic similarity threshold for retrieval + RELAXED_SEMANTIC_THRESHOLD_MULTIPLIER = 0.8 # Multiplier for relaxed similarity threshold in secondary operations + EXTENDED_MAX_MEMORY_MULTIPLIER = 1.6 # Multiplier for expanding memory candidates in advanced operations + LLM_RERANKING_TRIGGER_MULTIPLIER = 0.8 # Multiplier for LLM reranking trigger threshold # Skip Detection - SKIP_CATEGORY_MARGIN = 0.1 # Margin above conversational similarity for skip category classification + SKIP_CATEGORY_MARGIN = 0.5 # Margin above conversational similarity for skip category classification # Safety & Operations MAX_DELETE_OPERATIONS_RATIO = 0.6 # Maximum delete operations ratio for safety