Skip to content

Tutorial 4, FAQ retrieval: all results have near-identical score #2668

Answered by masci
stevenhaley asked this question in Questions
Discussion options

You must be logged in to vote

Hi @stevenhaley thanks for raising the issue. In the tutorial we're using the wrong similarity algorithm, indeed you should see a warning when running the example:

WARNING - haystack.nodes.retriever._embedding_encoder -  You are using a Sentence Transformer with the dot_product function. We recommend using cosine instead. This can be set when initializing the DocumentStore

We opened a PR to fix the tutorial.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stevenhaley
Comment options

Answer selected by stevenhaley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
2 participants