Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to combine JoinDocuments and JoinAnswers #2599

Closed
MichelBartels opened this issue May 25, 2022 · 0 comments
Closed

Impossible to combine JoinDocuments and JoinAnswers #2599

MichelBartels opened this issue May 25, 2022 · 0 comments
Labels
topic:pipeline type:bug Something isn't working

Comments

@MichelBartels
Copy link
Contributor

Creating a pipeline using JoinDocuments and JoinAnswer, leads to the following error:

File "/home/ubuntu/haystack/haystack/nodes/other/join_answers.py", line 45, in <listcomp>
    reader_results = [inp["answers"] for inp in inputs]
KeyError: 'answers'

The reason for this is that these lines cause the inputs parameter of the first join node to be propagated down the pipeline. This eventually leads to this condition being false when constructing the input for the next join node resulting in that error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic:pipeline type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants