From 1bb9bd5ad29ba9dbe28b2c6a8ed5ab0572c947ed Mon Sep 17 00:00:00 2001 From: "yihao.dai" Date: Thu, 1 Jun 2023 17:16:28 +0800 Subject: [PATCH] Do not set metric_type default value in search params (#1469) (#1511) Signed-off-by: bigsheeper --- pymilvus/client/prepare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymilvus/client/prepare.py b/pymilvus/client/prepare.py index d63f4427a..425c4f307 100644 --- a/pymilvus/client/prepare.py +++ b/pymilvus/client/prepare.py @@ -457,7 +457,7 @@ def search_requests_with_expr(cls, collection_name, data, anns_field, param, lim raise ParamError(message=f"Search params must be a dict, got {type(params)}") search_params = { "topk": limit, - "metric_type": param.get("metric_type", "L2"), + "metric_type": param.get("metric_type", ""), "params": params, "round_decimal": round_decimal, "offset": param.get("offset", 0),