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:
@@ -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_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_type: One of the following types: [{entity_types}]
|
||||||
- entity_description: Comprehensive description of the entity's attributes and activities
|
- 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.
|
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:
|
For each pair of related entities, extract the following information:
|
||||||
|
Reference in New Issue
Block a user