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

Switch to linear search below a threshold #6

Open
vadixidav opened this issue Aug 5, 2019 · 1 comment
Open

Switch to linear search below a threshold #6

vadixidav opened this issue Aug 5, 2019 · 1 comment

Comments

@vadixidav
Copy link
Member

Linear search is generally faster than HNSW on a given computer below a certain threshold value. We should create a configurable size at which the HNSW transitions from linear search internally to its own search. The default for that transition point should be around where benchmarks say it crosses over. Benchmarks already exist that show the user the tradeoff point.

@vadixidav
Copy link
Member Author

Linear search should actually be used in every layer until a layer has more features than it would be worth to do with linear.

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

No branches or pull requests

1 participant