Преглед изворни кода

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