mirror of
https://github.com/open-webui/open-webui
synced 2025-06-22 18:07:17 +00:00
Merge 2544152c22
into b5f4c85bb1
This commit is contained in:
commit
b3ebdd2174
@ -61,7 +61,7 @@ class ChromaClient(VectorDBBase):
|
|||||||
|
|
||||||
def has_collection(self, collection_name: str) -> bool:
|
def has_collection(self, collection_name: str) -> bool:
|
||||||
# Check if the collection exists based on the collection name.
|
# 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
|
return collection_name in collection_names
|
||||||
|
|
||||||
def delete_collection(self, collection_name: str):
|
def delete_collection(self, collection_name: str):
|
||||||
|
Loading…
Reference in New Issue
Block a user