From dc45180f8479d08987099882cc8096588b7d8bf4 Mon Sep 17 00:00:00 2001 From: Rick Hennigan Date: Tue, 5 Nov 2024 17:22:20 -0500 Subject: [PATCH] Enable RelatedDocumentation RAG for some personas --- .../Personas/Birdnardo/LLMConfiguration.wl | 3 +-- .../Personas/CodeAssistant/LLMConfiguration.wl | 17 ++++++----------- .../Personas/CodeWriter/LLMConfiguration.wl | 3 ++- .../Personas/Wolfie/LLMConfiguration.wl | 3 +-- 4 files changed, 10 insertions(+), 16 deletions(-) diff --git a/LLMConfiguration/Personas/Birdnardo/LLMConfiguration.wl b/LLMConfiguration/Personas/Birdnardo/LLMConfiguration.wl index 55525d6c..e648932c 100644 --- a/LLMConfiguration/Personas/Birdnardo/LLMConfiguration.wl +++ b/LLMConfiguration/Personas/Birdnardo/LLMConfiguration.wl @@ -2,9 +2,8 @@ "Description" -> "The one and only Birdnardo", "DisplayName" -> Dynamic @ FEPrivate`FrontEndResource[ "ChatbookStrings", "PersonaNameBirdnardo" ], "DocumentationLink" -> "https://resources.wolframcloud.com/PromptRepository/resources/Birdnardo/", + "PromptGenerators" -> { "RelatedDocumentation" }, "Tools" -> { - "DocumentationLookup", - "DocumentationSearcher", "WolframAlpha", "WolframLanguageEvaluator", "WebSearcher", diff --git a/LLMConfiguration/Personas/CodeAssistant/LLMConfiguration.wl b/LLMConfiguration/Personas/CodeAssistant/LLMConfiguration.wl index c08926a0..59da5857 100644 --- a/LLMConfiguration/Personas/CodeAssistant/LLMConfiguration.wl +++ b/LLMConfiguration/Personas/CodeAssistant/LLMConfiguration.wl @@ -1,13 +1,8 @@ <| - "BasePrompt" -> { "Notebooks", "WolframLanguageStyle" }, - "Description" -> "Help with writing and generating Wolfram Language code", - "DisplayName" -> Dynamic @ FEPrivate`FrontEndResource[ "ChatbookStrings", "PersonaNameCodeAssistant" ], - "Icon" -> RawBoxes @ TemplateBox[ { }, "ChatIconCodeAssistant" ], - "Tools" -> { - "DocumentationLookup", - "DocumentationSearcher", - "WolframAlpha", - "WolframLanguageEvaluator", - ParentList - } + "BasePrompt" -> { "Notebooks", "WolframLanguageStyle" }, + "Description" -> "Help with writing and generating Wolfram Language code", + "DisplayName" -> Dynamic @ FEPrivate`FrontEndResource[ "ChatbookStrings", "PersonaNameCodeAssistant" ], + "Icon" -> RawBoxes @ TemplateBox[ { }, "ChatIconCodeAssistant" ], + "PromptGenerators" -> { "RelatedDocumentation" }, + "Tools" -> { "WolframAlpha", "WolframLanguageEvaluator", ParentList } |> \ No newline at end of file diff --git a/LLMConfiguration/Personas/CodeWriter/LLMConfiguration.wl b/LLMConfiguration/Personas/CodeWriter/LLMConfiguration.wl index 6ee20f2c..2d19d81d 100644 --- a/LLMConfiguration/Personas/CodeWriter/LLMConfiguration.wl +++ b/LLMConfiguration/Personas/CodeWriter/LLMConfiguration.wl @@ -2,7 +2,8 @@ "BasePrompt" -> { "WolframLanguageStyle" }, "DisplayName" -> Dynamic @ FEPrivate`FrontEndResource[ "ChatbookStrings", "PersonaNameCodeWriter" ], "Icon" -> RawBoxes @ TemplateBox[ { }, "ChatIconCodeWriter" ], - "Tools" -> { "DocumentationLookup", "DocumentationSearcher", ParentList }, + "PromptGenerators" -> { "RelatedDocumentation" }, + "Tools" -> { ParentList }, "Description" -> "AI code generation with minimal commentary", "DocumentationLink" -> "https://resources.wolframcloud.com/PromptRepository/resources/CodeWriter/" |> \ No newline at end of file diff --git a/LLMConfiguration/Personas/Wolfie/LLMConfiguration.wl b/LLMConfiguration/Personas/Wolfie/LLMConfiguration.wl index 4f08c719..e91124d5 100644 --- a/LLMConfiguration/Personas/Wolfie/LLMConfiguration.wl +++ b/LLMConfiguration/Personas/Wolfie/LLMConfiguration.wl @@ -2,9 +2,8 @@ "Description" -> "Wolfram's friendliest AI guide", "DisplayName" -> Dynamic @ FEPrivate`FrontEndResource[ "ChatbookStrings", "PersonaNameWolfie" ], "DocumentationLink" -> "https://resources.wolframcloud.com/PromptRepository/resources/Wolfie/", + "PromptGenerators" -> { "RelatedDocumentation" }, "Tools" -> { - "DocumentationLookup", - "DocumentationSearcher", "WolframAlpha", "WolframLanguageEvaluator", "WebSearcher",