Skip to content

[Obs AI Assistant] Minor cleanup api tests#215181

Merged
sorenlouv merged 14 commits intoelastic:mainfrom
sorenlouv:minor-cleanup-api-tests
Mar 20, 2025
Merged

[Obs AI Assistant] Minor cleanup api tests#215181
sorenlouv merged 14 commits intoelastic:mainfrom
sorenlouv:minor-cleanup-api-tests

Conversation

@sorenlouv
Copy link
Member

@sorenlouv sorenlouv commented Mar 19, 2025

  • Remove duplicated helpers
  • improve log messages
  • Clear intercepted requests after every test

@sorenlouv sorenlouv added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Mar 19, 2025
@sorenlouv sorenlouv requested review from a team as code owners March 19, 2025 14:24
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:Obs AI Assistant Observability AI Assistant labels Mar 19, 2025
@github-actions
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.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

sorenlouv and others added 3 commits March 19, 2025 15:59
…create_llm_proxy.ts

Co-authored-by: Viduni Wickramarachchi <viduni.ushanka@gmail.com>
@elasticmachine
Copy link
Contributor

elasticmachine commented Mar 20, 2025

💛 Build succeeded, but was flaky

  • Buildkite Build
  • Commit: 187e1ed
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-215181-187e1edff815

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #79 / Cloud Security Posture Test adding Cloud Security Posture Integrations CNVM CNVM AWS Hyperlink on PostInstallation Modal should have the correct URL

Metrics [docs]

✅ unchanged

History

@sorenlouv sorenlouv merged commit b9cd2c8 into elastic:main Mar 20, 2025
10 checks passed
@sorenlouv sorenlouv deleted the minor-cleanup-api-tests branch March 20, 2025 10:00
clintandrewhall pushed a commit to clintandrewhall/kibana that referenced this pull request Mar 20, 2025
- Remove duplicated helpers
- improve log messages
- Clear intercepted requests after every test

---------

Co-authored-by: Viduni Wickramarachchi <viduni.ushanka@gmail.com>
JoseLuisGJ pushed a commit to JoseLuisGJ/kibana that referenced this pull request Mar 24, 2025
- Remove duplicated helpers
- improve log messages
- Clear intercepted requests after every test

---------

Co-authored-by: Viduni Wickramarachchi <viduni.ushanka@gmail.com>
cqliu1 pushed a commit to cqliu1/kibana that referenced this pull request Mar 31, 2025
- Remove duplicated helpers
- improve log messages
- Clear intercepted requests after every test

---------

Co-authored-by: Viduni Wickramarachchi <viduni.ushanka@gmail.com>
sorenlouv added a commit to sorenlouv/kibana that referenced this pull request May 5, 2025
- Remove duplicated helpers
- improve log messages
- Clear intercepted requests after every test

---------

Co-authored-by: Viduni Wickramarachchi <viduni.ushanka@gmail.com>
(cherry picked from commit b9cd2c8)
@sorenlouv
Copy link
Member Author

💚 All backports created successfully

Status Branch Result
8.19

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

sorenlouv added a commit that referenced this pull request May 5, 2025
… Assistant] Replace Task Manager usage with Lock Manager (#216916) | update knowledge base installation flow (#214133) | [Obs AI Assistant] Specify embedding model during onboarding for the Knowledge Base (#218448) (#220041)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Obs AI Assistant] Minor cleanup api tests
(#215181)](#215181)
- [[Obs AI Assistant] Replace Task Manager usage with Lock Manager
(#216916)](#216916)
- [update knowledge base installation flow
(#214133)](#214133)
- [[Obs AI Assistant] Specify embedding model during onboarding for the
Knowledge Base (#218448)](#218448)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Søren
Louv-Jansen","email":"soren.louv@elastic.co"},"sourceCommit":{"committedDate":"2025-03-20T09:59:59Z","message":"[Obs
AI Assistant] Minor cleanup api tests (#215181)\n\n- Remove duplicated
helpers\n- improve log messages\n- Clear intercepted requests after
every test\n\n---------\n\nCo-authored-by: Viduni Wickramarachchi
<viduni.ushanka@gmail.com>","sha":"b9cd2c80404b0a0eb8ee51257ef01bdc1a71def6","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:skip","Team:Obs
AI Assistant","ci:project-deploy-observability","v9.1.0"],"title":"[Obs
AI Assistant] Minor cleanup api
tests","number":215181,"url":"https://github.com/elastic/kibana/pull/215181","mergeCommit":{"message":"[Obs
AI Assistant] Minor cleanup api tests (#215181)\n\n- Remove duplicated
helpers\n- improve log messages\n- Clear intercepted requests after
every test\n\n---------\n\nCo-authored-by: Viduni Wickramarachchi
<viduni.ushanka@gmail.com>","sha":"b9cd2c80404b0a0eb8ee51257ef01bdc1a71def6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/215181","number":215181,"mergeCommit":{"message":"[Obs
AI Assistant] Minor cleanup api tests (#215181)\n\n- Remove duplicated
helpers\n- improve log messages\n- Clear intercepted requests after
every test\n\n---------\n\nCo-authored-by: Viduni Wickramarachchi
<viduni.ushanka@gmail.com>","sha":"b9cd2c80404b0a0eb8ee51257ef01bdc1a71def6"}}]},{"author":{"name":"Søren
Louv-Jansen","email":"soren.louv@elastic.co"},"sourceCommit":{"committedDate":"2025-04-08T08:13:00Z","message":"[Obs
AI Assistant] Replace Task Manager usage with Lock Manager
(#216916)\n\nThis PR replaces usage of the Kibana Task Manager with the
[LockManager\nutility](#216397)
that ensures\nstrict mutual exclusion when running operations such as
re-indexing or\ndata migrations.\n\n---------\n\nCo-authored-by: Viduni
Wickramarachchi <viduni.ushanka@gmail.com>\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"624410524f1a07dc72d92759464a3f4a85466c7a","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:skip","Team:Obs
AI Assistant","v9.1.0","v8.19.0"],"title":"[Obs AI Assistant] Replace
Task Manager usage with Lock
Manager","number":216916,"url":"https://github.com/elastic/kibana/pull/216916","mergeCommit":{"message":"[Obs
AI Assistant] Replace Task Manager usage with Lock Manager
(#216916)\n\nThis PR replaces usage of the Kibana Task Manager with the
[LockManager\nutility](#216397)
that ensures\nstrict mutual exclusion when running operations such as
re-indexing or\ndata migrations.\n\n---------\n\nCo-authored-by: Viduni
Wickramarachchi <viduni.ushanka@gmail.com>\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"624410524f1a07dc72d92759464a3f4a85466c7a"}},"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/216916","number":216916,"mergeCommit":{"message":"[Obs
AI Assistant] Replace Task Manager usage with Lock Manager
(#216916)\n\nThis PR replaces usage of the Kibana Task Manager with the
[LockManager\nutility](#216397)
that ensures\nstrict mutual exclusion when running operations such as
re-indexing or\ndata migrations.\n\n---------\n\nCo-authored-by: Viduni
Wickramarachchi <viduni.ushanka@gmail.com>\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"624410524f1a07dc72d92759464a3f4a85466c7a"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]},{"author":{"name":"Arturo
Lidueña","email":"arturo.liduena@elastic.co"},"sourceCommit":{"committedDate":"2025-04-09T09:38:41Z","message":"update
knowledge base installation flow (#214133)\n\n## Summary\nCloses
[#209791](https://github.com/elastic/kibana/issues/209791)\nCloses
[#204378](https://github.com/elastic/kibana/issues/204378)\n### Improve
Knowledge Base Installation and Inference Endpoint\nManagement\n\n####
Enhancements \n- The **\"Install Knowledge Base\"** button is only shown
when there is no\ninference endpoint. If the inference endpoint creation
fails, an error\nnotification is displayed.\n- When an inference
endpoint **exists and is ready**, no buttons or\nmessages are shown.\n-
If the installation was in progress and **succeeded**, a
success\nmessage is displayed.\n- If an inference endpoint is present,
users can **inspect the state of\nthe model deployment** to diagnose
issues.\n- When an inference endpoint exists but has an **error**, users
can\nretry the installation.\n\n#### Inspection & Troubleshooting
\nUsers can inspect the inference endpoint's deployment status,
including:\n- **Model is deploying** \n- **No ML node available** \n-
**Insufficient memory available**
\n\n\nhttps://github.com/user-attachments/assets/03a91120-173c-4dc9-b6f2-59a8c8c8defb\n\n###
Suggested Improvements \n- Display **autoscaling information** for
better resource insights. \n- Show **ML node details** to help users
understand the infrastructure.\n- Allow users to **install, deploy, and
stop the model** directly from\nthe inspection popup.\n\nThese changes
enhance visibility, troubleshooting, and control over\ninference
endpoint deployment. 🚀\n\n\n### Checklist\n\nCheck the PR satisfies
following conditions. \n\nReviewers should verify this PR satisfies this
list as well.\n\n- [ ] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [ ] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ]
...","sha":"4109420186d586f91fd999cea0087bb8e06bfc59","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport
missing","Team:Obs AI
Assistant","backport:version","v9.1.0","v8.19.0"],"title":"update
knowledge base installation
flow","number":214133,"url":"https://github.com/elastic/kibana/pull/214133","mergeCommit":{"message":"update
knowledge base installation flow (#214133)\n\n## Summary\nCloses
[#209791](https://github.com/elastic/kibana/issues/209791)\nCloses
[#204378](https://github.com/elastic/kibana/issues/204378)\n### Improve
Knowledge Base Installation and Inference Endpoint\nManagement\n\n####
Enhancements \n- The **\"Install Knowledge Base\"** button is only shown
when there is no\ninference endpoint. If the inference endpoint creation
fails, an error\nnotification is displayed.\n- When an inference
endpoint **exists and is ready**, no buttons or\nmessages are shown.\n-
If the installation was in progress and **succeeded**, a
success\nmessage is displayed.\n- If an inference endpoint is present,
users can **inspect the state of\nthe model deployment** to diagnose
issues.\n- When an inference endpoint exists but has an **error**, users
can\nretry the installation.\n\n#### Inspection & Troubleshooting
\nUsers can inspect the inference endpoint's deployment status,
including:\n- **Model is deploying** \n- **No ML node available** \n-
**Insufficient memory available**
\n\n\nhttps://github.com/user-attachments/assets/03a91120-173c-4dc9-b6f2-59a8c8c8defb\n\n###
Suggested Improvements \n- Display **autoscaling information** for
better resource insights. \n- Show **ML node details** to help users
understand the infrastructure.\n- Allow users to **install, deploy, and
stop the model** directly from\nthe inspection popup.\n\nThese changes
enhance visibility, troubleshooting, and control over\ninference
endpoint deployment. 🚀\n\n\n### Checklist\n\nCheck the PR satisfies
following conditions. \n\nReviewers should verify this PR satisfies this
list as well.\n\n- [ ] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [ ] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ]
...","sha":"4109420186d586f91fd999cea0087bb8e06bfc59"}},"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/214133","number":214133,"mergeCommit":{"message":"update
knowledge base installation flow (#214133)\n\n## Summary\nCloses
[#209791](https://github.com/elastic/kibana/issues/209791)\nCloses
[#204378](https://github.com/elastic/kibana/issues/204378)\n### Improve
Knowledge Base Installation and Inference Endpoint\nManagement\n\n####
Enhancements \n- The **\"Install Knowledge Base\"** button is only shown
when there is no\ninference endpoint. If the inference endpoint creation
fails, an error\nnotification is displayed.\n- When an inference
endpoint **exists and is ready**, no buttons or\nmessages are shown.\n-
If the installation was in progress and **succeeded**, a
success\nmessage is displayed.\n- If an inference endpoint is present,
users can **inspect the state of\nthe model deployment** to diagnose
issues.\n- When an inference endpoint exists but has an **error**, users
can\nretry the installation.\n\n#### Inspection & Troubleshooting
\nUsers can inspect the inference endpoint's deployment status,
including:\n- **Model is deploying** \n- **No ML node available** \n-
**Insufficient memory available**
\n\n\nhttps://github.com/user-attachments/assets/03a91120-173c-4dc9-b6f2-59a8c8c8defb\n\n###
Suggested Improvements \n- Display **autoscaling information** for
better resource insights. \n- Show **ML node details** to help users
understand the infrastructure.\n- Allow users to **install, deploy, and
stop the model** directly from\nthe inspection popup.\n\nThese changes
enhance visibility, troubleshooting, and control over\ninference
endpoint deployment. 🚀\n\n\n### Checklist\n\nCheck the PR satisfies
following conditions. \n\nReviewers should verify this PR satisfies this
list as well.\n\n- [ ] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [ ] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ]
...","sha":"4109420186d586f91fd999cea0087bb8e06bfc59"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]},{"author":{"name":"Viduni
Wickramarachchi","email":"viduni.wickramarachchi@elastic.co"},"sourceCommit":{"committedDate":"2025-05-05T08:13:10Z","message":"[Obs
AI Assistant] Specify embedding model during onboarding for the
Knowledge Base (#218448)\n\nCloses
https://github.com/elastic/obs-ai-assistant-team/issues/230\nCloses
https://github.com/elastic/obs-ai-assistant-team/issues/232\n\nRelated
to https://github.com/elastic/kibana/pull/215591\n\n## Summary\n\nThis
PR implements the changes related to the first phase of
supporing\nmultilingual Knowledge Base. The users have the ability to
pick the\n`e5-small` model for the Knowledge Base, if they want support
for\nlanguages other than English.\n\n<img width=\"610\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/4c815aa4-aa97-4845-98c5-e079dd92f23a\"\n/>\n\n<img
width=\"1281\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/7c1bcd82-5464-497f-a053-7fe271da1cdd\"\n/>\n\n<img
width=\"1280\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/bc084e90-c291-44ea-8560-e033729bfcca\"\n/>\n\nWhen
the KB model is not allocated due to nodes scaling
down:\n\n\n![image](https://github.com/user-attachments/assets/2f52e31e-81e4-4824-bc5b-b97df714da5c)\n\n\n###
Checklist\n\n- [x] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [x] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n\n##
Upgrade testing steps\n\n### 9.0 - 9.1 (main)\n\nCheckout `9.0` branch
and start Kibana and ES. ES must be started with\n`path.data` to persist
data:\n\n```\nyarn es snapshot --license trial --E
path.data=/Users/sorenlouv/elastic/es_data/upgrade_test_9.0\n```\n\n---------\n\nCo-authored-by:
Søren Louv-Jansen <soren.louv@elastic.co>\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Søren
Louv-Jansen
<sorenlouv@gmail.com>","sha":"dc019f85e19de28c1e2573108c47caa0080247c8","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:feature","Team:Obs
AI
Assistant","ci:project-deploy-observability","backport:version","v9.1.0","v8.19.0"],"title":"[Obs
AI Assistant] Specify embedding model during onboarding for the
Knowledge
Base","number":218448,"url":"https://github.com/elastic/kibana/pull/218448","mergeCommit":{"message":"[Obs
AI Assistant] Specify embedding model during onboarding for the
Knowledge Base (#218448)\n\nCloses
https://github.com/elastic/obs-ai-assistant-team/issues/230\nCloses
https://github.com/elastic/obs-ai-assistant-team/issues/232\n\nRelated
to https://github.com/elastic/kibana/pull/215591\n\n## Summary\n\nThis
PR implements the changes related to the first phase of
supporing\nmultilingual Knowledge Base. The users have the ability to
pick the\n`e5-small` model for the Knowledge Base, if they want support
for\nlanguages other than English.\n\n<img width=\"610\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/4c815aa4-aa97-4845-98c5-e079dd92f23a\"\n/>\n\n<img
width=\"1281\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/7c1bcd82-5464-497f-a053-7fe271da1cdd\"\n/>\n\n<img
width=\"1280\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/bc084e90-c291-44ea-8560-e033729bfcca\"\n/>\n\nWhen
the KB model is not allocated due to nodes scaling
down:\n\n\n![image](https://github.com/user-attachments/assets/2f52e31e-81e4-4824-bc5b-b97df714da5c)\n\n\n###
Checklist\n\n- [x] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [x] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n\n##
Upgrade testing steps\n\n### 9.0 - 9.1 (main)\n\nCheckout `9.0` branch
and start Kibana and ES. ES must be started with\n`path.data` to persist
data:\n\n```\nyarn es snapshot --license trial --E
path.data=/Users/sorenlouv/elastic/es_data/upgrade_test_9.0\n```\n\n---------\n\nCo-authored-by:
Søren Louv-Jansen <soren.louv@elastic.co>\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Søren
Louv-Jansen
<sorenlouv@gmail.com>","sha":"dc019f85e19de28c1e2573108c47caa0080247c8"}},"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/218448","number":218448,"mergeCommit":{"message":"[Obs
AI Assistant] Specify embedding model during onboarding for the
Knowledge Base (#218448)\n\nCloses
https://github.com/elastic/obs-ai-assistant-team/issues/230\nCloses
https://github.com/elastic/obs-ai-assistant-team/issues/232\n\nRelated
to https://github.com/elastic/kibana/pull/215591\n\n## Summary\n\nThis
PR implements the changes related to the first phase of
supporing\nmultilingual Knowledge Base. The users have the ability to
pick the\n`e5-small` model for the Knowledge Base, if they want support
for\nlanguages other than English.\n\n<img width=\"610\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/4c815aa4-aa97-4845-98c5-e079dd92f23a\"\n/>\n\n<img
width=\"1281\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/7c1bcd82-5464-497f-a053-7fe271da1cdd\"\n/>\n\n<img
width=\"1280\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/bc084e90-c291-44ea-8560-e033729bfcca\"\n/>\n\nWhen
the KB model is not allocated due to nodes scaling
down:\n\n\n![image](https://github.com/user-attachments/assets/2f52e31e-81e4-4824-bc5b-b97df714da5c)\n\n\n###
Checklist\n\n- [x] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [x] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n\n##
Upgrade testing steps\n\n### 9.0 - 9.1 (main)\n\nCheckout `9.0` branch
and start Kibana and ES. ES must be started with\n`path.data` to persist
data:\n\n```\nyarn es snapshot --license trial --E
path.data=/Users/sorenlouv/elastic/es_data/upgrade_test_9.0\n```\n\n---------\n\nCo-authored-by:
Søren Louv-Jansen <soren.louv@elastic.co>\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Søren
Louv-Jansen
<sorenlouv@gmail.com>","sha":"dc019f85e19de28c1e2573108c47caa0080247c8"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: Arturo Lidueña <arturo.liduena@elastic.co>
Co-authored-by: Viduni Wickramarachchi <viduni.wickramarachchi@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:Obs AI Assistant Observability AI Assistant v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants