Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security GenAI][AI Assistant] Remove ES|QL Query Generation quick prompt #200483

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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