Skip to content

[9.0] [Obs AI Assistant] Add Elastic Managed LLM tour callout (#220782)#223283

Merged
viduni94 merged 6 commits intoelastic:9.0from
viduni94:backport/9.0/pr-220782
Jun 11, 2025
Merged

[9.0] [Obs AI Assistant] Add Elastic Managed LLM tour callout (#220782)#223283
viduni94 merged 6 commits intoelastic:9.0from
viduni94:backport/9.0/pr-220782

Conversation

@viduni94
Copy link
Contributor

Backport

This will backport the following commits from main to 9.0:

Questions ?

Please refer to the Backport tool documentation

Closes elastic/obs-ai-team#253
Closes elastic/obs-ai-team#252
Closes elastic/obs-ai-team#250
Closes elastic/obs-ai-team#251

## Summary

1. Added Elastic Managed LLM connector via a tour callout when the
connector is present. This will be included in the AI Assistant flyout,
AI Assistant page and contextual insights.
2. Added a callout in the conversation when the Elastic Managed LLM is
being used
3. Added `Manage Connectors` to contextual insights action menu
4. Added `AI Connector` updates to settings.

## How to enable the Elastic LLM Connector for testing

1. Run command -  `VAULT_ADDR={...} vault login -method oidc`
2. Run command - `node scripts/eis.js` (This will output the config for
the connector which needs to be pasted to `kibana.dev.yml`)
3. Run Elasticsearch - `yarn es snapshot --license trial -E
xpack.inference.elastic.url=http://localhost:8443/`
4. Start Kibana as usual
5. Run `yarn run ts-node --transpile-only
x-pack/solutions/observability/packages/kbn-genai-cli/recipes/hello_world.ts`
to test whether it works correctly.
6. The connector should be visible in the connectors list in Kibana and
in the AI Assistant

## Screenshots

### Flyout

<img width="544" alt="image"
src="https://github.com/user-attachments/assets/e9f454e1-dcfe-4cf5-9929-77282764a8ce"
/>

### Page

<img width="1684" alt="image"
src="https://github.com/user-attachments/assets/aac7c329-9918-4626-9fe9-5682902000fe"
/>

### Contextual insights in APM

<img width="1098" alt="image"
src="https://github.com/user-attachments/assets/9eca3d33-b7ea-4128-a7de-d1b4776d8a8e"
/>

### Callout within the conversation

<img width="674" alt="image"
src="https://github.com/user-attachments/assets/5c0b3933-b253-474e-92a5-d8793ebff819"
/>

<img width="904" alt="image"
src="https://github.com/user-attachments/assets/2ca1ffef-0fcb-4d4f-addf-20c4927b7db0"
/>

### Updates to AI connector title, description and buttons in Settings

<img width="959" alt="image"
src="https://github.com/user-attachments/assets/838d651d-319b-4637-a522-dc80d01bb11e"
/>

### `Manage Connectors` link to contextual insights

![image](https://github.com/user-attachments/assets/16c77fdd-10e4-43f8-ba12-6e147cbeba32)

### Checklist

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit cf4d23a)

# Conflicts:
#	x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/chat_body.tsx
#	x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/chat_header.tsx
#	x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/chat_timeline.tsx
#	x-pack/platform/packages/shared/kbn-ai-assistant/src/knowledge_base/knowledge_base_installation_status_panel.tsx
#	x-pack/platform/packages/shared/kbn-ai-assistant/tsconfig.json
#	x-pack/platform/plugins/private/observability_ai_assistant_management/public/routes/components/settings_tab/settings_tab.test.tsx
#	x-pack/platform/plugins/private/observability_ai_assistant_management/public/routes/components/settings_tab/settings_tab.tsx
#	x-pack/platform/plugins/shared/observability_ai_assistant/tsconfig.json
@viduni94 viduni94 requested a review from kibanamachine as a code owner June 10, 2025 19:11
@viduni94 viduni94 added the backport This PR is a backport of another PR label Jun 10, 2025
@viduni94 viduni94 enabled auto-merge (squash) June 10, 2025 19:11
@botelastic botelastic bot added the Team:Obs AI Assistant Observability AI Assistant label Jun 10, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant)

@elasticmachine
Copy link
Contributor

elasticmachine commented Jun 10, 2025

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #3 / SettingsTab should offer a way to configure Gen AI connectors
  • [job] [logs] Jest Tests #3 / SettingsTab should offer a way to configure Gen AI connectors
  • [job] [logs] Jest Tests #3 / SettingsTab should offer a way to configure Observability AI Assistant visibility in apps
  • [job] [logs] Jest Tests #3 / SettingsTab should offer a way to configure Observability AI Assistant visibility in apps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
observabilityAIAssistant 103 108 +5
observabilityAIAssistantApp 503 505 +2
observabilityAiAssistantManagement 381 383 +2
searchAssistant 251 253 +2
total +11

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
observabilityAIAssistant 382 401 +19

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
aiAssistantManagementSelection 122.3KB 122.4KB +120.0B
lists 190.8KB 190.9KB +120.0B
logsShared 201.9KB 202.0KB +25.0B
observabilityAIAssistant 19.7KB 20.2KB +517.0B
observabilityAIAssistantApp 264.8KB 267.0KB +2.2KB
observabilityAiAssistantManagement 126.2KB 127.6KB +1.4KB
searchAssistant 146.3KB 148.5KB +2.2KB
total +6.6KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
core 449.4KB 449.5KB +120.0B
observabilityAIAssistant 37.9KB 41.6KB +3.6KB
observabilityAIAssistantApp 15.4KB 15.4KB -2.0B
searchAssistant 5.4KB 5.4KB +1.0B
total +3.7KB
Unknown metric groups

API count

id before after diff
observabilityAIAssistant 384 403 +19

History

@viduni94
Copy link
Contributor Author

viduni94 commented Jun 11, 2025

image

image

image

image

image

@viduni94 viduni94 merged commit 70c5081 into elastic:9.0 Jun 11, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR Team:Obs AI Assistant Observability AI Assistant

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants