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.

AsyncMemory._add_to_vector_store bugfix when no facts found (#3313)

Ankush Malakera883b56aa84e
diff --git a/mem0/memory/main.py b/mem0/memory/main.py
index 62df064ef..71aa83d6a 100644
--- a/mem0/memory/main.py
+++ b/mem0/memory/main.py
@@ -1219,6 +1219,8 @@ class AsyncMemory(MemoryBase):
except Exception as e:
logger.error(f"Invalid JSON response: {e}")
new_memories_with_actions = {}
+ else:
+ new_memories_with_actions = {}
returned_memories = []
try: