class_docstr: This handler handles connection and execution of the Milvus statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","Milvus","statements","."]
code: def __init__(self, name: str, **kwargs):
      super().__init__(name)
      self._connection_data = kwargs["connection_data"]
      # Extract parameters used while searching and leave the rest for establishing connection
      self._search_limit = 100
      if "search_default_limit" in self._connection_data:
          self._search_limit = self._connection_data[
              "search_default_limit"
          ]
      self._search_params = {
          "search_metric_type": "L2",
          "search_ignore_growing": False,
          "search_params": {"nprobe": 10},
      }
      for search_param_name in self._search_params:
          if search_param_name in self._connection_data:
              self._search_params[
                  search_param_name
              ] = self._connection_data[search_param_name]
      # Extract parameters used for creating tables
      self._create_table_params = {
          "create_auto_id": False,
          "create_id_max_len": 64,
          "create_embedding_dim": 8,
          "create_dynamic_field": True,
          "create_content_max_len": 200,
          "create_content_default_value": "",
          "create_schema_description": "MindsDB generated table",
          "create_alias": "default",
          "create_index_params": {},
          "create_index_metric_type": "L2",
          "create_index_type": "AUTOINDEX",
      }
      for create_table_param in self._create_table_params:
          if create_table_param in self._connection_data:
              self._create_table_params[
                  create_table_param
              ] = self._connection_data[create_table_param]
      self.is_connected = False
      self.connect()
  
imports: from collections import OrderedDict
  from typing import List, Optional
  import pandas
  from pymilvus import Collection, CollectionSchema, DataType, FieldSchema, connections, utility
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
  from mindsdb.integrations.libs.response import RESPONSE_TYPE
  from mindsdb.integrations.libs.response import HandlerResponse
  from mindsdb.integrations.libs.response import HandlerResponse
  from mindsdb.integrations.libs.response import HandlerStatusResponse
  from mindsdb.integrations.libs.vectordatabase_handler import FilterCondition, FilterOperator, TableField, VectorStoreHandler
  from mindsdb.utilities import log
label_desc: Use image node_id 1 to create a new MilvusHandler object from inherited base classes: VectorStoreHandler with example: obj = MilvusHandler(name)