mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-08 02:16:51 +08:00
fix: Check collection exists before drop it. (#17692)
Co-authored-by: wlleiiwang <wlleiiwang@tencent.com>
This commit is contained in:
@@ -279,7 +279,10 @@ class TencentVector(BaseVector):
|
||||
return docs
|
||||
|
||||
def delete(self) -> None:
|
||||
self._client.drop_collection(database_name=self._client_config.database, collection_name=self.collection_name)
|
||||
if self._has_collection():
|
||||
self._client.drop_collection(
|
||||
database_name=self._client_config.database, collection_name=self.collection_name
|
||||
)
|
||||
|
||||
|
||||
class TencentVectorFactory(AbstractVectorFactory):
|
||||
|
||||
Reference in New Issue
Block a user