mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -04:00
1 commit
Author | SHA1 | Message | Date | |
---|---|---|---|---|
|
37518851ec
|
[8.19] [Inference] Run EIS locally (#215475) (#218909)
# Backport This will backport the following commits from `main` to `8.19`: - [[Inference] Run EIS locally (#215475)](https://github.com/elastic/kibana/pull/215475) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Dario Gieselaar","email":"dario.gieselaar@elastic.co"},"sourceCommit":{"committedDate":"2025-04-23T06:08:33Z","message":"[Inference] Run EIS locally (#215475)\n\n1. Make sure you're connected to [Infra\nVault](https://docs.elastic.dev/vault/infra-vault/home) using oidc:\n`$ VAULT_ADDR={...} vault login -method oidc`\n\n2. Run the `eis` script:\n`$ node scripts/eis.js`\n\n2a. After it's started, run ES with:\n`$ yarn es snapshot --license trial -E\nxpack.inference.elastic.url=http://localhost:8443`\n2b. The command will output credentials for a preconfigured EIS\nconnector. Paste it into kibana(.dev).yml.\n\n3. Start Kibana as usual. \n\n4. Run:\n`yarn run ts-node --transpile-only\nx-pack/solutions/observability/packages/kbn-genai-cli/recipes/hello_world.ts`\n\nThis should output:\n\n```\n ~/dev/kibana eis-connector-cli *219 yarn run ts-node --transpile-only x-pack/solutions/observability/packages/kbn-genai-cli/recipes/hello_world.ts\nyarn run v1.22.22\n$ /Users/dariogieselaar/dev/kibana/node_modules/.bin/ts-node --transpile-only x-pack/solutions/observability/packages/kbn-genai-cli/recipes/hello_world.ts \n info Discovered kibana running at: http://elastic:changeme@127.0.0.1:5601/kbn\n info {\n id: 'extract_personal_details',\n content: '',\n output: { name: 'Sarah', age: 29, city: 'San Francisco' }\n }\n✨ Done in 5.47s.\n```\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Dima Arnautov <arnautov.dima@gmail.com>\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"dd7ed50d9b55240fc84cf7b6768a90e0b5d25c36","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Obs AI Assistant","ci:project-deploy-observability","backport:version","v9.1.0","v8.19.0"],"title":"[Inference] Run EIS locally","number":215475,"url":"https://github.com/elastic/kibana/pull/215475","mergeCommit":{"message":"[Inference] Run EIS locally (#215475)\n\n1. Make sure you're connected to [Infra\nVault](https://docs.elastic.dev/vault/infra-vault/home) using oidc:\n`$ VAULT_ADDR={...} vault login -method oidc`\n\n2. Run the `eis` script:\n`$ node scripts/eis.js`\n\n2a. After it's started, run ES with:\n`$ yarn es snapshot --license trial -E\nxpack.inference.elastic.url=http://localhost:8443`\n2b. The command will output credentials for a preconfigured EIS\nconnector. Paste it into kibana(.dev).yml.\n\n3. Start Kibana as usual. \n\n4. Run:\n`yarn run ts-node --transpile-only\nx-pack/solutions/observability/packages/kbn-genai-cli/recipes/hello_world.ts`\n\nThis should output:\n\n```\n ~/dev/kibana eis-connector-cli *219 yarn run ts-node --transpile-only x-pack/solutions/observability/packages/kbn-genai-cli/recipes/hello_world.ts\nyarn run v1.22.22\n$ /Users/dariogieselaar/dev/kibana/node_modules/.bin/ts-node --transpile-only x-pack/solutions/observability/packages/kbn-genai-cli/recipes/hello_world.ts \n info Discovered kibana running at: http://elastic:changeme@127.0.0.1:5601/kbn\n info {\n id: 'extract_personal_details',\n content: '',\n output: { name: 'Sarah', age: 29, city: 'San Francisco' }\n }\n✨ Done in 5.47s.\n```\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Dima Arnautov <arnautov.dima@gmail.com>\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"dd7ed50d9b55240fc84cf7b6768a90e0b5d25c36"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/215475","number":215475,"mergeCommit":{"message":"[Inference] Run EIS locally (#215475)\n\n1. Make sure you're connected to [Infra\nVault](https://docs.elastic.dev/vault/infra-vault/home) using oidc:\n`$ VAULT_ADDR={...} vault login -method oidc`\n\n2. Run the `eis` script:\n`$ node scripts/eis.js`\n\n2a. After it's started, run ES with:\n`$ yarn es snapshot --license trial -E\nxpack.inference.elastic.url=http://localhost:8443`\n2b. The command will output credentials for a preconfigured EIS\nconnector. Paste it into kibana(.dev).yml.\n\n3. Start Kibana as usual. \n\n4. Run:\n`yarn run ts-node --transpile-only\nx-pack/solutions/observability/packages/kbn-genai-cli/recipes/hello_world.ts`\n\nThis should output:\n\n```\n ~/dev/kibana eis-connector-cli *219 yarn run ts-node --transpile-only x-pack/solutions/observability/packages/kbn-genai-cli/recipes/hello_world.ts\nyarn run v1.22.22\n$ /Users/dariogieselaar/dev/kibana/node_modules/.bin/ts-node --transpile-only x-pack/solutions/observability/packages/kbn-genai-cli/recipes/hello_world.ts \n info Discovered kibana running at: http://elastic:changeme@127.0.0.1:5601/kbn\n info {\n id: 'extract_personal_details',\n content: '',\n output: { name: 'Sarah', age: 29, city: 'San Francisco' }\n }\n✨ Done in 5.47s.\n```\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Dima Arnautov <arnautov.dima@gmail.com>\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"dd7ed50d9b55240fc84cf7b6768a90e0b5d25c36"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |