Extract queue from Knowledge base #191640
Labels
Team:Obs AI Assistant
Observability AI Assistant
technical debt
Improvement of the software architecture and operational architecture
Background
When adding pre-loaded knowledge base entries (like Lens docs) we need to wait for the Knowledge Base (aka Elser model) to be available before writing and make sure that only a single Kibana instance ingests the documents in order to avoid spamming the cluster with duplicate entries.
We currently use the task manager and a custom queue to handles this. The current implementation adds complexity to the knowledge base, making it harder to make changes and write tests for this. I suggest we extract the queuing logic from the knowledge base. If needed we can create a completely separate queuing service or better look into getting rid of the queue completely.
The queue is implemented in the following services:
Acceptance criteria
await
ingesting until knowledge base is ready (queue or no queue?)semantic_text
for both pre-loaded and user created entriesDepends on: #186499
The text was updated successfully, but these errors were encountered: