From 3f31af80d27688244607d501c444e6a25415da44 Mon Sep 17 00:00:00 2001 From: benx13 <32802278+benx13@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:03:08 -0700 Subject: [PATCH] typo summarize prompt (#907) * typo in entity_summarization prompt * typo in summarize prompt --------- Co-authored-by: Alonso Guevara --- graphrag/index/graph/extractors/summarize/prompts.py | 2 +- graphrag/prompt_tune/template/entity_summarization.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/graphrag/index/graph/extractors/summarize/prompts.py b/graphrag/index/graph/extractors/summarize/prompts.py index 90e4434e..8e544999 100644 --- a/graphrag/index/graph/extractors/summarize/prompts.py +++ b/graphrag/index/graph/extractors/summarize/prompts.py @@ -8,7 +8,7 @@ You are a helpful assistant responsible for generating a comprehensive summary o Given one or two entities, and a list of descriptions, all related to the same entity or group of entities. Please concatenate all of these into a single, comprehensive description. Make sure to include information collected from all the descriptions. If the provided descriptions are contradictory, please resolve the contradictions and provide a single, coherent summary. -Make sure it is written in third person, and include the entity names so we the have full context. +Make sure it is written in third person, and include the entity names so we have the full context. ####### -Data- diff --git a/graphrag/prompt_tune/template/entity_summarization.py b/graphrag/prompt_tune/template/entity_summarization.py index 60294a29..7710ba0b 100644 --- a/graphrag/prompt_tune/template/entity_summarization.py +++ b/graphrag/prompt_tune/template/entity_summarization.py @@ -9,7 +9,7 @@ Using your expertise, you're asked to generate a comprehensive summary of the da Given one or two entities, and a list of descriptions, all related to the same entity or group of entities. Please concatenate all of these into a single, concise description in {language}. Make sure to include information collected from all the descriptions. If the provided descriptions are contradictory, please resolve the contradictions and provide a single, coherent summary. -Make sure it is written in third person, and include the entity names so we the have full context. +Make sure it is written in third person, and include the entity names so we have the full context. Enrich it as much as you can with relevant information from the nearby text, this is very important.