mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-10 21:39:33 +00:00
workflow(pylint): fix pylint workflow
This commit is contained in:
@@ -641,13 +641,11 @@ class MilvusStore(VectorStoreBase):
|
||||
return metadata_filter_expr
|
||||
|
||||
def truncate(self):
|
||||
"""Truncate milvus collection.
|
||||
"""
|
||||
"""Truncate milvus collection."""
|
||||
logger.info(f"begin truncate milvus collection:{self.collection_name}")
|
||||
from pymilvus import utility
|
||||
|
||||
if utility.has_collection(self.collection_name):
|
||||
utility.drop_collection(self.collection_name)
|
||||
|
||||
logger.info(
|
||||
f"truncate milvus collection {self.collection_name} success"
|
||||
)
|
||||
logger.info(f"truncate milvus collection {self.collection_name} success")
|
||||
|
Reference in New Issue
Block a user