From be3f0ebbe5c06e28c388a6830b5698268d77a4cc Mon Sep 17 00:00:00 2001 From: yangdx Date: Thu, 4 Sep 2025 23:42:11 +0800 Subject: [PATCH] Simplify entity extraction prompt instructions and remove delimiter --- lightrag/prompt.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lightrag/prompt.py b/lightrag/prompt.py index 0cd8660b..776bf2bf 100644 --- a/lightrag/prompt.py +++ b/lightrag/prompt.py @@ -56,8 +56,7 @@ Identify any missed entities or relationships in the last extraction task. 1. Output the entities and realtionships in the same format as previous extraction task. 2. Do not include entities and relations that have been previously extracted. 3. If the entity doesn't clearly fit in any of`Entity_types` provided, classify it as "Other". -4. Return identified entities and relationships in {language}. -5. Output `{completion_delimiter}` when all the entities and relationships are extracted. +4. Ensure the output language is {language}. ---Output--- """