The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
remove redudant code from graph_memory.py (#1999)
Xiang Wangcf12148bc7b8
diff --git a/mem0/memory/graph_memory.py b/mem0/memory/graph_memory.pyindex 09ad55cfe..55d644c90 100644--- a/mem0/memory/graph_memory.py+++ b/mem0/memory/graph_memory.py@@ -183,7 +183,6 @@ class MemoryGraph:)node_list = []- relation_list = []for item in search_results["tool_calls"]:if item["name"] == "search":@@ -193,10 +192,7 @@ class MemoryGraph:logger.error(f"Error in search tool: {e}")node_list = list(set(node_list))- relation_list = list(set(relation_list))-node_list = [node.lower().replace(" ", "_") for node in node_list]- relation_list = [relation.lower().replace(" ", "_") for relation in relation_list]logger.debug(f"Node list for search query : {node_list}")