Skip to content

what is the score in DocumentSearchPipline result? #3560

Answered by anakin87
amy-why asked this question in Questions
Discussion options

You must be logged in to vote

Hello @amy-why!

Your EmbeddingRetriever uses a Sentence Transformers model that converts both the query and the documents into embeddings (=vectors).
These vectors can be compared using similarity functions, such as cosine similarity and dot product.
(The similarity function is chosen when you initialize the Document Store, using the similarity parameter)

So, the score that the retriever assigns to each document measures how much the document is semantically similar (≈relevant) to the query.

You can read more about this topic in the Sentence Transformers docs.

Feel free to ask for clarification.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TuanaCelik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants