-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
write_labels
crashes for ElasticsearchDocumentStore
for labels with long context
#2621
Comments
I'm happy to take a look at this tomorrow to see if I can debug this further |
@bogdankostic Your intuition points in the right direction. haystack/haystack/document_stores/elasticsearch.py Lines 225 to 229 in 97a8d30
Under the hood, document Possible solutions
@masci @Winterflower any thoughts on this? |
RelatedIn haystack/haystack/document_stores/opensearch.py Lines 557 to 564 in 21aedc6
To solve the current bug, it may be reasonable to use
WDYT? |
Describe the bug
write_labels
currently crashes with aBulkIndexError
if we try to write labels whose context is longer than 32766 bytes. I suspect that this is due to the mapping that we apply in_create_label_index
. Probably we implicitly make use of typekeyword
instead oftext
for thecontent
field of thedocument
field of the label.Error message
To Reproduce
The text was updated successfully, but these errors were encountered: