Closed dhru42 closed 7 months ago
@benironside @joepeeples please let us know if you want to get together for a live demo of this feature.
Given the new guidance regarding FF's, we'd love the ability to release this feature as enabled
behind a feature flag if docs are available. Please let us know if that will be possible, and we're happy to help out in any way we can.
cc: @jamesspi @andrew-goldstein @spong
Thanks for documenting this feature!
We made a few small changes in this PR: https://github.com/elastic/kibana/pull/173121
acknowledged
alerts are now included as context (in addition to open
) alertsAsk questions about the (n) latest and riskiest open and acknowledged alerts in your environment.
was updated to include acknowledged
alertsSelect fewer alerts if the model's maximum context length is frequently exceeded.
was added because users may encounter the following error when they exceed the model's maximum context length:We're happy to improve the settings text with your feedback if you're willing to provide it.
Description
What: We're implementing Retrieval Augmented Generation for Alerts Why: Currently, the AI Assistant provides one alert or event at a time as context to the LLM, but has no way to answer questions about multiple alerts in the alerts index. With this functionality, the assistant can provide the riskiest, latest alerts as context to the LLM, with data anonymized per a user’s settings. Example of new questions users can ask: _- How many alerts are currently open?
How:
Show anonymized
toggle to see the anonymized values sent to / received from the LLM:Settings
This feature is enabled and configured via the![rag_on_alerts_setting](https://github.com/elastic/kibana/assets/4459398/9161b6d4-b7c3-4f37-bcde-f032f5a02966)
Knowledge Base
>Alerts
settings in the screenshot below:Alerts
toggle enables or disables the feature10
-100
alerts (default:20
)When the setting above is enabled, up to
n
alerts (as determined by the slider) that meet the following criteria will be returned:kibana.alert.workflow_status
must beopen
24 hours
kibana.alert.building_block_type
alertn
alerts are ordered bykibana.alert.risk_score
, to prioritize the riskiest alertsBackground & resources
Which documentation set does this change impact?
ESS and serverless
ESS release
8.12
Serverless release
tbd
Feature differences
N/A
API docs impact
n/a
Prerequisites, privileges, feature flags
Feature flag To use this feature:
Add the assistantRagOnAlerts feature flag to the xpack.securitySolution.enableExperimental setting in config/kibana.yml (or config/kibana.dev.yml in local development environments), per the example below: xpack.securitySolution.enableExperimental: ['assistantRagOnAlerts'] Enable the Alerts toggle in the Assistant's Knowledge Base settings, per the screenshot below:![image](https://github.com/elastic/security-docs/assets/96066689/12a207fc-0245-439b-b546-15102955dc4a)