feat(memory): replace Mem0 with local RAG using SQLite, ChromaDB, and bge-small
Some checks failed
Build and Push Docker / build-and-push (push) Failing after 16m28s

This commit is contained in:
gameloader
2025-11-27 19:14:26 +08:00
parent b88a897151
commit a43c6a10ac
5 changed files with 2220 additions and 110 deletions

View File

@ -13,7 +13,7 @@ from config import (
MEM0_CONFIG,
)
from api.doubao_tts import text_to_speech
from memory_module.memory_integration import Mem0Integration
from memory_module import LocalMemoryIntegration
logger = logging.getLogger(__name__)
@ -21,7 +21,7 @@ logger = logging.getLogger(__name__)
class ChatService:
def __init__(self, user_id: str = None):
self.user_id = user_id or DEFAULT_USER_ID
self.mem0_integration = Mem0Integration(MEM0_CONFIG)
self.mem0_integration = LocalMemoryIntegration(MEM0_CONFIG) # 使用新类
self._initialized = False
def initialize(self):