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

Use valid data for sqfp16 test #1474

Merged
merged 1 commit into from
Feb 9, 2024
Merged

Conversation

heemin32
Copy link
Collaborator

@heemin32 heemin32 commented Feb 9, 2024

Description

Current sqfp16 tests uses vector value outside of fp16 range which result in infinite value during faiss distance calculation. Because of this infinite distance, the search result is not returned once we update faiss commit number with 32f0e8cf92cd2275b60364517bb1cce67aa29a55.

This fix the test so that vector value to be in fp16 range.

Issues Resolved

N/A

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed as per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Heemin Kim <heemin@amazon.com>
Copy link

codecov bot commented Feb 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9e28957) 85.02% compared to head (015b30b) 85.02%.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1474   +/-   ##
=========================================
  Coverage     85.02%   85.02%           
  Complexity     1277     1277           
=========================================
  Files           167      167           
  Lines          5207     5207           
  Branches        493      493           
=========================================
  Hits           4427     4427           
  Misses          572      572           
  Partials        208      208           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@naveentatikonda
Copy link
Member

@heemin32 Thanks for adding this.

@heemin32 heemin32 merged commit e2d5bc5 into opensearch-project:main Feb 9, 2024
61 of 63 checks passed
@heemin32 heemin32 deleted the test-fix branch February 9, 2024 22:57
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 9, 2024
Signed-off-by: Heemin Kim <heemin@amazon.com>
(cherry picked from commit e2d5bc5)
heemin32 added a commit that referenced this pull request Feb 9, 2024
Signed-off-by: Heemin Kim <heemin@amazon.com>
(cherry picked from commit e2d5bc5)

Co-authored-by: Heemin Kim <heemin@amazon.com>
@heemin32 heemin32 mentioned this pull request Feb 10, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants