Skip to content

Commit

Permalink
Add new metric type COSINE (#1376)
Browse files Browse the repository at this point in the history
Signed-off-by: Yudong Cai <[email protected]>
  • Loading branch information
cydrain authored Apr 20, 2023
1 parent a1e3734 commit 6b5cf24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymilvus/client/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6b5cf24

Please sign in to comment.