You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
ExtractiveReader breaks if run with no documents
Error message
File "/home/rootuser/miniconda3/envs/xxxx/lib/python3.10/site-packages/haystack/components/readers/extractive.py", line 630, in run
answers = self._nest_answers(
File "/home/rootuser/miniconda3/envs/xxxx/lib/python3.10/site-packages/haystack/components/readers/extractive.py", line 391, in _nest_answers
current_answers = self.deduplicate_by_overlap(current_answers, overlap_threshold=overlap_threshold)
File "/home/rootuser/miniconda3/envs/xxxx/lib/python3.10/site-packages/haystack/components/readers/extractive.py", line 515, in deduplicate_by_overlap
deduplicated_answers = [answers[0]]
System:
OS: Linux
GPU: A100
Haystack version: v2.2.2
The text was updated successfully, but these errors were encountered:
Describe the bug
ExtractiveReader breaks if run with no documents
Error message
File "/home/rootuser/miniconda3/envs/xxxx/lib/python3.10/site-packages/haystack/components/readers/extractive.py", line 630, in run
answers = self._nest_answers(
File "/home/rootuser/miniconda3/envs/xxxx/lib/python3.10/site-packages/haystack/components/readers/extractive.py", line 391, in _nest_answers
current_answers = self.deduplicate_by_overlap(current_answers, overlap_threshold=overlap_threshold)
File "/home/rootuser/miniconda3/envs/xxxx/lib/python3.10/site-packages/haystack/components/readers/extractive.py", line 515, in deduplicate_by_overlap
deduplicated_answers = [answers[0]]
System:
The text was updated successfully, but these errors were encountered: