10000 [ENH] Set ef_search on hnsw index load by sanketkedia · Pull Request #31 · chroma-core/hnswlib · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[ENH] Set ef_search on hnsw index load #31

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

Merged
merged 1 commit into from
Mar 27, 2025

Conversation

sanketkedia
Copy link

If you load an existing hnsw index, it always gets loaded with ef_search = 10 and we don't override it anywhere in the code. This leads to recall degradation. Fixed by taking ef_search as parameter to load. In the next PR, will update consumers to pass in this from config.

@sanketkedia sanketkedia requested a review from HammadB March 27, 2025 02:27
@sanketkedia sanketkedia merged commit ce3c6ba into master Mar 27, 2025
10 checks passed
sanketkedia added a commit to chroma-core/chroma that referenced this pull request Mar 27, 2025
## Description of changes

*Summarize the changes made by this PR.*
 - Improvements & Bug fixes
- After chroma-core/hnswlib#31, need to update
all callsites of hnsw.load() to pass in ef_search obtained from
collection config
 - New functionality
   - ...

## Test plan
*How are these changes tested?*
- [x] Tests pass locally with `pytest` for python, `yarn test` for js,
`cargo test` for rust

## Documentation Changes
None
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
0