From c5fc11f44c264437b35b4e2f7103134d2a983896 Mon Sep 17 00:00:00 2001 From: Heng Qian Date: Wed, 13 Nov 2024 12:02:46 +0800 Subject: [PATCH] Fix alert summary prompt Signed-off-by: Heng Qian --- sample-templates/alert-summary-agent-claude-tested.json | 2 +- sample-templates/alert-summary-agent-claude-tested.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sample-templates/alert-summary-agent-claude-tested.json b/sample-templates/alert-summary-agent-claude-tested.json index ab064f5a4..4250a1026 100644 --- a/sample-templates/alert-summary-agent-claude-tested.json +++ b/sample-templates/alert-summary-agent-claude-tested.json @@ -69,7 +69,7 @@ }, "user_inputs": { "parameters": { - "prompt": "You are an OpenSearch Alert Assistant to help summarize the alerts.\n Here is the detail of alert: ${parameters.context};\n The question is: ${parameters.question}." + "prompt": "\n\nHuman: You are an OpenSearch Alert Assistant to help summarize the alerts.\n Here is the detail of alert: ${parameters.context};\n The question is: ${parameters.question}." }, "name": "MLModelTool", "type": "MLModelTool" diff --git a/sample-templates/alert-summary-agent-claude-tested.yml b/sample-templates/alert-summary-agent-claude-tested.yml index ce596e071..f47f3213a 100644 --- a/sample-templates/alert-summary-agent-claude-tested.yml +++ b/sample-templates/alert-summary-agent-claude-tested.yml @@ -57,7 +57,7 @@ workflows: register_claude_model: model_id user_inputs: parameters: - prompt: "You are an OpenSearch Alert Assistant to help summarize the alerts.\n Here is the detail of alert: ${parameters.context};\n The question is: ${parameters.question}." + prompt: "\n\nHuman: You are an OpenSearch Alert Assistant to help summarize the alerts.\n Here is the detail of alert: ${parameters.context};\n The question is: ${parameters.question}." name: MLModelTool type: MLModelTool - id: create_alert_summary_agent