mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-09-17 12:13:35 +00:00
Fix elasticsearch scores if they are 0.0 (#1980)
* fix elasticsearch zero scores * remove unnecessary None check
This commit is contained in:
parent
a44b6c18c0
commit
192e03be33
@ -957,7 +957,7 @@ class ElasticsearchDocumentStore(BaseDocumentStore):
|
||||
if name:
|
||||
meta_data["name"] = name
|
||||
|
||||
score = hit["_score"] if hit["_score"] else None
|
||||
score = hit["_score"]
|
||||
if score:
|
||||
if adapt_score_for_embedding:
|
||||
score = self._scale_embedding_score(score)
|
||||
|
Loading…
x
Reference in New Issue
Block a user