-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Obs AI Assistant] Update README.md #180786
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
x-pack/plugins/observability_solution/observability_ai_assistant/README.md
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability_solution/observability_ai_assistant/README.md
Show resolved
Hide resolved
x-pack/plugins/observability_solution/observability_ai_assistant/README.md
Outdated
Show resolved
Hide resolved
|
||
#### **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. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 😭
…nt/README.md Co-authored-by: Søren Louv-Jansen <[email protected]>
Updates the README file w/ the new screen context API. --------- Co-authored-by: Søren Louv-Jansen <[email protected]> (cherry picked from commit dd15fba)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# 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]>
Updates the README file w/ the new screen context API. --------- Co-authored-by: Søren Louv-Jansen <[email protected]>
Updates the README file w/ the new screen context API.