Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Obs AI Assistant] Re-index KB if the index doesn't support semantic text #210204

Open
sorenlouv opened this issue Feb 7, 2025 · 1 comment · May be fixed by #210386
Open

[Obs AI Assistant] Re-index KB if the index doesn't support semantic text #210204

sorenlouv opened this issue Feb 7, 2025 · 1 comment · May be fixed by #210386
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Team:Obs AI Assistant Observability AI Assistant

Comments

@sorenlouv
Copy link
Member

sorenlouv commented Feb 7, 2025

Timeline

  • 8.10: Initial launch of Obs AI Assistant. The KB index is created automatically
  • 8.11: Introduction of the sparse_vector field for semantic processing.
  • 8.12: GA release of the Observability AI Assistant.
  • 8.17: KB begins leveraging the semantic_text field.
  • 8.18: GA release of the semantic_text field

Problem

Any user on 8.10 will have a KB index that does not support semantic_text. This means that if a user who has used 8.10 upgrades to 8.17 or later, they will no longer be able to ingest documents into the knowledge base.

Reproduce

  • Create 8.10 cluster
  • Verify that the knowledge base index exists (GET .kibana-observability-ai-assistant-kb)
  • Upgrade to 8.17 or above
  • Add item to KB

Solution

Upon adding documents to the KB we should catch the error. We should re-index the KB index if the error thrown is:

document_parsing_exception
Caused by:
unsupported_operation_exception: The [sparse_vector] field type is not supported on indices created on versions 8.0 to 8.10

Note: We should make sure to block writes to the index as soon as we start re-indexing in order to avoid multiple users starting the migration.

@sorenlouv sorenlouv added bug Fixes for quality problems that affect the customer experience Team:Obs AI Assistant Observability AI Assistant labels Feb 7, 2025
@elasticmachine
Copy link
Contributor

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

@sorenlouv sorenlouv self-assigned this Feb 7, 2025
@sorenlouv sorenlouv changed the title [Obs AI Assistant] Re-index KB index if index doesn't support semantic text [Obs AI Assistant] Re-index KB if the index doesn't support semantic text Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Obs AI Assistant Observability AI Assistant
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants