From 7d2950c76472f128344632f027e0470a42f5e40b Mon Sep 17 00:00:00 2001 From: Yudong Cai Date: Thu, 20 Apr 2023 10:34:19 +0800 Subject: [PATCH] Add new metric type COSINE Signed-off-by: Yudong Cai --- pymilvus/client/check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymilvus/client/check.py b/pymilvus/client/check.py index ce270ae11..b917572a4 100644 --- a/pymilvus/client/check.py +++ b/pymilvus/client/check.py @@ -229,7 +229,7 @@ def is_legal_index_metric_type(index_type: str, metric_type: str) -> bool: "AUTOINDEX", "DISKANN"): return False - if metric_type not in ("L2", "IP"): + if metric_type not in ("L2", "IP", "COSINE"): return False return True