-
Hello I am trying to use the MostSimiliarDocumentsPipeline and keep getting the following error: I also get this error when i try to run query_by_embedding directly on my document store (which is Elasticsearch). My code is based on the example provided by bogdankostic in this discussion: #1496 I have tried the folllowing:
All of these experiments seem to point to the fact that my documents actually have embeddings, but i still get the error. I have traced through the haystack source code and can't seem to find anywhere i am missing a parameter or anything like that. Am i trying to use this the wrong way or is something else at fault? I have attached a file with the code i am running. Sebastian |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @kaep! Thanks for the detailed description of your problem and for providing code to reproduce this. Unfortunately, your code works just fine on my side. Neither |
Beta Was this translation helpful? Give feedback.
-
Hello @bogdankostic Update: |
Beta Was this translation helpful? Give feedback.
Hello @bogdankostic
Thank you for the fast reply!
I am using the version 7.5.1 docker image of Elasticsearch as well as "farm-haystack" from pip.
I must admit that i don't know why i am using 7.5.1, up until now i was sure that i was using the same version as in the docker-compose provided with your demo... Will try with ersion 7.9.2 asap.
Update:
I just tried again with Elasticsearch 7.9.2 and it seems to be working.
Thank you very much for the help.
I am quite embarrassed that i didn't even consider whether i was using the correct version of Elasticsearch.