From e44154324b8f5044dd409250d3506e8ec524643a Mon Sep 17 00:00:00 2001 From: Nischay Yadav Date: Tue, 7 May 2024 01:28:55 -0700 Subject: [PATCH] fix lint check issue Signed-off-by: Nischay Yadav --- examples/example_tls1.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/example_tls1.py b/examples/example_tls1.py index 64e24852d..828c839e7 100644 --- a/examples/example_tls1.py +++ b/examples/example_tls1.py @@ -3,7 +3,6 @@ from pymilvus import ( MilvusClient, FieldSchema, CollectionSchema, DataType, - Collection, utility ) @@ -97,13 +96,12 @@ def main(): milvus_client.load_collection(_COLLECTION_NAME) vector = data_dict[1] vectors = [vector["float_vector_field"]] + # search search_param = { - # "data": search_vectors, "anns_field": _VECTOR_FIELD_NAME, "param": {"metric_type": _METRIC_TYPE, "params": {"nprobe": _NPROBE}}, "expr": f"{_ID_FIELD_NAME} > 0"} - # results = collection.search(**search_param) results = milvus_client.search(collection_name=_COLLECTION_NAME,data=vectors,limit= _TOPK,search_params=search_param) for i, result in enumerate(results): print("\nSearch result for {}th vector: ".format(i))