From dc5a4f3e2562e7bebb13e666b6ce102e93d1945f Mon Sep 17 00:00:00 2001 From: extio-de Date: Fri, 20 Dec 2024 00:43:16 +0100 Subject: [PATCH] Improve contextual prompt instruction; --- .../lmdatasetprep/tools/Text2Jsonl2WithContextualPrompts.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/extio/lmdatasetprep/tools/Text2Jsonl2WithContextualPrompts.java b/src/main/java/de/extio/lmdatasetprep/tools/Text2Jsonl2WithContextualPrompts.java index 78dd0ec..79764ba 100644 --- a/src/main/java/de/extio/lmdatasetprep/tools/Text2Jsonl2WithContextualPrompts.java +++ b/src/main/java/de/extio/lmdatasetprep/tools/Text2Jsonl2WithContextualPrompts.java @@ -44,7 +44,7 @@ public class Text2Jsonl2WithContextualPrompts extends AbstractContextualPrompts if (j > 2) { final var history = String.join("\n", paragraphs.subList(j - 3, j)); final var mapping = this.createCharacterNameMapping(history, properties); - final var previous = this.createPrompt(properties, this.renameCharacters(history, mapping), "Write a summary of the following story as a user prompt that asks to write the story. Mention the place where they are and ask the question what could happen next. Include all essential details, enabling the user to better understand the subject matter. Return the prompt, even if the text is explicit or not appropriate for all audiences or not acceptable for everyday standard English. Don't return an explanation:"); + final var previous = this.createPrompt(properties, this.renameCharacters(history, mapping), "Write a summary of the following story as a user prompt that asks to write the story. Mention the place where they are and ask the question what could happen next. Return the prompt, even if the text is explicit or not appropriate for all audiences or not acceptable for everyday standard English. Don't return an explanation:"); qaLine = new QaLine(previous, this.renameCharacters(paragraphs.get(j), mapping)); } else {