Skip to content

Commit

Permalink
Merge b7b8f1d into fa100b4
Browse files Browse the repository at this point in the history
  • Loading branch information
kyracho authored Nov 21, 2024
2 parents fa100b4 + b7b8f1d commit 59e080a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
import { APP_UI_ID } from '../../../../common';
import * as i18n from './translations';
import {
KNOWLEDGE_BASE_CATEGORY,
PROMPT_CONTEXT_ALERT_CATEGORY,
PROMPT_CONTEXT_DETECTION_RULES_CATEGORY,
PROMPT_CONTEXT_EVENT_CATEGORY,
Expand All @@ -34,16 +33,6 @@ export const BASE_SECURITY_QUICK_PROMPTS: PromptResponse[] = [
promptType: PromptTypeEnum.quick,
consumer: APP_UI_ID,
},
{
name: i18n.ESQL_QUERY_GENERATION_TITLE,
content: i18n.ESQL_QUERY_GENERATION_PROMPT,
color: '#9170B8',
categories: [KNOWLEDGE_BASE_CATEGORY],
isDefault: true,
id: i18n.ESQL_QUERY_GENERATION_TITLE,
promptType: PromptTypeEnum.quick,
consumer: APP_UI_ID,
},
{
name: i18n.RULE_CREATION_TITLE,
content: i18n.RULE_CREATION_PROMPT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,6 @@ export const ALERT_SUMMARIZATION_PROMPT = i18n.translate(
}
);

export const ESQL_QUERY_GENERATION_TITLE = i18n.translate(
'xpack.securitySolution.assistant.quickPrompts.esqlQueryGenerationTitle',
{
defaultMessage: 'ES|QL Query Generation',
}
);

export const ESQL_QUERY_GENERATION_PROMPT = i18n.translate(
'xpack.securitySolution.assistant.quickPrompts.esqlQueryGenerationPrompt',
{
defaultMessage:
"As an expert user of Elastic Security, please generate an accurate and valid ESQL query to detect the use case below. Your response should be formatted to be able to use immediately in an Elastic Security timeline or detection rule. Take your time with the answer, check your knowledge really well on all the functions I am asking for. For ES|QL answers specifically, you should only ever answer with what's available in your private knowledge. I cannot afford for queries to be inaccurate. Assume I am using the Elastic Common Schema and Elastic Agent.\n\nEnsure the answers are formatted in a way which is easily copyable as a separate code block in markdown.",
}
);

export const RULE_CREATION_TITLE = i18n.translate(
'xpack.securitySolution.assistant.quickPrompts.ruleCreationTitle',
{
Expand Down

0 comments on commit 59e080a

Please sign in to comment.