Minimum score for retrieved passage #3344
Answered
by
julian-risch
hermans0101g
asked this question in
Questions
-
Is it possible to restrict passages that get passed to the reader by threshold? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
julian-risch
Oct 11, 2022
Replies: 1 comment
-
Hello @hermans0101g currently, Haystack does not support filtering the output of retriever nodes based on the relevance scores of the passages. However, the output of reader nodes can be filtered based on a threshold: haystack/haystack/nodes/reader/farm.py Line 122 in dcb132b I'd suggest that you have a look at how the implementation works for the reader. Maybe you can use it as a blueprint for the retriever? |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
julian-risch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @hermans0101g currently, Haystack does not support filtering the output of retriever nodes based on the relevance scores of the passages. However, the output of reader nodes can be filtered based on a threshold:
haystack/haystack/nodes/reader/farm.py
Line 122 in dcb132b
I'd suggest that you have a look at how the implementation works for the reader. Maybe you can use it as a blueprint for the retriever?