From 3f56c6820c8ec83f335b988cd4ceb190973b707d Mon Sep 17 00:00:00 2001 From: yangdx Date: Thu, 4 Sep 2025 23:05:16 +0800 Subject: [PATCH] Reorder language and completion delimiter instructions in prompt --- lightrag/prompt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightrag/prompt.py b/lightrag/prompt.py index e89f4b4b..0cd8660b 100644 --- a/lightrag/prompt.py +++ b/lightrag/prompt.py @@ -26,8 +26,8 @@ For a given text and a list of entity types, extract all entities and their rela - relationship_description: Explain the nature of the relationship between the source and target entities, providing a clear rationale for their connection 4. Format each relationship as: (relationship{tuple_delimiter}{tuple_delimiter}{tuple_delimiter}{tuple_delimiter}) 5. Use `{tuple_delimiter}` as field delimiter. Use `{record_delimiter}` as the entity or relation list delimiter. -6. Return identified entities and relationships in {language}. -7. Output `{completion_delimiter}` when all the entities and relationships are extracted. +6. Output `{completion_delimiter}` when all the entities and relationships are extracted. +7. Ensure the output language is {language}. ---Quality Guidelines--- - Only extract entities and relationships that are clearly defined and meaningful in the context