From 2442f7a1e764939c61cfdc1d4e93188491476b06 Mon Sep 17 00:00:00 2001 From: Rick Hennigan Date: Mon, 13 Jan 2025 14:11:58 -0500 Subject: [PATCH] Use consistent instructions for both prompt styles --- .../PromptGenerators/RelatedDocumentation.wl | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Source/Chatbook/PromptGenerators/RelatedDocumentation.wl b/Source/Chatbook/PromptGenerators/RelatedDocumentation.wl index a0a48e72..84b9013c 100644 --- a/Source/Chatbook/PromptGenerators/RelatedDocumentation.wl +++ b/Source/Chatbook/PromptGenerators/RelatedDocumentation.wl @@ -487,19 +487,19 @@ Your task is to read a chat transcript and select relevant Wolfram Language docu user's latest message. On the first line of your response, write one of these assistant types: -Computational - For computational responses -Knowledge - For knowledge-based responses -CasualChat - For casual conversation + \"Computational\": The user's message requires a computational response. + \"Knowledge\": The user's message requires a knowledge-based response. + \"CasualChat\": The user's message is casual and could be answered by a non-specialist. For example, simple greetings or general questions. Then on each subsequent line, write a score (1-5) and id pair, separated by a space: -Scoring guide: -1: Irrelevant/useless -2: Related but unnecessary -3: Helpful -4: Very relevant -5: Essential +Specify the score as any number from 1 to 5 for your chosen snippets using the following rubric: + 1: The snippet is completely irrelevant to the user's message or has no usefulness. + 2: The snippet is somewhat related, but the assistant could easily answer the user's message without it. + 3: The snippet is related and might help the assistant answer the user's message. + 4: The snippet is very relevant and would significantly help the assistant answer the user's message. + 5: It would be impossible for the assistant to answer the user's message correctly without this snippet. Computational @@ -520,7 +520,7 @@ Available documentation snippets: Choose up to %%FilteredCount%% most relevant snippets. Skip irrelevant or redundant ones. -If no relevant pages exist, output a single dash (-). +If no relevant pages exist, only respond with the assistant type. Respond only in the specified format and do not include any other text.\ ", Delimiters -> "%%" ];