Skip to content

How evaluate only the Document Reader? #3991

Discussion options

You must be logged in to vote

Hi @leomaurodesenv, you need to pass the Documents explicitly to the Reader when it isn't preceded by a Retriever node. You can do it for example like this:

eval_docs = [[label.document for label in multi_label.labels] for multi_label in eval_labels]
eval_result = pipe.eval(labels=eval_labels, documents=eval_docs)

Replies: 1 comment 1 reply

Comment options

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

Answer selected by leomaurodesenv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants