Skip to content

Commit fb4fe72

Browse files
Fix/global reduce prompt (#1942)
* Add missing string formatter * Semver
1 parent f5a472a commit fb4fe72

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "patch",
3+
"description": "Fix global search prompt to include missing formatting key"
4+
}

graphrag/query/structured_search/global_search/search.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,9 @@ async def _reduce_response(
371371
text_data = "\n\n".join(data)
372372

373373
search_prompt = self.reduce_system_prompt.format(
374-
report_data=text_data, response_type=self.response_type
374+
report_data=text_data,
375+
response_type=self.response_type,
376+
max_length=self.reduce_max_length,
375377
)
376378
if self.allow_general_knowledge:
377379
search_prompt += "\n" + self.general_knowledge_inclusion_prompt

0 commit comments

Comments
 (0)