Skip to content

[Obs AI Assistant] Display warning banner when re-indexing is in progress#222593

Merged
SrdjanLL merged 14 commits intoelastic:mainfrom
SrdjanLL:kb-reindexing-banner
Jun 13, 2025
Merged

[Obs AI Assistant] Display warning banner when re-indexing is in progress#222593
SrdjanLL merged 14 commits intoelastic:mainfrom
SrdjanLL:kb-reindexing-banner

Conversation

@SrdjanLL
Copy link
Copy Markdown
Contributor

@SrdjanLL SrdjanLL commented Jun 4, 2025

Closes #221837

Summary

This PR adds a warning callout to the Assistant Page, Flyout and Knowledge Base tab, to make users aware when knowledge base is re-indexing.

This will help avoid users' worry that their data is lost since it's not always shown during re-indexing.

The banner relies on the isReIndexing flag from the knowledge base status. Once the state changes to isReIndexing=false, the banner disappears.

Screenshots

image image image

When shown simultaneously with Elastic Managed LLM Callout

image

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

  • Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
  • Unit or functional tests were updated or added to match the most common scenarios
  • This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The release_note:breaking label should be applied in these situations.
  • [] Flaky Test Runner was used on any tests changed -I'm not sure about this one - let me know if there are any related tests I should execute here.
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines

@SrdjanLL SrdjanLL requested a review from a team as a code owner June 4, 2025 15:09
@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Jun 4, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 4, 2025

🤖 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!)

@SrdjanLL SrdjanLL added backport:version Backport to applied version labels v9.1.0 v8.19.0 labels Jun 4, 2025
Copy link
Copy Markdown
Contributor

@viduni94 viduni94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @SrdjanLL

I am wondering whether we should display this callout on the flyout and the AI Assistant page as well. Because when the user interacts with the AI Assistant, they'd expect the KB entries they have to be taken into account in the responses. And if some entries are unavailable they might not get the expected answer. They may or may not go to the knowledge base tab to verify this.

Any thoughts @sorenlouv ?

@viduni94 viduni94 added the Team:Obs AI Assistant Observability AI Assistant label Jun 4, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant)

@isaclfreire
Copy link
Copy Markdown

Agreed with @viduni94 proposal to show this also in the AI Assistant page

@SrdjanLL
Copy link
Copy Markdown
Contributor Author

SrdjanLL commented Jun 5, 2025

Thanks for the feedback @viduni94 and @isaclfreire - makes sense to me and if that's the agreed addition, I'll include it in this PR.

@SrdjanLL SrdjanLL requested a review from a team as a code owner June 5, 2025 12:29
@SrdjanLL SrdjanLL changed the title [Obs AI Assistant] Display warning banner in knowledge base tab when re-indexing is in progress [Obs AI Assistant] Display warning banner when re-indexing is in progress Jun 5, 2025
@SrdjanLL
Copy link
Copy Markdown
Contributor Author

SrdjanLL commented Jun 5, 2025

Team, you will notice that the text alignment is different depending on whether the callout is rendered in the knowledge base tab or in the conversation with assistant, due to the style of parent component (as defined here).

I didn't want to on about manipulating CSS or existing UI components in my first PR without getting your thoughts.

Options:

  1. Leave as is (centrally aligned test like other knowledge base content inside the Assistant page/flyout).
  2. Make callout text left-align like in the knowledge base tab. This would require making some changes to the existing WelcomeMessage component and playing with CSS a bit more - I tried a bit and nothing I thought of felt nice.

Let me know your thoughts and whether it's ok to keep the callout in the assistant page as is.

@SrdjanLL SrdjanLL requested a review from viduni94 June 5, 2025 12:58
return (
<EuiFlexGroup justifyContent="center" gutterSize="s">
<EuiFlexItem grow>
<EuiCallOut
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you extract this callout to a re-usable component and use it in here and in settings?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, thanks for pointing out.
I thought that makes sense too, but then the namespaces seemed different and I sort of kept separate and leave for feedback.

Copy link
Copy Markdown
Contributor

@viduni94 viduni94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@isaclfreire could you confirm whether the design for the flyout and page is okay?

I feel like it should appear above the logo (similar to the EIS callout) and wondering whether it should be sticky? Open to hear your thoughts.

@SrdjanLL
Copy link
Copy Markdown
Contributor Author

SrdjanLL commented Jun 6, 2025

I feel like it should appear above the logo (similar to the EIS callout) and wondering whether it should be sticky? Open to hear your thoughts.

@viduni94 - any suggestions on how to reproduce the EIS callout? I traversed the component tree up to find it, but didn't have much luck.

I've extracted the reindexing callout into a shareable component as per your suggestion though :)

@viduni94
Copy link
Copy Markdown
Contributor

viduni94 commented Jun 6, 2025

I feel like it should appear above the logo (similar to the EIS callout) and wondering whether it should be sticky? Open to hear your thoughts.

@viduni94 - any suggestions on how to reproduce the EIS callout? I traversed the component tree up to find it, but didn't have much luck.

I've extracted the reindexing callout into a shareable component as per your suggestion though :)

Hey @SrdjanLL
The EIS callout is not merged yet. But you can see some screenshots here - #220782 (the blue callout within the conversation).
Before changing anything let's wait for @isaclfreire's input.

@SrdjanLL
Copy link
Copy Markdown
Contributor Author

SrdjanLL commented Jun 6, 2025

Ahh, thanks for sharing the PR @viduni94 - looks like a good option as well.

Sounds good, let us know what you think @isaclfreire :)

@sorenlouv
Copy link
Copy Markdown
Member

Thanks for the PR @SrdjanLL

I am wondering whether we should display this callout on the flyout and the AI Assistant page as well. Because when the user interacts with the AI Assistant, they'd expect the KB entries they have to be taken into account in the responses. And if some entries are unavailable they might not get the expected answer. They may or may not go to the knowledge base tab to verify this.

Any thoughts @sorenlouv ?

Sounds good to me 👍

@sorenlouv
Copy link
Copy Markdown
Member

sorenlouv commented Jun 10, 2025

I feel like it should appear above the logo (similar to the EIS callout) and wondering whether it should be sticky? Open to hear your thoughts.

Imo it should be sticky (aka non-dismissible) because that's simpler to implement and it will automatically disappear when re-indexing completes. This also provides the user with insights into whether the re-indexing operation somehow got stuck. We do not show or handle that anywhere else.

@isaclfreire
Copy link
Copy Markdown

@isaclfreire could you confirm whether the design for the flyout and page is okay?

I feel like it should appear above the logo (similar to the EIS callout) and wondering whether it should be sticky? Open to hear your thoughts.

I think we should keep callouts consistent so above the logo is the way to go. The EIS callout is sticky right? If so, I would keep the same experience. Nice catch 👍

@SrdjanLL
Copy link
Copy Markdown
Contributor Author

@isaclfreire thanks for the feedback - I'll implement the callout above the logo!

Looks like the EIS callout is not sticky though. Adding it here from Viduni's PR for visibility:
452997822-5c0b3933-b253-474e-92a5-d8793ebff819

For the reasons @sorenlouv mentioned above, think it might be worth going with sticky callout here even if it's different to EIS:

Because that's simpler to implement and it will automatically disappear when re-indexing completes. This also provides the user with insights into whether the re-indexing operation somehow got stuck.

Feel free to let me know if you disagree 🙂

@isaclfreire
Copy link
Copy Markdown

LGTM 👍

@viduni94
Copy link
Copy Markdown
Contributor

Looks like the EIS callout is not sticky though. Adding it here from Viduni's PR for visibility:

452997822-5c0b3933-b253-474e-92a5-d8793ebff819

@SrdjanLL The EIS callout is sticky.

@sorenlouv
Copy link
Copy Markdown
Member

sorenlouv commented Jun 10, 2025

Looks like the EIS callout is not sticky though. Adding it here from Viduni's PR for visibility:
452997822-5c0b3933-b253-474e-92a5-d8793ebff819

@SrdjanLL The EIS callout is sticky.

What does "sticky" mean here? I originally thought it meant "non-dismissible" but I see the close icon (X). Does "sticky" refer to the banner being a "sticky header" that remains fixed at the top of the viewport as a user scrolls down?

@viduni94
Copy link
Copy Markdown
Contributor

viduni94 commented Jun 10, 2025

What does "sticky" mean here? I originally thought it meant "non-dismissible" but I see the close icon (X). Does "sticky" refer to the banner being a "sticky header" that remains fixed at the top of the viewport as a user scrolls down?

@sorenlouv

Does "sticky" refer to the banner being a "sticky header" that remains fixed at the top of the viewport as a user scrolls down

Yes

The EIS callout is dismissible, but I think the re-indexing callout should be non-dismissible

@SrdjanLL
Copy link
Copy Markdown
Contributor Author

Ahh, I see. I initially interpreted "sticky" the same way @sorenlouv did. I'll make sure the callout is bot non-dismissible and sticky. Thanks @viduni94 and apologies for the confusion.

@SrdjanLL SrdjanLL force-pushed the kb-reindexing-banner branch from 4a0fd87 to 17416fa Compare June 12, 2025 10:42
@SrdjanLL
Copy link
Copy Markdown
Contributor Author

SrdjanLL commented Jun 12, 2025

When I installed the KB for the first time from the AI Assistant flyout, the re-indexing callout appeared for a few seconds and disappeared. This is probably because the backend sends re-indexing as true because a lock gets activated and released. This seems a little confusing because the callout says Some entries will be unavailable until the operation completes. I'm wondering whether we should update it to say something like, if you have entries in the KB some may not be available while re-indexing.. otherwise it feels like I'm missing some entries that I didn't have in the first place.

Thank you for spotting this @viduni94 . Does it happen after installation or the users already see installation as complete? I've also not been able to reproduce locally so will wait on the new serverless deployment to complete before trying to see.

I have provisionally updated the wording to:

Knowledge base is currently being re-indexed. If you have entries, some may be unavailable until the operation completes.

Let me know if that sounds all right and I will also ask @isaclfreire for feedback.

@isaclfreire
Copy link
Copy Markdown

When I installed the KB for the first time from the AI Assistant flyout, the re-indexing callout appeared for a few seconds and disappeared. This is probably because the backend sends re-indexing as true because a lock gets activated and released. This seems a little confusing because the callout says Some entries will be unavailable until the operation completes. I'm wondering whether we should update it to say something like, if you have entries in the KB some may not be available while re-indexing.. otherwise it feels like I'm missing some entries that I didn't have in the first place.

Thank you for spotting this @viduni94 . Does it happen after installation or the users already see installation as complete? I've also not been able to reproduce locally so will wait on the new serverless deployment to complete before trying to see.

I have provisionally updated the wording to:

Knowledge base is currently being re-indexed. If you have entries, some may be unavailable until the operation completes.

Let me know if that sounds all right and I will also ask @isaclfreire for feedback.

Agree with specifying in the copy. The proposal LGTM!

@SrdjanLL SrdjanLL force-pushed the kb-reindexing-banner branch from 37b1526 to 9edbb0f Compare June 12, 2025 13:20
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Jun 12, 2025

💚 Build Succeeded

  • Buildkite Build
  • Commit: 9edbb0f
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-222593-9edbb0f96603

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
observabilityAIAssistantApp 316 317 +1
observabilityAiAssistantManagement 260 261 +1
searchAssistant 147 148 +1
total +3

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
observabilityAIAssistantApp 174.8KB 175.8KB +1.0KB
observabilityAiAssistantManagement 96.8KB 97.5KB +660.0B
searchAssistant 101.1KB 102.1KB +1.0KB
total +2.7KB

History

@viduni94
Copy link
Copy Markdown
Contributor

I spotted this in the serverless deployment, and I couldn't record it. And now I'm unable to reset the KB to re-do that flow. Once you push another commit to this branch, it'll re-trigger a serverless deployment and should be able to reproduce there.

Here's the video that I couldn't capture before

Screen.Recording.2025-06-12.at.12.41.58.PM.mov

Copy link
Copy Markdown
Contributor

@viduni94 viduni94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

tourCalloutDismissed;

const showKnowledgeBaseReIndexingCallout =
knowledgeBase.status.value?.enabled === true &&
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
knowledgeBase.status.value?.enabled === true &&
knowledgeBase.status.value?.enabled &&

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes cause amguous type errors: Type 'boolean | undefined' is not assignable to type 'boolean' for the flag, so I hope it's all right to leave as is :)

const showKnowledgeBaseReIndexingCallout =
knowledgeBase.status.value?.enabled === true &&
knowledgeBase.status.value?.kbState === KnowledgeBaseState.READY &&
knowledgeBase.status.value?.isReIndexing === true;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
knowledgeBase.status.value?.isReIndexing === true;
knowledgeBase.status.value?.isReIndexing;

@SrdjanLL SrdjanLL added v8.18.3 v9.0.3 release_note:skip Skip the PR/issue when compiling release notes and removed release_note:enhancement v9.0.3 v8.18.3 labels Jun 13, 2025
@SrdjanLL SrdjanLL merged commit 1d2ab08 into elastic:main Jun 13, 2025
19 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19

https://github.com/elastic/kibana/actions/runs/15633478751

@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
8.19 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.19:
- [Obs AI Assistant] Anonymization support (#223351)

Manual backport

To create the backport manually run:

node scripts/backport --pr 222593

Questions ?

Please refer to the Backport tool documentation

@SrdjanLL
Copy link
Copy Markdown
Contributor 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

SrdjanLL added a commit that referenced this pull request Jun 13, 2025
…in progress (#222593) (#223906)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Obs AI Assistant] Display warning banner when re-indexing is in
progress (#222593)](#222593)

<!--- Backport version: 10.0.0 -->

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

<!--BACKPORT [{"author":{"name":"Srdjan
Lulic","email":"srdjan.lulic@elastic.co"},"sourceCommit":{"committedDate":"2025-06-13T11:28:52Z","message":"[Obs
AI Assistant] Display warning banner when re-indexing is in progress
(#222593)\n\nCloses #221837\n\n## Summary\n\nThis PR adds a warning
callout to the Assistant Page, Flyout and\nKnowledge Base tab, to make
users aware when knowledge base is\nre-indexing.\n\nThis will help avoid
users' worry that their data is lost since it's not\nalways shown during
re-indexing.\n \nThe banner relies on the `isReIndexing` flag from the
knowledge base\nstatus. Once the state changes to `isReIndexing=false`,
the banner\ndisappears.\n\n### Screenshots\n\n<img width=\"1481\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/b56f4d7a-ce97-4c33-a80f-4ce342f3e8b7\"\n/>\n\n<img
width=\"1725\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/38d63042-df9c-4d8b-9963-606cd076a67a\"\n/>\n\n<img
width=\"1481\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/32908997-dfcc-4162-9103-f07ed21c27eb\"\n/>\n\n\n####
When shown simultaneously with Elastic Managed LLM Callout\n\n<img
width=\"1481\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/45bb49ec-149f-446a-ad1b-6773a08d8c95\"\n/>\n\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\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- [x] 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 -**I'm not sure about this one - let me
know\nif there are any related tests I should execute here**.\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)","sha":"1d2ab08596bbf99f79e764455a8b3d4bba8443fe","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":"[Obs
AI Assistant] Display warning banner when re-indexing is in
progress","number":222593,"url":"https://github.com/elastic/kibana/pull/222593","mergeCommit":{"message":"[Obs
AI Assistant] Display warning banner when re-indexing is in progress
(#222593)\n\nCloses #221837\n\n## Summary\n\nThis PR adds a warning
callout to the Assistant Page, Flyout and\nKnowledge Base tab, to make
users aware when knowledge base is\nre-indexing.\n\nThis will help avoid
users' worry that their data is lost since it's not\nalways shown during
re-indexing.\n \nThe banner relies on the `isReIndexing` flag from the
knowledge base\nstatus. Once the state changes to `isReIndexing=false`,
the banner\ndisappears.\n\n### Screenshots\n\n<img width=\"1481\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/b56f4d7a-ce97-4c33-a80f-4ce342f3e8b7\"\n/>\n\n<img
width=\"1725\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/38d63042-df9c-4d8b-9963-606cd076a67a\"\n/>\n\n<img
width=\"1481\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/32908997-dfcc-4162-9103-f07ed21c27eb\"\n/>\n\n\n####
When shown simultaneously with Elastic Managed LLM Callout\n\n<img
width=\"1481\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/45bb49ec-149f-446a-ad1b-6773a08d8c95\"\n/>\n\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\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- [x] 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 -**I'm not sure about this one - let me
know\nif there are any related tests I should execute here**.\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)","sha":"1d2ab08596bbf99f79e764455a8b3d4bba8443fe"}},"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/222593","number":222593,"mergeCommit":{"message":"[Obs
AI Assistant] Display warning banner when re-indexing is in progress
(#222593)\n\nCloses #221837\n\n## Summary\n\nThis PR adds a warning
callout to the Assistant Page, Flyout and\nKnowledge Base tab, to make
users aware when knowledge base is\nre-indexing.\n\nThis will help avoid
users' worry that their data is lost since it's not\nalways shown during
re-indexing.\n \nThe banner relies on the `isReIndexing` flag from the
knowledge base\nstatus. Once the state changes to `isReIndexing=false`,
the banner\ndisappears.\n\n### Screenshots\n\n<img width=\"1481\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/b56f4d7a-ce97-4c33-a80f-4ce342f3e8b7\"\n/>\n\n<img
width=\"1725\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/38d63042-df9c-4d8b-9963-606cd076a67a\"\n/>\n\n<img
width=\"1481\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/32908997-dfcc-4162-9103-f07ed21c27eb\"\n/>\n\n\n####
When shown simultaneously with Elastic Managed LLM Callout\n\n<img
width=\"1481\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/45bb49ec-149f-446a-ad1b-6773a08d8c95\"\n/>\n\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\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- [x] 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 -**I'm not sure about this one - let me
know\nif there are any related tests I should execute here**.\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)","sha":"1d2ab08596bbf99f79e764455a8b3d4bba8443fe"}},{"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>
iblancof pushed a commit to iblancof/kibana that referenced this pull request Jun 16, 2025
…ress (elastic#222593)

Closes elastic#221837

## Summary

This PR adds a warning callout to the Assistant Page, Flyout and
Knowledge Base tab, to make users aware when knowledge base is
re-indexing.

This will help avoid users' worry that their data is lost since it's not
always shown during re-indexing.
 
The banner relies on the `isReIndexing` flag from the knowledge base
status. Once the state changes to `isReIndexing=false`, the banner
disappears.

### Screenshots

<img width="1481" alt="image"
src="https://github.com/user-attachments/assets/b56f4d7a-ce97-4c33-a80f-4ce342f3e8b7"
/>

<img width="1725" alt="image"
src="https://github.com/user-attachments/assets/38d63042-df9c-4d8b-9963-606cd076a67a"
/>

<img width="1481" alt="image"
src="https://github.com/user-attachments/assets/32908997-dfcc-4162-9103-f07ed21c27eb"
/>


#### When shown simultaneously with Elastic Managed LLM Callout

<img width="1481" alt="image"
src="https://github.com/user-attachments/assets/45bb49ec-149f-446a-ad1b-6773a08d8c95"
/>


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed -**I'm not sure about this one - let me know
if there are any related tests I should execute here**.
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels 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.

[Obs AI Assistant] Display a "Re-indexing in progress" banner in the Knowledge base UI after changing model

6 participants