-
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
[AI Assistant] Add scopes to AI assistant #192611
Conversation
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
x-pack/plugins/aiops/public/components/log_rate_analysis/log_rate_analysis_page.tsx
Outdated
Show resolved
Hide resolved
...gins/observability_solution/observability_ai_assistant/public/service/create_chat_service.ts
Show resolved
Hide resolved
x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/lens.ts
Show resolved
Hide resolved
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.
logs-shared changes LGTM
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.
ML related changes LGTM.
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
History
To update your PR or re-run it, just comment with: |
## Summary This adds scopes to the Observability AI Assistant framework so we can start consuming it in different places with different instructions and functions available. Instructions and functions become responsible for registering which 'scope' they apply to, and the assistant should be called with a scope when chatting so that it can decide which functions are available and which registered instructions to send to the LLM. (cherry picked from commit a65e904)
💚 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.x`: - [[AI Assistant] Add scopes to AI assistant (#192611)](#192611) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Sander Philipse","email":"94373878+sphilipse@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-09-18T13:49:09Z","message":"[AI Assistant] Add scopes to AI assistant (#192611)\n\n## Summary\r\n\r\nThis adds scopes to the Observability AI Assistant framework so we can\r\nstart consuming it in different places with different instructions and\r\nfunctions available.\r\n\r\nInstructions and functions become responsible for registering which\r\n'scope' they apply to, and the assistant should be called with a scope\r\nwhen chatting so that it can decide which functions are available and\r\nwhich registered instructions to send to the LLM.","sha":"a65e904ab4bfa5baad98d2c094c7dc08ad0917b6","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Search","Team:Obs AI Assistant","ci:project-deploy-observability","Team:obs-ux-infra_services","Team:obs-ux-management","apm:review","v8.16.0"],"title":"[AI Assistant] Add scopes to AI assistant","number":192611,"url":"https://github.com/elastic/kibana/pull/192611","mergeCommit":{"message":"[AI Assistant] Add scopes to AI assistant (#192611)\n\n## Summary\r\n\r\nThis adds scopes to the Observability AI Assistant framework so we can\r\nstart consuming it in different places with different instructions and\r\nfunctions available.\r\n\r\nInstructions and functions become responsible for registering which\r\n'scope' they apply to, and the assistant should be called with a scope\r\nwhen chatting so that it can decide which functions are available and\r\nwhich registered instructions to send to the LLM.","sha":"a65e904ab4bfa5baad98d2c094c7dc08ad0917b6"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192611","number":192611,"mergeCommit":{"message":"[AI Assistant] Add scopes to AI assistant (#192611)\n\n## Summary\r\n\r\nThis adds scopes to the Observability AI Assistant framework so we can\r\nstart consuming it in different places with different instructions and\r\nfunctions available.\r\n\r\nInstructions and functions become responsible for registering which\r\n'scope' they apply to, and the assistant should be called with a scope\r\nwhen chatting so that it can decide which functions are available and\r\nwhich registered instructions to send to the LLM.","sha":"a65e904ab4bfa5baad98d2c094c7dc08ad0917b6"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Sander Philipse <94373878+sphilipse@users.noreply.github.com>
Summary
This adds scopes to the Observability AI Assistant framework so we can start consuming it in different places with different instructions and functions available.
Instructions and functions become responsible for registering which 'scope' they apply to, and the assistant should be called with a scope when chatting so that it can decide which functions are available and which registered instructions to send to the LLM.