mirror of
https://github.com/microsoft/graphrag.git
synced 2025-06-26 23:19:58 +00:00
Fix/global reduce prompt (#1942)
* Add missing string formatter * Semver
This commit is contained in:
parent
f5a472ab14
commit
fb4fe72a73
@ -0,0 +1,4 @@
|
||||
{
|
||||
"type": "patch",
|
||||
"description": "Fix global search prompt to include missing formatting key"
|
||||
}
|
@ -371,7 +371,9 @@ class GlobalSearch(BaseSearch[GlobalContextBuilder]):
|
||||
text_data = "\n\n".join(data)
|
||||
|
||||
search_prompt = self.reduce_system_prompt.format(
|
||||
report_data=text_data, response_type=self.response_type
|
||||
report_data=text_data,
|
||||
response_type=self.response_type,
|
||||
max_length=self.reduce_max_length,
|
||||
)
|
||||
if self.allow_general_knowledge:
|
||||
search_prompt += "\n" + self.general_knowledge_inclusion_prompt
|
||||
|
Loading…
x
Reference in New Issue
Block a user