opensearch-project / anomaly-detection-dashboards-plugin

Manage your detectors and identify atypical data in OpenSearch Dashboards
https://opensearch.org/docs/latest/monitoring-plugins/ad/index/
Apache License 2.0
28 stars 58 forks source link

[FEATURE] Add support for text to anomaly detector #816

Open gaobinlong opened 1 month ago

gaobinlong commented 1 month ago

Is your feature request related to a problem? As part of the olly project, text to anomaly detector is an important feature which lets LLM to give the recommended parameters for creating anomaly detector based on the give index, the frontend needs to add some support for this feature.

What solution would you like?

  1. In anomaly-detection-dashboards-plugin, we need to intercept the response from the chatbot and show a flyout with pre-filled parameters if the response contains the key information related to anomaly detector, the dashboard-assistant plugin provides a registry point which can be used easily by other plugins.
  2. At the first place, we did some investigation on feature anywhere's create anomaly detector flyout, but found it cannot be leveraged by this feature because it's bounded with visualization, but for this feature, no visualization will be generated. So we may implement a new flyout which only contains some input forms for creating anomaly detector.

What alternatives have you considered? About creating anomaly detector, we may use the create anomaly detector page or feature anywhere's flyout in this plugin, but both are not friendly and not feasible.

Do you have any additional context? A demo video about text to anomaly detector and the backend work in skills plugin:

https://github.com/opensearch-project/skills/issues/337 https://github.com/opensearch-project/skills/pull/348

dblock commented 1 month ago

[Catch All Triage - 1, 2, 3]