-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat: exponential backoff with exp decreasing batch size for opensearch and elasticsearch client #3194
feat: exponential backoff with exp decreasing batch size for opensearch and elasticsearch client #3194
Conversation
…gin/master/feat/opensearchDocumentStoreRetry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a couple of comments, waiting for the import path fix to be merged before reviewing tests
Co-authored-by: Massimiliano Pippi <mpippi@gmail.com>
…hub.com:deepset-ai/haystack into origin/master/feat/opensearchDocumentStoreRetry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update, looks very good! Left a couple of small ones.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 let's ship it!
Isn't this feature for both opensearch and elasticsearch? If yes, let's change the PR title so that we have it correctly in the next release notes. |
Yes :) Adjusted the title |
…ch client (#3194) * Validate custom_mapping properly as an object * Remove related test * black * feat: exponential backoff with exp dec batch size * added docstring and split doc lsit * fix * fix mypy * fix * catch generic exception * added test * mypy ignore * fixed no attribute * added test * added tests * revert strange merge conflicts * revert merge conflict again * Update haystack/document_stores/elasticsearch.py Co-authored-by: Massimiliano Pippi <mpippi@gmail.com> * done * adjust test * remove not required caplog * fixed comments Co-authored-by: ZanSara <sarazanzo94@gmail.com> Co-authored-by: Massimiliano Pippi <mpippi@gmail.com>
Related Issues
Proposed Changes:
_bulk
insert for opensearch + elasticsearch clientHow did you test it?
Note to the reviewer
There is also a bulk insert for the
clone_embedding_field
within the openserach document store. Do we also need to update this ? Currently we just inherit the bulk insert for opensearch from elasticsearch.I had to merge this branch: #3189 to test it
Checklist