Update prompt.py

missing ‘)’ in PROMPTS["entity_continue_extraction"] lead to misunderstanding prompt for some small models and can not responsing correctly.
This commit is contained in:
Chen Yuwen
2025-04-21 16:04:19 +08:00
committed by GitHub
parent bfce14d41f
commit 8bf78f0823

View File

@@ -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}<entity_name>{tuple_delimiter}<entity_type>{tuple_delimiter}<entity_description>
Format each entity as ("entity"{tuple_delimiter}<entity_name>{tuple_delimiter}<entity_type>{tuple_delimiter}<entity_description>)
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: