Closed emsi closed 8 months ago
OK, I get it. You are using cosine distance defined as 1-cosine similarity but it's not documented.
So, the range of dist values is (0,2), right? 0 meaning similar & 2 meaning dissimilar, right?
So, the range of dist values is (0,2), right? 0 meaning similar & 2 meaning dissimilar, right?
Exactement
Version:
voyager==2.0.2
The following code:
Prints following results:
The cosine function returns values between -1 and 1 as shown on the graph below:![image](https://github.com/spotify/voyager/assets/433383/9f927c8a-aed0-4da9-b48b-5f998f356c83)
The values returned by the query function are clearly outside of that range.
For positive vector coordinates values returned seem to be in range <0; 1>, with 0 being closest and 1.0 farthest but that does not make much sense as cosine of 1 means most similar (angle of 0).