소스 검색

Merge pull request #5382 from Peter-De-Ath/hotfix/chroma-metadata-s

fix: change metadata to metadatas
Timothy Jaeryang Baek 7 달 전
부모
커밋
fb122e67d0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      backend/open_webui/apps/rag/vector/dbs/chroma.py

+ 2 - 2
backend/open_webui/apps/rag/vector/dbs/chroma.py

@@ -96,10 +96,10 @@ class ChromaClient:
         ids = [item["id"] for item in items]
         documents = [item["text"] for item in items]
         embeddings = [item["vector"] for item in items]
-        metadata = [item["metadata"] for item in items]
+        metadatas = [item["metadata"] for item in items]
 
         collection.upsert(
-            ids=ids, documents=documents, embeddings=embeddings, metadata=metadata
+            ids=ids, documents=documents, embeddings=embeddings, metadatas=metadatas
         )
 
     def delete(self, collection_name: str, ids: list[str]):