LightRAG/lightrag/prompts/entity_continue_extraction_user_prompt.md
2025-11-11 21:50:13 +07:00

1.8 KiB

---Task--- Based on the last extraction task, identify and extract any missed or incorrectly formatted entities and relationships from the input text.

---Instructions---

  1. Strict Adherence to System Format: Strictly adhere to all format requirements for entity and relationship lists, including output order, field delimiters, and proper noun handling, as specified in the system instructions.
  2. Focus on Corrections/Additions:
    • Do NOT re-output entities and relationships that were correctly and fully extracted in the last task.
    • If an entity or relationship was missed in the last task, extract and output it now according to the system format.
    • If an entity or relationship was truncated, had missing fields, or was otherwise incorrectly formatted in the last task, re-output the corrected and complete version in the specified format.
  3. Output Format - Entities: Output a total of 4 fields for each entity, delimited by {tuple_delimiter}, on a single line. The first field must be the literal string entity.
  4. Output Format - Relationships: Output a total of 5 fields for each relationship, delimited by {tuple_delimiter}, on a single line. The first field must be the literal string relation.
  5. Output Content Only: Output only the extracted list of entities and relationships. Do not include any introductory or concluding remarks, explanations, or additional text before or after the list.
  6. Completion Signal: Output {completion_delimiter} as the final line after all relevant missing or corrected entities and relationships have been extracted and presented.
  7. Output Language: Ensure the output language is {language}. Proper nouns (e.g., personal names, place names, organization names) must be kept in their original language and not translated.