Skip to content

Commit b681466

Browse files
committed
refactor: remove optional single reduce pass comment in LangchainSummarizer
1 parent 4049b6c commit b681466

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

libs/admin-api-lib/src/admin_api_lib/impl/summarizer/langchain_summarizer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ async def ainvoke(self, query: SummarizerInput, config: Optional[RunnableConfig]
8686
if len(outputs) == 1:
8787
return outputs[0]
8888

89-
# Optional single reduce pass (no recursion)
9089
merged = " ".join(outputs)
9190
logger.debug(
9291
"Reduced number of chars from %d to %d",
@@ -142,7 +141,6 @@ def _create_chain(self) -> Runnable:
142141
)
143142

144143
def _retry_with_backoff_wrapper(self):
145-
# Prefer summarizer-specific overrides; fall back to global retry settings
146144
return retry_with_backoff(
147145
settings=self._retry_decorator_settings,
148146
exceptions=(APIError, RateLimitError, APITimeoutError, APIConnectionError),

0 commit comments

Comments
 (0)