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

Added explicit refresh call during refresh_type is false in update em… #1259

Merged
merged 1 commit into from
Jul 13, 2021

Conversation

Threepointone4
Copy link
Contributor

I have created PR for the #1246 issue

Why?
The query_by_embedding throws error. The root cause is for some data the embedding are not created. This issue is because when we call the update_embedding after the write_document some data loss happens. Though Elastic search takes some time to refresh the index after writing to document_store. At that point, when the update embedding calls the index it takes the un-refreshed index which doesn't have full data.

What is changing?
We are calling the refresh API externally before update embedding to make sure the index is refreshed and searchable.

Copy link
Member

@tholor tholor left a comment

Choose a reason for hiding this comment

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

Looking good to me! Thanks for the fix and the testing @Threepointone4 . Really appreciate it!

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.

None yet

2 participants