graphrag icon indicating copy to clipboard operation
graphrag copied to clipboard

Fix missing function parameter in search.py

Open amoor22 opened this issue 7 months ago • 0 comments

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

amoor22 avatar May 03 '25 11:05 amoor22