Skip to content

[8.x] update knowledge base installation flow (#214133)#218058

Closed
arturoliduena wants to merge 2 commits intoelastic:8.19from
arturoliduena:backport/8.x/pr-214133
Closed

[8.x] update knowledge base installation flow (#214133)#218058
arturoliduena wants to merge 2 commits intoelastic:8.19from
arturoliduena:backport/8.x/pr-214133

Conversation

@arturoliduena
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

## Summary
Closes [elastic#209791](elastic#209791)
Closes [elastic#204378](elastic#204378)
### Improve Knowledge Base Installation and Inference Endpoint
Management

#### Enhancements
- The **"Install Knowledge Base"** button is only shown when there is no
inference endpoint. If the inference endpoint creation fails, an error
notification is displayed.
- When an inference endpoint **exists and is ready**, no buttons or
messages are shown.
- If the installation was in progress and **succeeded**, a success
message is displayed.
- If an inference endpoint is present, users can **inspect the state of
the model deployment** to diagnose issues.
- When an inference endpoint exists but has an **error**, users can
retry the installation.

#### Inspection & Troubleshooting
Users can inspect the inference endpoint's deployment status, including:
- **Model is deploying**
- **No ML node available**
- **Insufficient memory available**

https://github.com/user-attachments/assets/03a91120-173c-4dc9-b6f2-59a8c8c8defb

### Suggested Improvements
- Display **autoscaling information** for better resource insights.
- Show **ML node details** to help users understand the infrastructure.
- Allow users to **install, deploy, and stop the model** directly from
the inspection popup.

These changes enhance visibility, troubleshooting, and control over
inference endpoint deployment. 🚀

### 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](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)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [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
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] 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
- [ ] 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)

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

(cherry picked from commit 4109420)

# Conflicts:
#	x-pack/platform/plugins/shared/observability_ai_assistant/server/service/inference_endpoint.ts
#	x-pack/platform/plugins/shared/observability_ai_assistant/server/service/knowledge_base_service/index.ts
@arturoliduena arturoliduena added the backport This PR is a backport of another PR label Apr 14, 2025
@arturoliduena arturoliduena enabled auto-merge (squash) April 14, 2025 08:48
@botelastic botelastic bot added the Team:Obs AI Assistant Observability AI Assistant label Apr 14, 2025
@elasticmachine
Copy link
Contributor

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

@elasticmachine
Copy link
Contributor

elasticmachine commented Apr 14, 2025

💔 Build Failed

Failed CI Steps

History

@jbudz jbudz changed the base branch from old-8.x to 8.19 April 18, 2025 18:39
@jbudz jbudz disabled auto-merge April 18, 2025 18:54
@jbudz
Copy link
Contributor

jbudz commented Apr 18, 2025

@arturoliduena

I updated the target branch from old-8.x (previously 8.x) to 8.19 to reflect our global branch rename of 8.x to 8.19.

When you have a moment can you double check everything is in order and proceed as usual if so? Feel free to reach out if there's any questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR Team:Obs AI Assistant Observability AI Assistant

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants