Skip to content
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

Cosine similarity is undefined when any vector is zero. #10968

Closed
wants to merge 1 commit into from

Conversation

AndyM3
Copy link

@AndyM3 AndyM3 commented Dec 24, 2024

Noticed what looked like a bug.

@Emreerdog
Copy link

You are right, it seems to be implemented this way in the context of the program I think. Because it seems that this function is being used in the embedding and retrieval examples.

@AndyM3
Copy link
Author

AndyM3 commented Jan 8, 2025

It might not be an important bug. Closing the PR.

@AndyM3 AndyM3 closed this Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants