From ec059d1b5d0188b9aab2d5d3ae3737484017b59d Mon Sep 17 00:00:00 2001 From: yangdx Date: Mon, 1 Sep 2025 00:42:59 +0800 Subject: [PATCH] Fix typo and clarify delimiter formatting in relationship extraction Prompt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix "feild" → "field" typo - Clarify delimiter spacing rules --- lightrag/prompt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightrag/prompt.py b/lightrag/prompt.py index bd7451ee..51d15bc0 100644 --- a/lightrag/prompt.py +++ b/lightrag/prompt.py @@ -33,7 +33,7 @@ For each pair of related entities, extract the following information: 4. Format each relationship as: ("relationship"{tuple_delimiter}{tuple_delimiter}{tuple_delimiter}{tuple_delimiter}) -5. Use `{tuple_delimiter}` as feild delimiter, and use `{record_delimiter}` as the list delimiter. +5. Use `{tuple_delimiter}` as field delimiter. Use `{record_delimiter}` as the list delimiter. Ensure no spaces are added around the delimiters. 6. When finished, output `{completion_delimiter}` @@ -208,7 +208,7 @@ For each pair of related entities, extract the following information: 4. Format each relationship as: ("relationship"{tuple_delimiter}{tuple_delimiter}{tuple_delimiter}{tuple_delimiter}) -5. Use `{tuple_delimiter}` as feild delimiter, and use `{record_delimiter}` as the list delimiter. +5. Use `{tuple_delimiter}` as field delimiter. Use `{record_delimiter}` as the list delimiter. Ensure no spaces are added around the delimiters. 6. When finished, output `{completion_delimiter}`