Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…5078) # Backport This will backport the following commits from `main` to `8.x`: - [[inference] Add support for inference connectors (#204541)](#204541) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Pierre Gayvallet","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-23T09:20:42Z","message":"[inference] Add support for inference connectors (#204541)\n\n## Summary\r\n\r\n~Depends on~ #200249 merged!\r\n\r\nFix https://github.com/elastic/kibana/issues/199082\r\n\r\n- Add support for the `inference` stack connectors to the `inference`\r\nplugin (everything is inference)\r\n- Adapt the o11y assistant to use the `inference-common` utilities for\r\nconnector filtering / compat checking\r\n\r\n## How to test\r\n\r\n**1. Starts ES with the unified completion feature flag**\r\n\r\n```sh\r\nyarn es snapshot --license trial ES_JAVA_OPTS=\"-Des.inference_unified_feature_flag_enabled=true\"\r\n```\r\n\r\n**2. Enable the inference connector for Kibana**\r\n\r\nIn the Kibana config file:\r\n```yaml\r\nxpack.stack_connectors.enableExperimental: ['inferenceConnectorOn']\r\n```\r\n\r\n**3. Start Dev Kibana**\r\n\r\n```sh\r\nnode scripts/kibana --dev --no-base-path\r\n```\r\n\r\n**4. Create an inference connector**\r\n\r\nGo to\r\n`http://localhost:5601/app/management/insightsAndAlerting/triggersActionsConnectors/connectors`,\r\ncreate an inference connector\r\n\r\n- Type: `AI connector`\r\n\r\nthen\r\n\r\n- Service: `OpenAI`\r\n- API Key: Gwzk... Kidding, please ping someone\r\n- Model ID: `gpt-4o`\r\n- Task type: `completion`\r\n\r\n-> save\r\n\r\n**5. test the o11y assistant**\r\n\r\nUse the assistant as you would do for any other connector (just make\r\nsure the inference connector is selected as the one being used) and do\r\nyour testing.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"3dcae5144034a146068566e920ade2e57d9abd08","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:Obs AI Assistant","backport:version","Team:AI Infra","v8.18.0"],"title":"[inference] Add support for inference connectors","number":204541,"url":"https://github.com/elastic/kibana/pull/204541","mergeCommit":{"message":"[inference] Add support for inference connectors (#204541)\n\n## Summary\r\n\r\n~Depends on~ #200249 merged!\r\n\r\nFix https://github.com/elastic/kibana/issues/199082\r\n\r\n- Add support for the `inference` stack connectors to the `inference`\r\nplugin (everything is inference)\r\n- Adapt the o11y assistant to use the `inference-common` utilities for\r\nconnector filtering / compat checking\r\n\r\n## How to test\r\n\r\n**1. Starts ES with the unified completion feature flag**\r\n\r\n```sh\r\nyarn es snapshot --license trial ES_JAVA_OPTS=\"-Des.inference_unified_feature_flag_enabled=true\"\r\n```\r\n\r\n**2. Enable the inference connector for Kibana**\r\n\r\nIn the Kibana config file:\r\n```yaml\r\nxpack.stack_connectors.enableExperimental: ['inferenceConnectorOn']\r\n```\r\n\r\n**3. Start Dev Kibana**\r\n\r\n```sh\r\nnode scripts/kibana --dev --no-base-path\r\n```\r\n\r\n**4. Create an inference connector**\r\n\r\nGo to\r\n`http://localhost:5601/app/management/insightsAndAlerting/triggersActionsConnectors/connectors`,\r\ncreate an inference connector\r\n\r\n- Type: `AI connector`\r\n\r\nthen\r\n\r\n- Service: `OpenAI`\r\n- API Key: Gwzk... Kidding, please ping someone\r\n- Model ID: `gpt-4o`\r\n- Task type: `completion`\r\n\r\n-> save\r\n\r\n**5. test the o11y assistant**\r\n\r\nUse the assistant as you would do for any other connector (just make\r\nsure the inference connector is selected as the one being used) and do\r\nyour testing.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"3dcae5144034a146068566e920ade2e57d9abd08"}},"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/204541","number":204541,"mergeCommit":{"message":"[inference] Add support for inference connectors (#204541)\n\n## Summary\r\n\r\n~Depends on~ #200249 merged!\r\n\r\nFix https://github.com/elastic/kibana/issues/199082\r\n\r\n- Add support for the `inference` stack connectors to the `inference`\r\nplugin (everything is inference)\r\n- Adapt the o11y assistant to use the `inference-common` utilities for\r\nconnector filtering / compat checking\r\n\r\n## How to test\r\n\r\n**1. Starts ES with the unified completion feature flag**\r\n\r\n```sh\r\nyarn es snapshot --license trial ES_JAVA_OPTS=\"-Des.inference_unified_feature_flag_enabled=true\"\r\n```\r\n\r\n**2. Enable the inference connector for Kibana**\r\n\r\nIn the Kibana config file:\r\n```yaml\r\nxpack.stack_connectors.enableExperimental: ['inferenceConnectorOn']\r\n```\r\n\r\n**3. Start Dev Kibana**\r\n\r\n```sh\r\nnode scripts/kibana --dev --no-base-path\r\n```\r\n\r\n**4. Create an inference connector**\r\n\r\nGo to\r\n`http://localhost:5601/app/management/insightsAndAlerting/triggersActionsConnectors/connectors`,\r\ncreate an inference connector\r\n\r\n- Type: `AI connector`\r\n\r\nthen\r\n\r\n- Service: `OpenAI`\r\n- API Key: Gwzk... Kidding, please ping someone\r\n- Model ID: `gpt-4o`\r\n- Task type: `completion`\r\n\r\n-> save\r\n\r\n**5. test the o11y assistant**\r\n\r\nUse the assistant as you would do for any other connector (just make\r\nsure the inference connector is selected as the one being used) and do\r\nyour testing.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"3dcae5144034a146068566e920ade2e57d9abd08"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: Pierre Gayvallet <[email protected]>
- Loading branch information