-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix average sparse vector recommendation #4047
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great finding! Thanks for fixing, it was my fault (
I requested changes because PR affects dense vectors case
The new approach is all green here but breaks the congruence test.
I need to investigate 🔍 |
This reverts commit 28d560c.
@IvanPleshkov I pushed a new version that does not break the congruence tests. TBH I could not find the exact issue, so I went with a simpler implementation without in-place mutation for the result in the argument. |
okay, approve. the easiest way to fix |
The recommendation API must sort the sparse vectors before computing the average because the
combine_aggregate
function requires sorted vectors.Issue discovered while running the congruence tests locally with debug assertions enabled.