Open vblagoje opened 11 months ago
Hi @vblagoje, I would like to take up this issue as my first OS contribution at Haystack, if I am allowed to!
Thanks!
@vblagoje I went through all the files, all of them are returning dictionaries but the keys have a multitude of key names from answers
to replies
to values
to document_written
.
Do you want documents
as a key in all return dictionaries?
Description:
Haystack component developers sometimes forget to adhere to the expected return type of the
run
method in various components. Specifically, therun
method is designed to return a dictionary with values that are annotated on the method.Issue Details:
run
method, across different components, should return a dictionary where the keys are the annotated output types, and the values are the corresponding results.Example:
A correct implementation of the
run
method looks like this:However, users often incorrectly implement it as: