Skip to content

Commit

Permalink
fix lint check issue
Browse files Browse the repository at this point in the history
Signed-off-by: Nischay Yadav <[email protected]>
  • Loading branch information
nish112022 committed May 7, 2024
1 parent 7413e3f commit e441543
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/example_tls1.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from pymilvus import (
MilvusClient,
FieldSchema, CollectionSchema, DataType,
Collection,
utility
)

Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit e441543

Please sign in to comment.