Skip to content

Commit

Permalink
Update milvus_store.py (#1212)
Browse files Browse the repository at this point in the history
  • Loading branch information
darius-gs authored Feb 29, 2024
1 parent 87ec9c6 commit d6fabe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbgpt/storage/vector_store/milvus_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def init_schema_and_load(self, vector_name, documents) -> List[str]:
connections.connect(
host=self.uri or "127.0.0.1",
port=self.port or "19530",
alias="default"
alias="default",
# secure=self.secure,
)
texts = [d.content for d in documents]
Expand Down Expand Up @@ -419,7 +419,7 @@ def delete_vector_name(self, vector_name):

"""milvus delete collection name"""
logger.info(f"milvus vector_name:{vector_name} begin delete...")
utility.drop_collection(vector_name)
utility.drop_collection(self.collection_name)
return True

def delete_by_ids(self, ids):
Expand Down

0 comments on commit d6fabe9

Please sign in to comment.