You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: solutions/observability/observability-ai-assistant.md
+24-4Lines changed: 24 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,12 @@ The AI Assistant connects to one of these supported LLM providers:
102
102
103
103
## Add data to the AI Assistant knowledge base [obs-ai-add-data]
104
104
105
-
The AI Assistant uses [ELSER](/explore-analyze/machine-learning/nlp/ml-nlp-elser.md), Elastic’s semantic search engine, to recall data from its internal knowledge base index to create retrieval augmented generation (RAG) responses. Adding data such as Runbooks, GitHub issues, internal documentation, and Slack messages to the knowledge base gives the AI Assistant context to provide more specific assistance.
105
+
The AI Assistant uses one of the following text embedding models to run semantic search against the internal knowledge base index. The top results are passed to the LLM as context (retrieval‑augmented generation), producing more accurate and grounded responses:
106
+
107
+
*[ELSER](/explore-analyze/machine-learning/nlp/ml-nlp-elser.md): Recommended for English-only use cases.
108
+
*[E5](/explore-analyze/machine-learning/nlp/ml-nlp-e5.md): {applies_to}`stack: ga 9.1` Recommended for non-English use cases.
109
+
110
+
Adding data such as Runbooks, GitHub issues, internal documentation, and Slack messages to the knowledge base gives the AI Assistant context to provide more specific assistance.
106
111
107
112
Add data to the knowledge base with one or more of the following methods:
108
113
@@ -167,8 +172,8 @@ Field names in custom indices have no specific requirements. Any `semantic_text`
167
172
- Create a connector using the [Connector APIs](https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-connector)
168
173
169
174
2. **Create embeddings** (choose one method):
170
-
- [`semantic_text` field](#obs-ai-search-connectors-semantic-text): Recommended workflow which handles model setup automatically
171
-
- [ML pipeline](#obs-ai-search-connectors-ml-embeddings): Requires manual setup of the ELSER model and inference pipeline
175
+
- [`semantic_text` field](#obs-ai-search-connectors-semantic-text): Recommended workflow which handles model setup automatically. Allows the use of any available ML model (Elser, e5, or custom models).
176
+
- [ML pipeline](#obs-ai-search-connectors-ml-embeddings): Requires manual setup of the ELSER model and inference pipeline.
172
177
173
178
#### Option 1: Use a `semantic_text` field type to create embeddings (recommended) [obs-ai-search-connectors-semantic-text]
174
179
@@ -210,7 +215,7 @@ After creating the pipeline, complete the following steps:
210
215
211
216
Ask something to the AI Assistant related with the indexed data.
212
217
213
-
### Add user-specific system prompts
218
+
### Add user-specific system prompts [obs-ai-assistant-user-prompt]
214
219
215
220
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.
216
221
@@ -235,6 +240,21 @@ If asked about a Kubernetes pod, namespace, cluster, location, or owner, return
235
240
</kubernetes_info>
236
241
```
237
242
243
+
### Choose the Knowledge Base language model
244
+
```{applies_to}
245
+
stack: ga 9.1
246
+
```
247
+
Choose the default language model for the AI Assistant in the AI Assistant settings under **Set text embeddings model**.
248
+
249
+
*[ELSER](/explore-analyze/machine-learning/nlp/ml-nlp-elser.md): recommended for English-only use cases.
250
+
*[E5](/explore-analyze/machine-learning/nlp/ml-nlp-e5.md): supports multilingual use cases.
251
+
252
+
Select the language model and click **Update**.
253
+
254
+
When switching models, all existing Knowledge Base entries must be reindexed. Entries will be unavailable until reindexing is complete.
255
+
256
+
To have the AI Assistant respond in a language other than English, set a [user specific prompt](#obs-ai-assistant-user-prompt).
257
+
238
258
## Interact with the AI Assistant [obs-ai-interact]
0 commit comments