I have been working with langchain's chroma vectordb. It has two methods for running similarity search with scores.
vectordb.similarity_search_with_score()
vectordb.similarity_search_with_relevance_scores()
According to the documentation, the first one should return a cosine distance in float
.
Smaller the better.
And the second one should return a score from 0 to 1, 0 means dissimilar and 1 means similar.
But when I tried the same it is giving me exactly same results with same scores which overflows the upperlimit 1, which should not be the case for the second function.
What's going on here?