consistent format

This commit is contained in:
Zhichun Wu
2025-02-26 23:04:21 +08:00
parent c785b4ba7d
commit d79a9d7acc
2 changed files with 4 additions and 3 deletions

View File

@@ -362,7 +362,7 @@ async def extract_entities(
tuple_delimiter=PROMPTS["DEFAULT_TUPLE_DELIMITER"],
record_delimiter=PROMPTS["DEFAULT_RECORD_DELIMITER"],
completion_delimiter=PROMPTS["DEFAULT_COMPLETION_DELIMITER"],
entity_types=",".join(entity_types),
entity_types=", ".join(entity_types),
language=language,
)
# add example's format

View File

@@ -47,8 +47,9 @@ Format the content-level key words as ("content_keywords"{tuple_delimiter}<high_
#############################
---Real Data---
######################
Entity_types: {entity_types}
Text: {input_text}
Entity_types: [{entity_types}]
Text:
{input_text}
######################
Output:"""