Skip to content

Commit 8cb6c43

Browse files
authored
Merge pull request #1310 from WolframResearch/feature/slightly-better-rag-cancel
Minor adjustment to RAG cancellation trigger prompt
2 parents efd5b82 + f4a714a commit 8cb6c43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/Chatbook/PromptGenerators/RelatedDocumentation.wl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ Respond with JSON in the following format:
552552
For \"AssistantType\", specify the type of assistant that should handle the user's message:
553553
\"Computational\": The user's message requires a computational response.
554554
\"Knowledge\": The user's message requires a knowledge-based response.
555-
\"Data\": The user's message requires a data or entity-based response.
555+
\"Data\": The user's message requires a data, multimedia, or entity-based response.
556556
\"CasualChat\": The user's message is casual and could be answered by a non-specialist. For example, simple greetings or general questions.
557557
558558
Specify a score as any number from 1 to 5 for your chosen snippets using the following rubric:
@@ -590,7 +590,7 @@ user's latest message.
590590
On the first line of your response, write one of these assistant types:
591591
\"Computational\": The user's message requires a computational response.
592592
\"Knowledge\": The user's message requires a knowledge-based response.
593-
\"Data\": The user's message requires a data or entity-based response.
593+
\"Data\": The user's message requires a data, multimedia, or entity-based response.
594594
\"CasualChat\": The user's message is casual and could be answered by a non-specialist. For example, simple greetings or general questions.
595595
596596
Then on each subsequent line, write a score (1-5) and id pair, separated by a space:
@@ -1029,7 +1029,7 @@ getSnippets[ uris: { ___String } ] := Enclose[
10291029
snippets = ConfirmMatch[ Lookup[ data, uris ], { ___Association }, "Snippets" ];
10301030
strings = ConfirmMatch[ Lookup[ "String" ] /@ snippets, { ___String }, "Strings" ];
10311031
ConfirmAssert[ Length @ strings === Length @ uris, "LengthCheck" ];
1032-
"# " <> # & /@ strings
1032+
"# " <> StringDelete[ #, StartOfString~~"# " ] & /@ strings
10331033
],
10341034
throwInternalFailure
10351035
];

0 commit comments

Comments
 (0)