Error using EmbeddingRetriever with cosine similarity #2267
Answered
by
mkkuemmel
Saintes9601
asked this question in
Questions
-
I was trying to use the embedding retriever by using a sentence transformer model, when I set the similarity parameter as "dot_product" it works as expected. however if I try to use cosine similarity, I get the following error: does anyone have any clue about this issue? thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
mkkuemmel
Mar 3, 2022
Replies: 1 comment 1 reply
-
Hey @Saintes9601 , the bug you're describing was fixed in this PR. If you update your Haystack version to 1.2, it should work as planned. Hope this helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mkkuemmel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @Saintes9601 ,
the bug you're describing was fixed in this PR.
If you update your Haystack version to 1.2, it should work as planned.
Hope this helps!