From 8bf78f0823ee3fa5e16e7bac9052c65153c2e55a Mon Sep 17 00:00:00 2001 From: Chen Yuwen Date: Mon, 21 Apr 2025 16:04:19 +0800 Subject: [PATCH] Update prompt.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit missing ‘)’ in PROMPTS["entity_continue_extraction"] lead to misunderstanding prompt for some small models and can not responsing correctly. --- lightrag/prompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/prompt.py b/lightrag/prompt.py index d6d46e1f..f9b8cb1b 100644 --- a/lightrag/prompt.py +++ b/lightrag/prompt.py @@ -158,7 +158,7 @@ MANY entities and relationships were missed in the last extraction. - entity_name: Name of the entity, use same language as input text. If English, capitalized the name. - entity_type: One of the following types: [{entity_types}] - entity_description: Comprehensive description of the entity's attributes and activities -Format each entity as ("entity"{tuple_delimiter}{tuple_delimiter}{tuple_delimiter} +Format each entity as ("entity"{tuple_delimiter}{tuple_delimiter}{tuple_delimiter}) 2. From the entities identified in step 1, identify all pairs of (source_entity, target_entity) that are *clearly related* to each other. For each pair of related entities, extract the following information: