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

Ensure negative scores aren not returned from scalar quantization scorer #13356

Merged

Conversation

benwtrent
Copy link
Member

Depending on how we quantize and then scale, we can edge down below 0 for dotproduct scores.

This is exceptionally rare, I have only seen it in extreme circumstances in tests (with random data and low dimensionality).

Copy link
Contributor

@ChrisHegarty ChrisHegarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

lucene/CHANGES.txt Outdated Show resolved Hide resolved
@benwtrent benwtrent merged commit f10748c into apache:main May 13, 2024
3 checks passed
@benwtrent benwtrent deleted the bugfix/ensure-negative-scores-arenot-returned branch May 13, 2024 15:00
benwtrent added a commit that referenced this pull request May 13, 2024
…rer (#13356)

Depending on how we quantize and then scale, we can edge down below 0 for dotproduct scores.

This is exceptionally rare, I have only seen it in extreme circumstances in tests (with random data and low dimensionality).
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