Skip to content

Fix missing function parameter in search.py#1913

Closed
amoor22 wants to merge 1 commit intomicrosoft:mainfrom
amoor22:patch-1
Closed

Fix missing function parameter in search.py#1913
amoor22 wants to merge 1 commit intomicrosoft:mainfrom
amoor22:patch-1

Conversation

@amoor22
Copy link
Copy Markdown

@amoor22 amoor22 commented May 3, 2025

Description

This PR fixes a bug in the _reduce_response function in the search.py file in global_search.

A format call is made on the self.reduce_system_prompt string which contains a placeholder for max_length which is not provided in the format call.

Proposed Changes

Add the missing parameter to the function call.

Checklist

  • [ x ] I have tested these changes locally.
  • [ x ] I have reviewed the code changes.
  • [ x ] I have updated the documentation (if necessary).
  • [ x ] I have added appropriate unit tests (if applicable).

In the `_reduce_response` function, a format call is made on the `self.reduce_system_prompt` string which contains a placeholder for `max_length` which is not provided in the format call.
@amoor22 amoor22 requested review from a team as code owners May 3, 2025 11:42
@natoverse natoverse closed this Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants