From a3048487a17c12a50fd2837cc9db4274fbe9a19d Mon Sep 17 00:00:00 2001 From: fantom845 <77169323+fantom845@users.noreply.github.com> Date: Thu, 29 Aug 2024 05:17:48 +0530 Subject: [PATCH] fix for issue 515 (#925) * fix for issue 515 * semver impact document --------- Co-authored-by: Kanishk Tyagi Co-authored-by: Alonso Guevara --- .semversioner/next-release/patch-20240814063732868394.json | 4 ++++ graphrag/prompt_tune/prompt/entity_relationship.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .semversioner/next-release/patch-20240814063732868394.json diff --git a/.semversioner/next-release/patch-20240814063732868394.json b/.semversioner/next-release/patch-20240814063732868394.json new file mode 100644 index 0000000000..78d685231b --- /dev/null +++ b/.semversioner/next-release/patch-20240814063732868394.json @@ -0,0 +1,4 @@ +{ + "type": "patch", + "description": "Fixed a bug in prompt tuning process" +} diff --git a/graphrag/prompt_tune/prompt/entity_relationship.py b/graphrag/prompt_tune/prompt/entity_relationship.py index 3af77db641..66eefa9947 100644 --- a/graphrag/prompt_tune/prompt/entity_relationship.py +++ b/graphrag/prompt_tune/prompt/entity_relationship.py @@ -22,7 +22,7 @@ - relationship_strength: an integer score between 1 to 10, indicating strength of the relationship between the source entity and target entity Format each relationship as ("relationship"{{tuple_delimiter}}{{tuple_delimiter}}{{tuple_delimiter}}{{tuple_delimiter}}) -3. Return output in {language} as a single list of all the entities and relationships identified in steps 1 and 2. Use **{{record_delimiter}}** as the list delimiter. +3. Return output in {language} as a single list of all the entities and relationships identified in steps 1 and 2. Use {{record_delimiter}} as the list delimiter. 4. If you have to translate into {language}, just translate the descriptions, nothing else!