elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.48k stars 8.04k forks source link

[Obs AI Assistant] Knowledge base cannot be installed via public API #183739

Open miltonhultgren opened 1 month ago

miltonhultgren commented 1 month ago

While working on the User Instructions feature I've added checks that reject requests if the Knowledge base isn't ready. This highlighted to me that if we expect users to automate workflows they'll need a way to install the Knowledge base via API, hence we should expose the current POST /internal/observability_ai_assistant/kb/setup and GET /internal/observability_ai_assistant/kb/status routes as part of the public API.

We'll also need to ensure we have sufficient API tests in place to support this, as well as create Open API specs to document these APIs.

elasticmachine commented 1 month ago

Pinging @elastic/obs-knowledge-team (Team:obs-knowledge)

miltonhultgren commented 1 month ago

Related to this is the question if we should keep storing user instructions in the Knowledge base at all, or perhaps we would prefer to migrate to using Kibana Saved Objects to remove this hard dependency, that would mean we don't have to expose these endpoints as public APIs.

See https://github.com/elastic/kibana/issues/184339