.Net: Bug: Some vector DBs return scores that do not match the definition of the distance function #10103
Labels
bug
Something isn't working
memory connector
.NET
Issue or Pull requests regarding .NET code
sk team issue
A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)
Describe the bug
For the purposes of this bug description the following vectors have been used:
[1, 0, 0, 0]
[-1, 0, 0, 0]
Examples:
We should test all distance functions for all connectors to ensure that they return the expected values.
To Reproduce
Create a redis vector store collection using DotProductSimilarity. Add a record with the following vector [1, 0, 0, 0] and do a vector search using the same vector. The score returned is -1.
Expected behavior
The score returned is 1.
Platform
The text was updated successfully, but these errors were encountered: