Skip to content

Commit da14d19

Browse files
yuye-awskolchfa-aws
authored andcommitted
Fix: Correct document for dashboards assistant (opensearch-project#8762)
* correct api Signed-off-by: yuye-aws <yuyezhu@amazon.com> * add system index warning Signed-off-by: yuye-aws <yuyezhu@amazon.com> * Apply suggestions from code review Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> --------- Signed-off-by: yuye-aws <yuyezhu@amazon.com> Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Signed-off-by: Eric Pugh <epugh@opensourceconnections.com>
1 parent 3a1b813 commit da14d19

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

_dashboards/dashboards-assistant/alert-insight.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ POST /.plugins-ml-config/_doc/os_insight
197197
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/2.x/sample-templates/create-knowledge-base-alert-agent.json) and change the agent name to `KB_For_Alert_Insight`.
198198
{: .note}
199199

200+
This example demonstrates a system index. In security-enabled domains, only superadmins have permissions to execute this code. For information about making superadmin calls, see [System indexes]({{site.url}}{{site.baseurl}}/security/configuration/system-indices/). For access permissions, contact your system administrator.
201+
{: .warning}
202+
200203
### Step 4: Test the agents
201204

202205
You can verify that the agents were created successfully by calling the agents with an example payload.

_dashboards/dashboards-assistant/data-summary.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ queryEnhancements.queryAssist.summary.enabled: true
3636
3737
### Step 2: Create a data summary agent
3838
39-
To orchestrate data summarization, create a data summary [agent]({{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:
39+
To orchestrate data summarization, create a data summary [agent]({{site.url}}{{site.baseurl}}/ml-commons-plugin/agents-tools/index/#agents). To create an agent, send a `POST /_plugins/_flow_framework/workflow?provision=true` request and provide the agent template as a payload:
4040

4141
<details markdown="block">
4242
<summary>
@@ -45,7 +45,8 @@ To orchestrate data summarization, create a data summary [agent]({{site.url}}{{s
4545
{: .text-delta}
4646

4747
```json
48-
POST /_plugins/_ml/agents/_register
48+
POST /_plugins/_flow_framework/workflow?provision=true
49+
4950
{
5051
"name": "Query Assist Agent",
5152
"description": "Create a Query Assist Agent using Claude on BedRock",
@@ -237,6 +238,9 @@ POST /.plugins-ml-config/_doc/os_data2summary
237238
```
238239
{% include copy-curl.html %}
239240

241+
This example demonstrates a system index. In security-enabled domains, only superadmins have permissions to execute this code. For information about making superadmin calls, see [System indexes]({{site.url}}{{site.baseurl}}/security/configuration/system-indices/). For access permissions, contact your system administrator.
242+
{: .warning}
243+
240244
### Step 4: Test the agent
241245

242246
You can verify that the data summary agent was created successfully by calling the agent with an example payload:

_dashboards/dashboards-assistant/suggest-anomaly-detector.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ assistant.smartAnomalyDetector.enabled: true
3636
3737
### Step 2: Create an anomaly detector suggestion agent
3838
39-
To orchestrate anomaly detector suggestions, create an anomaly detector suggestion [agent]({{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 more information, see [Configuring OpenSearch Assistant]({{site.url}}{{site.baseurl}}/dashboards/dashboards-assistant/index/#configuring-opensearch-assistant).
39+
To orchestrate anomaly detector suggestions, create an anomaly detector suggestion [agent]({{site.url}}{{site.baseurl}}/ml-commons-plugin/agents-tools/index/#agents). To create an agent, send a `POST /_plugins/_flow_framework/workflow?provision=true` 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).
4040

4141
For sample agent templates, see [Flow Framework sample templates](https://github.com/opensearch-project/flow-framework/tree/2.x/sample-templates). Note the agent ID; you'll use it in the following step.
4242

@@ -55,6 +55,9 @@ POST /.plugins-ml-config/_doc/os_suggest_ad
5555
```
5656
{% include copy-curl.html %}
5757

58+
This example demonstrates a system index. In security-enabled domains, only superadmins have permissions to execute this code. For information about making superadmin calls, see [System indexes]({{site.url}}{{site.baseurl}}/security/configuration/system-indices/). For access permissions, contact your system administrator.
59+
{: .warning}
60+
5861
### Step 4: Test the agent
5962

6063
You can verify that the agent was created successfully by calling the agent with an example payload:

_dashboards/dashboards-assistant/text-to-visualization.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ POST /.plugins-ml-config/_doc/os_text2vega_with_instructions
209209
```
210210
{% include copy-curl.html %}
211211

212+
This example demonstrates a system index. In security-enabled domains, only superadmins have permissions to execute this code. For information about making superadmin calls, see [System indexes]({{site.url}}{{site.baseurl}}/security/configuration/system-indices/). For access permissions, contact your system administrator.
213+
{: .warning}
214+
212215
### Step 4: Test the agent
213216

214217
You can verify that the agent was created successfully by calling the agent with an example payload:

0 commit comments

Comments
 (0)