-
Notifications
You must be signed in to change notification settings - Fork 503
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
doc: add document for dashboards assistant #8622
doc: add document for dashboards assistant #8622
Conversation
Thank you for submitting your PR. The PR states are In progress (or Draft) -> Tech review -> Doc review -> Editorial review -> Merged. Before you submit your PR for doc review, make sure the content is technically accurate. If you need help finding a tech reviewer, tag a maintainer. When you're ready for doc review, tag the assignee of this PR. The doc reviewer may push edits to the PR directly or leave comments and editorial suggestions for you to address (let us know in a comment if you have a preference). The doc reviewer will arrange for an editorial review. |
@ruanyl: Is this for the 2.18 release? |
@Naarcha-AWS Yes, we have several people collaborate on the documentation, there will be upcoming changes, so marked it as draft. |
@ruanyl Please tag me when this is ready to convert from draft. I'll start my doc review once all files are ready. Thank you. |
Signed-off-by: Yulong Ruan <[email protected]>
Signed-off-by: gaobinlong <[email protected]>
b07cb5e
to
685e460
Compare
* doc: Add document for dashboard assistant alert insight * fix title Signed-off-by: qianheng <[email protected]>
Signed-off-by: Liyun Xiu <[email protected]>
* add doc for alert insight agent Signed-off-by: yuye-aws <[email protected]> * add example request for alert insight API Signed-off-by: yuye-aws <[email protected]> * correct default value for question parameter for alert insight API Signed-off-by: yuye-aws <[email protected]> * add pics for alert insight UI Signed-off-by: yuye-aws <[email protected]> --------- Signed-off-by: yuye-aws <[email protected]>
685e460
to
08a8508
Compare
@vagimeli This PR is ready for review, thanks :) |
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kolchfa-aws @ruanyl Please see my comments and changes and let me know if you have any questions. Thanks!
|
||
# Alert insights | ||
|
||
This is an experimental feature and is not recommended for use in a production environment. For updates on the progress the feature or if you want to leave feedback, join the discussion in the [OpenSearch forum](https://forum.opensearch.org/). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an experimental feature and is not recommended for use in a production environment. For updates on the progress the feature or if you want to leave feedback, join the discussion in the [OpenSearch forum](https://forum.opensearch.org/). | |
This is an experimental feature and is not recommended for use in a production environment. For updates on the progress of the feature or if you want to leave feedback, join the discussion on the [OpenSearch forum](https://forum.opensearch.org/). |
This is an experimental feature and is not recommended for use in a production environment. For updates on the progress the feature or if you want to leave feedback, join the discussion in the [OpenSearch forum](https://forum.opensearch.org/). | ||
{: .warning} | ||
|
||
The OpenSearch Dashboards Assistant alert insights help generate alert summaries and provide log patterns based on the logs that triggered the alert. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The OpenSearch Dashboards Assistant alert insights help generate alert summaries and provide log patterns based on the logs that triggered the alert. | |
OpenSearch Dashboards Assistant alert insights generate alert summaries and provide log patterns based on the logs that triggered the alert. |
- A basic alert summary agent | ||
- An agent for an alert summary that includes log patterns | ||
|
||
These agents require different prompts. The prompt for the log patterns summary must include a placeholder `${parameters.topNLogPatternData}` and additional instructions to guide the LLM on using this information effectively. Note that log patterns are available only for query monitors created using OpenSearch Dashboards. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These agents require different prompts. The prompt for the log patterns summary must include a placeholder `${parameters.topNLogPatternData}` and additional instructions to guide the LLM on using this information effectively. Note that log patterns are available only for query monitors created using OpenSearch Dashboards. | |
These agents require different prompts. The prompt for the log patterns summary must include a placeholder `${parameters.topNLogPatternData}` and additional instructions that guide the large language model (LLM) in using this information effectively. Note that log patterns are available only for query monitors created using OpenSearch Dashboards. |
|
||
### Step 3: Create the root agents | ||
|
||
Next, create [root agents]({{site.url}}{{site.baseurl}}/automating-configurations/workflow-tutorial/#root_agent) for agents created in the previous step. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next, create [root agents]({{site.url}}{{site.baseurl}}/automating-configurations/workflow-tutorial/#root_agent) for agents created in the previous step. | |
Next, create [root agents]({{site.url}}{{site.baseurl}}/automating-configurations/workflow-tutorial/#root_agent) for the agents created in the previous step. |
``` | ||
{% include copy-curl.html %} | ||
|
||
The created `os_insight` agent provides alert insights related to OpenSearch cluster metrics. For insights about alerts unrelated to OpenSearch cluster metrics, you need to register an agent with [this template](https://github.com/opensearch-project/flow-framework/blob/main/sample-templates/create-knowledge-base-alert-agent.json) and change the agent name to `KB_For_Alert_Insight`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The created `os_insight` agent provides alert insights related to OpenSearch cluster metrics. For insights about alerts unrelated to OpenSearch cluster metrics, you need to register an agent with [this template](https://github.com/opensearch-project/flow-framework/blob/main/sample-templates/create-knowledge-base-alert-agent.json) and change the agent name to `KB_For_Alert_Insight`. | |
The `os_insight` agent provides alert insights related to OpenSearch cluster metrics. For insights about alerts unrelated to OpenSearch cluster metrics, you need to register an agent with [this template](https://github.com/opensearch-project/flow-framework/blob/main/sample-templates/create-knowledge-base-alert-agent.json) and change the agent name to `KB_For_Alert_Insight`. |
|
||
<img src="{{site.url}}{{site.baseurl}}/images/dashboards-assistant/t2viz-start.png" alt="Create a visualization by selecting natural language"> | ||
|
||
1. From the data sources dropdown list, select a data source, as shown in the following image. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should "data sources" be formatted as a UI element? (Data sources)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is an unnamed text box
Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: kolchfa-aws <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Yulong Ruan <[email protected]>
* fix doc for alert summary and insight Signed-off-by: yuye-aws <[email protected]> * fix doc Signed-off-by: yuye-aws <[email protected]> * change main branch to 2.x branch Signed-off-by: yuye-aws <[email protected]> * small fix Signed-off-by: yuye-aws <[email protected]> --------- Signed-off-by: yuye-aws <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kolchfa-aws Two hyphenation changes. Thanks!
@@ -32,7 +32,7 @@ assistant.alertInsight.enabled: true | |||
|
|||
### Step 2: Create the agents | |||
|
|||
To orchestrate alert insights, you'll need to create the necessary [agents]({{site.url}}{{site.baseurl}}/ml-commons-plugin/agents-tools/index/#agents). To create an agent, send a `POST /_plugins/_ml/agents/_register` request and provide the agent template as a payload. For example, to create an alert summary agent, send the following request: | |||
To orchestrate alert insights, you'll need to create the necessary [agents]({{site.url}}{{site.baseurl}}/ml-commons-plugin/agents-tools/index/#agents). Create a workflow template for creating all necessary text to visualization agents by sending the following request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"text-to-visualization agents"
|
||
To orchestrate text to visualization, create an `os_query_assist_ppl` agent. To create an agent, send a `POST /_plugins/_ml/agents/_register` request and provide the agent template as a payload. For more information, see [Configuring OpenSearch Assistant]({{site.url}}{{site.baseurl}}/dashboards/dashboards-assistant/index/#configuring-opensearch-assistant). | ||
To orchestrate text to visualization, you'll need to create the necessary [agents]({{site.url}}{{site.baseurl}}/ml-commons-plugin/agents-tools/index/#agents). Create a workflow template for creating all necessary text to visualization agents by sending the following request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"text-to-visualization agents"
Signed-off-by: Fanit Kolchina <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Fanit Kolchina <[email protected]>
…mentation-website into add-dashboards-assistant-doc
* doc: add document for dashboards assistant text to visualization Signed-off-by: Yulong Ruan <[email protected]> * Add documentation for suggest anomaly detector feature (#1) Signed-off-by: gaobinlong <[email protected]> * doc: Add document for dashboard assistant alert insight (opensearch-project#2) * doc: Add document for dashboard assistant alert insight * fix title Signed-off-by: qianheng <[email protected]> * Add data summary documentation (opensearch-project#3) Signed-off-by: Liyun Xiu <[email protected]> * add doc for alert insight agent (opensearch-project#4) * add doc for alert insight agent Signed-off-by: yuye-aws <[email protected]> * add example request for alert insight API Signed-off-by: yuye-aws <[email protected]> * correct default value for question parameter for alert insight API Signed-off-by: yuye-aws <[email protected]> * add pics for alert insight UI Signed-off-by: yuye-aws <[email protected]> --------- Signed-off-by: yuye-aws <[email protected]> * Doc review Signed-off-by: Fanit Kolchina <[email protected]> * minor rewording Signed-off-by: Fanit Kolchina <[email protected]> * Apply suggestions from code review Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Change to data summary feature Signed-off-by: Fanit Kolchina <[email protected]> * add instruction on how to create t2viz agents with flow template Signed-off-by: Yulong Ruan <[email protected]> * fix doc for alert summary and insight (opensearch-project#5) * fix doc for alert summary and insight Signed-off-by: yuye-aws <[email protected]> * fix doc Signed-off-by: yuye-aws <[email protected]> * change main branch to 2.x branch Signed-off-by: yuye-aws <[email protected]> * small fix Signed-off-by: yuye-aws <[email protected]> --------- Signed-off-by: yuye-aws <[email protected]> * Rewording agent creation steps Signed-off-by: Fanit Kolchina <[email protected]> * Editorial comment and rewording Signed-off-by: Fanit Kolchina <[email protected]> * Image sizes Signed-off-by: Fanit Kolchina <[email protected]> --------- Signed-off-by: Yulong Ruan <[email protected]> Signed-off-by: gaobinlong <[email protected]> Signed-off-by: qianheng <[email protected]> Signed-off-by: Liyun Xiu <[email protected]> Signed-off-by: yuye-aws <[email protected]> Signed-off-by: Fanit Kolchina <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> Co-authored-by: gaobinlong <[email protected]> Co-authored-by: qianheng <[email protected]> Co-authored-by: Liyun Xiu <[email protected]> Co-authored-by: yuye-aws <[email protected]> Co-authored-by: Fanit Kolchina <[email protected]> Co-authored-by: kolchfa-aws <[email protected]> Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Eric Pugh <[email protected]>
Description
Add documentation for dashboards-assistant
Issues Resolved
Closes #[insert issue number]
Version
List the OpenSearch version to which this PR applies, e.g. 2.14, 2.12--2.14, or all.
Frontend features
If you're submitting documentation for an OpenSearch Dashboards feature, add a video that shows how a user will interact with the UI step by step. A voiceover is optional.
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.