From 35efe8ab39786ac312254905f321d44997f86a0b Mon Sep 17 00:00:00 2001 From: Viduni Wickramarachchi Date: Mon, 3 Mar 2025 18:56:55 -0500 Subject: [PATCH] [Obs AI Assistant] Improve instructions for the summarize function (#212936) (cherry picked from commit ec127e271c5dd23f3c6c11eb410d478030cfb486) --- .../shared/observability_ai_assistant/server/functions/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/platform/plugins/shared/observability_ai_assistant/server/functions/index.ts b/x-pack/platform/plugins/shared/observability_ai_assistant/server/functions/index.ts index 244c867e7f644..36a0b66dc60b7 100644 --- a/x-pack/platform/plugins/shared/observability_ai_assistant/server/functions/index.ts +++ b/x-pack/platform/plugins/shared/observability_ai_assistant/server/functions/index.ts @@ -112,7 +112,7 @@ export const registerFunctions: RegistrationCallback = async ({ if (isKnowledgeBaseReady) { if (availableFunctionNames.includes(SUMMARIZE_FUNCTION_NAME)) { instructions.push(`You can use the "${SUMMARIZE_FUNCTION_NAME}" function to store new information you have learned in a knowledge database. - Only use this function when the user asks for it. + Only use this function when the user asks to remember or store some information. All summaries MUST be created in English, even if the conversation was carried out in a different language.`); }