Skip to content

Commit be80e8c

Browse files
committed
move example
1 parent 0e229be commit be80e8c

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

solutions/observability/observability-ai-assistant.md

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ For air-gapped environments, installing product documentation requires special c
422422
```{applies_to}
423423
serverless: preview
424424
stack: preview 9.1
425+
```
425426

426427
Anonymization masks personally identifiable or otherwise sensitive information before chat messages leave Kibana for a third-party LLM.
427428
Enabled rules substitute deterministic tokens (for example `EMAIL_ee4587…`) so the model can keep context without ever seeing the real value.
@@ -437,22 +438,6 @@ When an anonymization rule is enabled in the [AI Assistant settings](#obs-ai-set
437438
2. The fully masked conversation is sent to the LLM.
438439
3. After the LLM responds, the original values are restored so the user sees deanonymized text and any persisted conversation history stores the original content. Deanonymization information is stored with the conversation messages to enable the UI to highlight anonymized content.
439440

440-
The following example shows the anonymized content highlighted in the chat window using a `RegExp` rule to mask GKE hostnames:
441-
442-
```jsonc
443-
{
444-
"entityClass": "GKE_HOST",
445-
"type": "RegExp",
446-
"pattern": "(gke-[a-zA-Z0-9-]+-[a-f0-9]{8}-[a-zA-Z0-9]+)",
447-
"enabled": true
448-
}
449-
```
450-
451-
:::{image} /solutions/images/observability-obs-ai-assistant-anonymization.png
452-
:alt: AI Assistant chat showing hostname anonymization in action
453-
:screenshot:
454-
:::
455-
456441
### Rule types [obs-ai-anonymization-rules]
457442

458443

@@ -480,6 +465,24 @@ The following example shows the anonymized content highlighted in the chat windo
480465

481466
Rules are evaluated top-to-bottom with `RegExp` rules processed first, then `NER` rules; the first rule that captures a given entity wins. Rules can be configured in the [AI Assistant Settings](#obs-ai-settings) page.
482467

468+
### Example
469+
470+
The following example shows the anonymized content highlighted in the chat window using a `RegExp` rule to mask GKE hostnames:
471+
472+
```jsonc
473+
{
474+
"entityClass": "GKE_HOST",
475+
"type": "RegExp",
476+
"pattern": "(gke-[a-zA-Z0-9-]+-[a-f0-9]{8}-[a-zA-Z0-9]+)",
477+
"enabled": true
478+
}
479+
```
480+
481+
:::{image} /solutions/images/observability-obs-ai-assistant-anonymization.png
482+
:alt: AI Assistant chat showing hostname anonymization in action
483+
:screenshot:
484+
:::
485+
483486
### Requirements [obs-ai-anonymization-requirements]
484487
Anonymization requires the following:
485488

0 commit comments

Comments
 (0)