Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

Remove redundant lines (#2516)

Dev Khant00c7cc432ca0
diff --git a/mem0/memory/main.py b/mem0/memory/main.py
index 73801995a..b9d2111fd 100644
--- a/mem0/memory/main.py
+++ b/mem0/memory/main.py
@@ -657,14 +657,6 @@ class Memory(MemoryBase):
metadata (dict): Metadata to create a procedural memory from.
prompt (str, optional): Prompt to use for the procedural memory creation. Defaults to None.
"""
- try:
- pass
- except Exception:
- logger.error(
- "Import error while loading langchain-core. Please install 'langchain-core' to use procedural memory."
- )
- raise
-
logger.info("Creating procedural memory")
parsed_messages = [
@@ -758,9 +750,7 @@ class Memory(MemoryBase):
self.vector_store = VectorStoreFactory.create(
self.config.vector_store.provider, self.config.vector_store.config
)
- print("before dbreset")
self.db.reset()
- print("after dbreset")
capture_event("mem0.reset", self)
def chat(self, query):