Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[One Discover] Add AIAssistant prompts to logs overview detail #204339

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

tonyghiani
Copy link
Contributor

@tonyghiani tonyghiani commented Dec 16, 2024

📓 Summary

Closes #202191

This work brings into the O11y solution contextual experience in Discover the Logs AI Assistant prompts already adopted in LogStream and Logs Explorer, which are now set for deprecation in favour of the unique OneDiscover experience.

The AIAssistant is consumed by the discover-shared features registry, which registers the features from the logs-shared plugin. Once the codebase for LogStream and Logs Explorer that consume this component is removed, it might make sense to do some clean-up and move the LogsAIAssistant component implementation among the other contextual components (log summary columns, etc...).

Screen.Recording.2024-12-16.at.09.02.45.mov

@tonyghiani tonyghiani added release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Team:obs-ux-logs Observability Logs User Experience Team Project:OneDiscover Enrich Discover with contextual awareness labels Dec 16, 2024
@tonyghiani tonyghiani marked this pull request as ready for review December 16, 2024 10:37
@tonyghiani tonyghiani requested review from a team as code owners December 16, 2024 10:37
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs)

Copy link
Contributor

@jughosta jughosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 Nice to have the Observability AI assistant in Discover too!

Do you know if we can improve "How do I find similar log messages?" suggestions when in ES|QL mode? Current ones have KQL or _search mentions. Would be great to have it with ES|QL examples.

Screenshot 2024-12-16 at 13 32 39 Screenshot 2024-12-16 at 13 34 00

@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Dec 16, 2024
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@tonyghiani
Copy link
Contributor Author

Do you know if we can improve "How do I find similar log messages?" suggestions when in ES|QL mode? Current ones have KQL or _search mentions. Would be great to have it with ES|QL examples.

Good point @jughosta, currently the prompt only asks for a KQL query while it makes sense that we can get a difference based on the mode. I did a quick attempt changing the prompt, but it seems it doesn't get very well the output, since it typically returns a DSL query.

Screenshot 2024-12-16 at 14 50 18

This is probably a matter of tuning the prompting in a way that it has the knowledge it needs about ES|QL, I'd rather leave this enhancement out of the scope of this issue, but I added a note in #186460 about enhancing this prompts UX also to consider this aspect.

Copy link
Contributor

@yngrdyn yngrdyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🤖

@elasticmachine
Copy link
Contributor

elasticmachine commented Dec 19, 2024

💚 Build Succeeded

  • Buildkite Build
  • Commit: d495fdf
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-204339-d495fdf8bf8d

Metrics [docs]

Async chunks

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

id before after diff
discover 786.7KB 786.9KB +138.0B
logsShared 291.0KB 291.1KB +123.0B
total +261.0B

History

@tonyghiani tonyghiani merged commit 8b3281d into elastic:main Dec 19, 2024
8 checks passed
@tonyghiani tonyghiani deleted the 202191-o11y-ai-assistant-discover branch December 19, 2024 10:37
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12411002825

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 19, 2024
…ic#204339)

## 📓 Summary

Closes elastic#202191

This work brings into the O11y solution contextual experience in
Discover the Logs AI Assistant prompts already adopted in LogStream and
Logs Explorer, which are now set for deprecation in favour of the unique
OneDiscover experience.

The AIAssistant is consumed by the `discover-shared` features registry,
which registers the features from the logs-shared plugin. Once the
codebase for LogStream and Logs Explorer that consume this component is
removed, it might make sense to do some clean-up and move the
LogsAIAssistant component implementation among the other contextual
components (log summary columns, etc...).

https://github.com/user-attachments/assets/f97d5a01-3896-4a86-9a3c-443151a9d04e

Co-authored-by: Marco Antonio Ghiani <[email protected]>
(cherry picked from commit 8b3281d)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Dec 19, 2024
…204339) (#204910)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[One Discover] Add AIAssistant prompts to logs overview detail
(#204339)](#204339)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Marco Antonio
Ghiani","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-19T10:37:08Z","message":"[One
Discover] Add AIAssistant prompts to logs overview detail
(#204339)\n\n## 📓 Summary\r\n\r\nCloses #202191 \r\n\r\nThis work brings
into the O11y solution contextual experience in\r\nDiscover the Logs AI
Assistant prompts already adopted in LogStream and\r\nLogs Explorer,
which are now set for deprecation in favour of the unique\r\nOneDiscover
experience.\r\n\r\nThe AIAssistant is consumed by the `discover-shared`
features registry,\r\nwhich registers the features from the logs-shared
plugin. Once the\r\ncodebase for LogStream and Logs Explorer that
consume this component is\r\nremoved, it might make sense to do some
clean-up and move the\r\nLogsAIAssistant component implementation among
the other contextual\r\ncomponents (log summary columns,
etc...).\r\n\r\n\r\nhttps://github.com/user-attachments/assets/f97d5a01-3896-4a86-9a3c-443151a9d04e\r\n\r\nCo-authored-by:
Marco Antonio Ghiani
<[email protected]>","sha":"8b3281d4843efff3be4d291453c1aa6a61cd75fc","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:DataDiscovery","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-logs","Project:OneDiscover"],"title":"[One
Discover] Add AIAssistant prompts to logs overview
detail","number":204339,"url":"https://github.com/elastic/kibana/pull/204339","mergeCommit":{"message":"[One
Discover] Add AIAssistant prompts to logs overview detail
(#204339)\n\n## 📓 Summary\r\n\r\nCloses #202191 \r\n\r\nThis work brings
into the O11y solution contextual experience in\r\nDiscover the Logs AI
Assistant prompts already adopted in LogStream and\r\nLogs Explorer,
which are now set for deprecation in favour of the unique\r\nOneDiscover
experience.\r\n\r\nThe AIAssistant is consumed by the `discover-shared`
features registry,\r\nwhich registers the features from the logs-shared
plugin. Once the\r\ncodebase for LogStream and Logs Explorer that
consume this component is\r\nremoved, it might make sense to do some
clean-up and move the\r\nLogsAIAssistant component implementation among
the other contextual\r\ncomponents (log summary columns,
etc...).\r\n\r\n\r\nhttps://github.com/user-attachments/assets/f97d5a01-3896-4a86-9a3c-443151a9d04e\r\n\r\nCo-authored-by:
Marco Antonio Ghiani
<[email protected]>","sha":"8b3281d4843efff3be4d291453c1aa6a61cd75fc"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204339","number":204339,"mergeCommit":{"message":"[One
Discover] Add AIAssistant prompts to logs overview detail
(#204339)\n\n## 📓 Summary\r\n\r\nCloses #202191 \r\n\r\nThis work brings
into the O11y solution contextual experience in\r\nDiscover the Logs AI
Assistant prompts already adopted in LogStream and\r\nLogs Explorer,
which are now set for deprecation in favour of the unique\r\nOneDiscover
experience.\r\n\r\nThe AIAssistant is consumed by the `discover-shared`
features registry,\r\nwhich registers the features from the logs-shared
plugin. Once the\r\ncodebase for LogStream and Logs Explorer that
consume this component is\r\nremoved, it might make sense to do some
clean-up and move the\r\nLogsAIAssistant component implementation among
the other contextual\r\ncomponents (log summary columns,
etc...).\r\n\r\n\r\nhttps://github.com/user-attachments/assets/f97d5a01-3896-4a86-9a3c-443151a9d04e\r\n\r\nCo-authored-by:
Marco Antonio Ghiani
<[email protected]>","sha":"8b3281d4843efff3be4d291453c1aa6a61cd75fc"}}]}]
BACKPORT-->

---------

Co-authored-by: Marco Antonio Ghiani <[email protected]>
JoseLuisGJ pushed a commit to JoseLuisGJ/kibana that referenced this pull request Dec 19, 2024
…ic#204339)

## 📓 Summary

Closes elastic#202191 

This work brings into the O11y solution contextual experience in
Discover the Logs AI Assistant prompts already adopted in LogStream and
Logs Explorer, which are now set for deprecation in favour of the unique
OneDiscover experience.

The AIAssistant is consumed by the `discover-shared` features registry,
which registers the features from the logs-shared plugin. Once the
codebase for LogStream and Logs Explorer that consume this component is
removed, it might make sense to do some clean-up and move the
LogsAIAssistant component implementation among the other contextual
components (log summary columns, etc...).


https://github.com/user-attachments/assets/f97d5a01-3896-4a86-9a3c-443151a9d04e

Co-authored-by: Marco Antonio Ghiani <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) ci:project-deploy-observability Create an Observability project Project:OneDiscover Enrich Discover with contextual awareness release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. Team:obs-ux-logs Observability Logs User Experience Team v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[One Discover] Enable O11y LogAIAssistant prompts for log detail flyout
5 participants