Skip to content

Commit

Permalink
Refine alert prompt
Browse files Browse the repository at this point in the history
Signed-off-by: Heng Qian <[email protected]>
  • Loading branch information
qianheng-aws committed Sep 2, 2024
1 parent 662923b commit 3ba3482
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const GeneratePopoverBody: React.FC<{
summaryType,
summaryContent,
contextContent,
'Please provide your insight on this alert to help users understand this alert, find potential causes and give feasible solutions to address this alert'
`Please provide your insight on this ${summaryType}.`
);
}
})
Expand Down
4 changes: 2 additions & 2 deletions server/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ declare module '../../../src/core/server' {
export const SummaryType = [
{
id: 'alerts',
prompt: `You are an OpenSearch Alert Assistant to help summarize the alerts. Here is the detail of alert: $\{parameters.context}; The question is $\{parameters.question}`,
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}`,
},
];

export const InsightType = [
{
id: 'alerts',
prompt: `You are an OpenSearch Alert Assistant to provide your insight on this alert. Here is the detail of alert: $\{parameters.context}; The alert summary is $\{parameters.summary}; The question is $\{parameters.question}`,
prompt: `You are an OpenSearch Alert Assistant to provide your insight on this alert to help users understand the alert, find potential causes and give feasible solutions to address it.\n Here is the detail of alert: $\{parameters.context};\n The alert summary is: $\{parameters.summary};\n The question is: $\{parameters.question}`,
},
];

0 comments on commit 3ba3482

Please sign in to comment.