Skip to content

Commit

Permalink
Update haystack/nodes/other/join_docs.py
Browse files Browse the repository at this point in the history
Co-authored-by: tstadel <[email protected]>
  • Loading branch information
sjrl and tstadel authored Apr 10, 2024
1 parent 90d7769 commit ccd3ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haystack/nodes/other/join_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def run_accumulated(self, inputs: List[Dict], top_k_join: Optional[int] = None)
results = [inp["documents"] for inp in inputs]

# Check if all results are non-empty
if all(res is None for res in results) or all(res == [] for res in results):
if all(not res for res in results):
return {"documents": [], "labels": inputs[0].get("labels", None)}, "output_1"

document_map = {doc.id: doc for result in results for doc in result}
Expand Down

0 comments on commit ccd3ee1

Please sign in to comment.