mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-11-02 10:49:30 +00:00
Change to retriever eval top_k to match notebook
This commit is contained in:
parent
b30963d0cd
commit
8a3eca05c3
@ -80,7 +80,7 @@ finder = Finder(reader, retriever)
|
||||
|
||||
## Evaluate Retriever on its own
|
||||
if eval_retriever_only:
|
||||
retriever_eval_results = retriever.eval(top_k=1, label_index=label_index, doc_index=doc_index)
|
||||
retriever_eval_results = retriever.eval(top_k=10, label_index=label_index, doc_index=doc_index)
|
||||
## Retriever Recall is the proportion of questions for which the correct document containing the answer is
|
||||
## among the correct documents
|
||||
print("Retriever Recall:", retriever_eval_results["recall"])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user