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: passes max_element when load index in hnswlib #1426

Merged
merged 4 commits into from
Apr 21, 2023
Merged

Conversation

AnneYang720
Copy link
Contributor

This is the additional fix for PR #1424 .
We need to pass max_elements in method load_index(), otherwise it's reset to 0.

Signed-off-by: AnneY <evangeline-lun@foxmail.com>
Copy link
Member

@JoanFM JoanFM left a comment

Choose a reason for hiding this comment

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

Please use this PR to add the tests discussed in discord

tests/index/hnswlib/test_persist_data.py Outdated Show resolved Hide resolved
@github-actions github-actions bot added size/xl and removed size/s labels Apr 20, 2023
@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

Signed-off-by: AnneY <evangeline-lun@foxmail.com>
@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@github-actions
Copy link

📝 Docs are deployed on https://ft-fix-hnsw-load--jina-docs.netlify.app 🎉

@JoanFM JoanFM merged commit 0c73ad8 into main Apr 21, 2023
23 checks passed
@JoanFM JoanFM deleted the fix-hnsw-load branch April 21, 2023 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants