Update ChromaDBAdapter.py

self.list_collections() -> client.list_collections()
This commit is contained in:
Jenny Kaufmann 2025-09-05 14:41:49 -04:00 committed by GitHub
parent aaa1776293
commit 8c6e5fab76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -538,7 +538,7 @@ class ChromaDBAdapter(VectorDBInterface):
Returns True upon successful deletion of all collections.
"""
client = await self.get_connection()
collections = await self.list_collections()
collections = await client.list_collections()
for collection_name in collections:
await client.delete_collection(collection_name)
return True