semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

.Net: Fix milvus search metric type bug.

Open shuaihuadu opened this issue 8 months ago • 4 comments

Motivation and Context

The metricType parameter in the SearchAsync method of the Milvus connector is incorrect.

It will always use the SimilarityMetricType.Ip for searching.

Description

The current code hard-codes the milvus search metric type to SimilarityMetricType.Ip, which causes the issue where even if the Metric type is specified as SimilarityMetricType.Cosine when creating the MilvusMemoryStore, SimilarityMetricType.IP is still used during the search.

Issue: #7062

Contribution Checklist

shuaihuadu avatar Jul 02 '24 16:07 shuaihuadu