Skip to content

Fix missing function parameter in search.py #1913

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amoor22
Copy link

@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
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.

1 participant