瀏覽代碼

fix: value error in metadata(#110)

cachho 2 年之前
父節點
當前提交
5ae2a36305
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      embedchain/embedchain.py

+ 1 - 1
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()}")