fixed has_collection of chroma.py

This commit is contained in:
wuhulala
2025-06-22 00:11:14 +08:00
committed by GitHub
parent b5f4c85bb1
commit 2544152c22

View File

@@ -61,7 +61,7 @@ class ChromaClient(VectorDBBase):
def has_collection(self, collection_name: str) -> bool:
# Check if the collection exists based on the collection name.
collection_names = self.client.list_collections()
collection_names = [collection.name for collection in self.client.list_collections()]
return collection_name in collection_names
def delete_collection(self, collection_name: str):