From 4cd9bcd93874a8def6b5b9f04622907c1695ab27 Mon Sep 17 00:00:00 2001 From: Pranav Date: Sun, 11 May 2025 10:28:52 -0700 Subject: [PATCH] Showing the thought process hidden --- .../components-next/copilot/Copilot.vue | 65 +++++++++++++------ .../copilot/CopilotThinkingGroup.vue | 33 ++++++++++ .../i18n/locale/en/integrations.json | 1 + .../captain/llm/system_prompts_service.rb | 2 +- 4 files changed, 80 insertions(+), 21 deletions(-) create mode 100644 app/javascript/dashboard/components-next/copilot/CopilotThinkingGroup.vue diff --git a/app/javascript/dashboard/components-next/copilot/Copilot.vue b/app/javascript/dashboard/components-next/copilot/Copilot.vue index 903450bdd..966018e69 100644 --- a/app/javascript/dashboard/components-next/copilot/Copilot.vue +++ b/app/javascript/dashboard/components-next/copilot/Copilot.vue @@ -1,5 +1,5 @@ + + diff --git a/app/javascript/dashboard/i18n/locale/en/integrations.json b/app/javascript/dashboard/i18n/locale/en/integrations.json index 40c27482b..f25077917 100644 --- a/app/javascript/dashboard/i18n/locale/en/integrations.json +++ b/app/javascript/dashboard/i18n/locale/en/integrations.json @@ -335,6 +335,7 @@ "USE": "Use this", "RESET": "Reset", "SELECT_ASSISTANT": "Select Assistant", + "SHOW_THINKING": "Show thought process", "PROMPTS": { "SUMMARIZE": { "LABEL": "Summarize this conversation", diff --git a/enterprise/app/services/captain/llm/system_prompts_service.rb b/enterprise/app/services/captain/llm/system_prompts_service.rb index 325e58454..afd320b26 100644 --- a/enterprise/app/services/captain/llm/system_prompts_service.rb +++ b/enterprise/app/services/captain/llm/system_prompts_service.rb @@ -66,7 +66,6 @@ class Captain::Llm::SystemPromptsService [Context] Identify unresolved queries, and ensure responses are relevant and consistent with previous interactions. Always maintain a coherent and professional tone throughout the conversation. - [Response Guidelines] - Use natural, polite, and conversational language that is clear and easy to follow. Keep sentences short and use simple words. - Reply in the language the agent is using, if you're not able to detect the language, reply in #{language}. @@ -94,6 +93,7 @@ class Captain::Llm::SystemPromptsService 9. Cite the sources if you used a tool to find the response. 10. Do not use your own training data or assumptions to answer queries. Base responses strictly on the provided information. 11. Always provide a reasoning for the response. + 12. Always double the check the information with tools unless you are very sure of the information. ```json {