From 02da1cb38edfc1868b651de749359f3f7ed21fb8 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Tue, 4 Mar 2025 14:27:37 +1100 Subject: [PATCH] [8.x] [Obs AI Assistant] Improve instructions for the summarize function (#212936) (#213001) # Backport This will backport the following commits from `main` to `8.x`: - [[Obs AI Assistant] Improve instructions for the summarize function (#212936)](https://github.com/elastic/kibana/pull/212936) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) Co-authored-by: Viduni Wickramarachchi --- .../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.`); }