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

Resolved MissingIndex error in similarity search #206

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

jeongiin
Copy link
Contributor

What does this PR do?

I found that the "embeddings" missing index error happens because the FAISS index was being added before the embeddings were properly generated.

This update ensures that the embeddings are fully created first, and then the FAISS index is added for both text and image embeddings.

I've tested the fix locally, and it works without any issues now!

Fixes #205

Who can review?

@merveenoyan @stevhliu

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Member

@stevhliu stevhliu left a comment

Choose a reason for hiding this comment

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

Great catch, thanks for the fix! 🤗

@stevhliu stevhliu merged commit 668cce2 into huggingface:main Sep 23, 2024
1 check 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.

MissingIndex in faiss_with_hf_datasets_and_clip notebook
3 participants