mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
fix: change metadata to metadatas
This commit is contained in:
parent
143ac08c35
commit
ca9874757f
1 changed files with 2 additions and 2 deletions
|
|
@ -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]):
|
||||
|
|
|
|||
Loading…
Reference in a new issue