From 5ae2a36305c1c0298820d5a9c6cbcec2ad07c586 Mon Sep 17 00:00:00 2001 From: cachho Date: Fri, 7 Jul 2023 12:42:02 +0200 Subject: [PATCH] fix: value error in metadata(#110) --- embedchain/embedchain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embedchain/embedchain.py b/embedchain/embedchain.py index 15f0c5b6..5cf833eb 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()}")