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

Fix to get threshold 0 working as documented #644

Merged
merged 3 commits into from
Feb 22, 2024

Conversation

valstu
Copy link
Contributor

@valstu valstu commented Feb 22, 2024

This PR is a suggestion to fix #642. Instead of two sets, one for token counts and one for scores we combine them into a single set. Now when sorting the list it guarantees that they're in right order. Read further information and try the test case of a bug on Replit, mentioned in the issue #642

Copy link

vercel bot commented Feb 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
orama-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 22, 2024 3:56pm

@valstu
Copy link
Contributor Author

valstu commented Feb 22, 2024

Let me know what you think

@micheleriva
Copy link
Member

@allevo can you please take a look at this?

Copy link
Member

@micheleriva micheleriva left a comment

Choose a reason for hiding this comment

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

That's actually a neat fix. I like the approach

@allevo
Copy link
Collaborator

allevo commented Feb 22, 2024

I put a comment, but generally, it is ok for me!
Thanks!

Co-authored-by: Tommaso Allevi <tomallevi@gmail.com>
@valstu
Copy link
Contributor Author

valstu commented Feb 22, 2024

I put a comment, but generally, it is ok for me! Thanks!

Added changes, thanks!

@micheleriva
Copy link
Member

Thank you @valstu , will release this in a few hours.

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.

Threshold 0 not working as documented
3 participants