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

fix: change metadata to metadatas
This commit is contained in:
Timothy Jaeryang Baek 2024-09-12 22:30:08 +01:00 committed by GitHub
commit fb122e67d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]):