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

hnsw: add ability to configure ef search #803

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

dankinder
Copy link
Contributor

I needed a quick solution for using HNSW in Go and found this package nice, but noticed that it forces ef = efConstruction. I'm optimizing for a use case where I build an effectively static index. Build time doesn't matter to me but query speed and recall do. So I want to be able to set efConstruction high but keep ef where it is.

I've left this behaving in exactly the same manner as before as the default.

I needed a quick solution for using HNSW in Go and found this package
nice, but noticed that it forces `ef` = `efConstruction`. I'm optimizing
for a use case where I build an effectively static index. Build
time doesn't matter to me but query speed and recall do. So I want to be
able to set `efConstruction` high but keep `ef` where it is.

I've left this behaving in exactly the same manner as before as the
default.
@zhenghaoz
Copy link
Collaborator

Thank you

@zhenghaoz zhenghaoz merged commit 04f8767 into gorse-io:master Feb 23, 2024
8 of 9 checks passed
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