-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash using cosine similarity when calling search #40
Comments
Same. Do you have any clue? |
I ended up switching to brute force search for my use case so haven't revisited it. |
I had the same issue and it's caused by this commit fca4516 which negates the output of the dot product resulting in calling sqrt() of a negative number when calculating the cosine distance. I'm not sure why the change was made but reverting it fixed CosineSimilarity for me though it may break other things. You can see the change I made here: rangsikitpho@0836f2c |
Thanks @rangsikitpho ! |
When indexing a small number of vectors I am getting this error when specifying cosine_similarity (euclidean works fine for instance):
The text was updated successfully, but these errors were encountered: