faiss-node icon indicating copy to clipboard operation
faiss-node copied to clipboard

Add the option to get the cosine similarity value (score) for each returned label in the search function

Open HasanYousef opened this issue 2 years ago • 0 comments

Hi, it will be awesome if we get the value of the cosine similarity score to compare the returned values in the search function.

For example, if the search function got called with vector = x and k = 4 and returned [5, 2, 0, 3], currently we can't tell how similar vector 5 is to the query vector x compared to how similar vector 2 is to the query vector x.

HasanYousef avatar Jul 17 '23 19:07 HasanYousef