From 3e65f43b79bc7af5fb0974c57d7e60b8da816d2e Mon Sep 17 00:00:00 2001 From: rekha0suthar <71004640+rekha0suthar@users.noreply.github.com> Date: Tue, 28 Jul 2026 15:01:54 +0530 Subject: [PATCH] [BUG](llm-summarizer): fix output_types key mismatch LLMSummarizer declared @component.output_types(summary=...) but returned {"documents": ...}, causing a key mismatch that breaks pipeline connections using the declared output edge. Align the declaration to match the actual return key: documents. --- haystack_experimental/components/summarizers/llm_summarizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haystack_experimental/components/summarizers/llm_summarizer.py b/haystack_experimental/components/summarizers/llm_summarizer.py index cb65d2d4..75d42a31 100644 --- a/haystack_experimental/components/summarizers/llm_summarizer.py +++ b/haystack_experimental/components/summarizers/llm_summarizer.py @@ -261,7 +261,7 @@ def summarize(self, text: str, detail: float, minimum_chunk_size: int, summarize # combine all summaries return "\n\n".join(accumulated_summaries) - @component.output_types(summary=list[Document]) + @component.output_types(documents=list[Document]) def run( self, *,