Skip to content

Commit 761d2b1

Browse files
mdbirnstiehlbmorelli25sorenlouvflorent-leborgne
authored
[Observability Docs] add user-specific prompts docs (#1705)
This PR closes [Issue 4815](https://github.com/elastic/observability-docs/issues/4815) and adds instructions on adding user-specific prompts that apply to all subsequent responses. --------- Co-authored-by: Brandon Morelli <[email protected]> Co-authored-by: Søren Louv-Jansen <[email protected]> Co-authored-by: florent-leborgne <[email protected]>
1 parent 4449ab5 commit 761d2b1

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

solutions/observability/observability-ai-assistant.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,30 @@ After creating the pipeline, complete the following steps:
192192

193193
Ask something to the AI Assistant related with the indexed data.
194194

195+
### Add user-specific system prompts
196+
197+
User-specific prompts customize how the AI assistant responds by appending personalized instructions to built-in system prompts. For example, you could specify "Always respond in French," and all subsequent responses will be in French.
198+
199+
A user-specific prompt only applies to the user that sets it.
200+
201+
To edit the **User-specific System Prompt**:
202+
203+
1. Go to the **{{obs-ai-assistant}}** management page. You can find it in the **Management** menu or by using the [global search field](/explore-analyze/find-and-organize/find-apps-and-objects.md).
204+
3. Switch to the **Knowledge base** tab.
205+
4. Select **Edit User-specific Prompt**.
206+
207+
#### User-specific prompt example
208+
User-specific prompts are useful when configuring specific workflows. For example, if you want the assistant to respond in a consistent, readable format when asked about Kubernetes metadata, you might add the following **user-specific system prompt**:
209+
210+
```
211+
<kubernetes_info>
212+
If asked about a Kubernetes pod, namespace, cluster, location, or owner, return the info in this format. Use the field names to find the relevant information requested. Don't mention the field names, just the results.
213+
- Pod: agent.name
214+
- Namespace: data_stream.namespace
215+
- Cluster Name: orchestrator.cluster.name
216+
- Owner: cloud.account.id
217+
</kubernetes_info>
218+
```
195219
196220
## Interact with the AI Assistant [obs-ai-interact]
197221

0 commit comments

Comments
 (0)