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

[Obs AI Assistant] Update README.md #180786

Merged
merged 5 commits into from
Apr 25, 2024

Conversation

dgieselaar
Copy link
Member

@dgieselaar dgieselaar commented Apr 15, 2024

Updates the README file w/ the new screen context API.

@dgieselaar dgieselaar added release_note:skip Skip the PR/issue when compiling release notes v8.14.0 labels Apr 15, 2024
@dgieselaar dgieselaar requested a review from a team as a code owner April 15, 2024 10:38
@botelastic botelastic bot added the Team:Obs AI Assistant Observability AI Assistant label Apr 15, 2024
@apmmachine
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.
  • /oblt-deploy-serverless : Deploy a serverless Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)


#### **2.1** Functions

Functions are the heartbeat of the Assistant. It allows the LLM to pull data from the Platform, rather than us just pushing it.
Copy link
Member

@sorenlouv sorenlouv Apr 15, 2024

Choose a reason for hiding this comment

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

I think it's worth pointing out that functions should be used in open-ended scenarios where they don't know what data the user needs. Functions shouldn't be used if the developer knows what data they want fetched. In that case they should fetch it explicitly and add it to the conversation

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

import { createScreenContext } from '@kbn/observability-ai-assistant-plugin/public';
useEffect(() => {
return observabilityAIAssistant?.service.setScreenContext({
actions: createScreenContextAction(
Copy link
Member

Choose a reason for hiding this comment

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

From this example it's not clear to me what createScreenContextAction does or how the action is invoked. An example where myProperty was actually used and made sense would help

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah I forgot to finish the createScreenContext explanation above. will add!

}, [observabilityAIAssistant?.service, moveToUrl]);
```

`navigate` is a utility function that waits until the network is silent for at least a second, and then sends the screen context from the new page back to the Assistant. `createScreenContext` is a utility
Copy link
Member

@sorenlouv sorenlouv Apr 15, 2024

Choose a reason for hiding this comment

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

Is that a made up example or does navigate actually exist?

Copy link
Member Author

Choose a reason for hiding this comment

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

Huh 😄 I think I only implemented this in a POC. I'll remove this part and re-add it if I ever find the code again 😭

@dgieselaar dgieselaar self-assigned this Apr 17, 2024
@dgieselaar dgieselaar merged commit dd15fba into elastic:main Apr 25, 2024
6 checks passed
@dgieselaar dgieselaar deleted the obs-ai-assistant-readme-update branch April 25, 2024 11:42
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Apr 25, 2024
Updates the README file w/ the new screen context API.

---------

Co-authored-by: Søren Louv-Jansen <[email protected]>
(cherry picked from commit dd15fba)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.14

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 Apr 25, 2024
# Backport

This will backport the following commits from `main` to `8.14`:
- [[Obs AI Assistant] Update README.md
(#180786)](#180786)

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

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

<!--BACKPORT [{"author":{"name":"Dario
Gieselaar","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-04-25T11:42:52Z","message":"[Obs
AI Assistant] Update README.md (#180786)\n\nUpdates the README file w/
the new screen context API.\r\n\r\n---------\r\n\r\nCo-authored-by:
Søren Louv-Jansen
<[email protected]>","sha":"dd15fba4e3d86ae2683b7cbc1a7720ba562f5f73","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Obs
AI Assistant","v8.14.0","v8.15.0"],"title":"[Obs AI Assistant] Update
README.md","number":180786,"url":"https://github.com/elastic/kibana/pull/180786","mergeCommit":{"message":"[Obs
AI Assistant] Update README.md (#180786)\n\nUpdates the README file w/
the new screen context API.\r\n\r\n---------\r\n\r\nCo-authored-by:
Søren Louv-Jansen
<[email protected]>","sha":"dd15fba4e3d86ae2683b7cbc1a7720ba562f5f73"}},"sourceBranch":"main","suggestedTargetBranches":["8.14"],"targetPullRequestStates":[{"branch":"8.14","label":"v8.14.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/180786","number":180786,"mergeCommit":{"message":"[Obs
AI Assistant] Update README.md (#180786)\n\nUpdates the README file w/
the new screen context API.\r\n\r\n---------\r\n\r\nCo-authored-by:
Søren Louv-Jansen
<[email protected]>","sha":"dd15fba4e3d86ae2683b7cbc1a7720ba562f5f73"}}]}]
BACKPORT-->

Co-authored-by: Dario Gieselaar <[email protected]>
kpatticha pushed a commit to kpatticha/kibana that referenced this pull request Apr 26, 2024
Updates the README file w/ the new screen context API.

---------

Co-authored-by: Søren Louv-Jansen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Obs AI Assistant Observability AI Assistant v8.14.0 v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants