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.

fix: value error in metadata(#110)

cachho5ae2a36305c1
diff --git a/embedchain/embedchain.py b/embedchain/embedchain.py
index 15f0c5b6a..5cf833ebd 100644
--- a/embedchain/embedchain.py
+++ b/embedchain/embedchain.py
@@ -153,7 +153,7 @@ class EmbedChain:
self.collection.add(
documents=documents,
- metadatas=metadatas,
+ metadatas=list(metadatas),
ids=ids
)
print(f"Successfully saved {url}. Total chunks count: {self.collection.count()}")