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

Harrison/faiss norm #4903

Merged
merged 2 commits into from
May 18, 2023
Merged

Harrison/faiss norm #4903

merged 2 commits into from
May 18, 2023

Conversation

hwchase17
Copy link
Contributor

No description provided.

Jeffwan and others added 2 commits May 17, 2023 21:18
Adding normalization is to make sure the score returned is between 0 and
1.

# Your PR Title (What it does)

The PR fixes some score out of <0, 1> range issue in FAISS. The issue is
#4086

<!-- Remove if not applicable -->

Fixes #4086

## Before submitting

Finish the manual testing

Before (with customized `score_normalizer`)
```
score : 68.8683853149414, result : 1.0
score : 74.28987121582031, result : 1.0
score : 77.00814056396484, result : 1.0
score : 79.08580017089844, result : 1.0
```

After

```
score : 0.22136175632476807, result : 0.8434736010073924
score : 0.2508389353752136, result : 0.8226300878105723
score : 0.25133150815963745, result : 0.8222817862544782
score : 0.25269198417663574, result : 0.8213197844372171
```



## Who can review?

Community members can review the PR once tests pass. Tag
maintainers/contributors who might be interested:

Tools / Toolkits
- @vowelparrot
@hwchase17 hwchase17 added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label May 18, 2023
@hwchase17 hwchase17 merged commit ba023d5 into master May 18, 2023
@hwchase17 hwchase17 deleted the harrison/faiss-norm branch May 18, 2023 04:40
@danielchalef danielchalef mentioned this pull request Jun 5, 2023
This was referenced Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm PR looks good. Use to confirm that a PR is ready for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants