Feat/add annotation migrate (#2675)

Co-authored-by: jyong <jyong@dify.ai>
This commit is contained in:
Jyong 2024-03-04 17:22:06 +08:00 committed by GitHub
commit 3631e53ff0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 111 additions and 3 deletions

View file

@ -140,7 +140,8 @@ class MilvusVector(BaseVector):
connections.connect(alias=alias, uri=uri, user=self._client_config.user, password=self._client_config.password)
from pymilvus import utility
utility.drop_collection(self._collection_name, None, using=alias)
if utility.has_collection(self._collection_name, using=alias):
utility.drop_collection(self._collection_name, None, using=alias)
def text_exists(self, id: str) -> bool: