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
Some checks failed
Build and Push Docker / build-and-push (push) Failing after 16m28s
This commit is contained in:
@ -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):
|
||||
|
||||
Reference in New Issue
Block a user