elastic / kibana

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

[Obs AI Assistant] Change Knowledge base category filters to use dedicated field #180446

Open miltonhultgren opened 7 months ago

miltonhultgren commented 7 months ago

Summary

Today, we use labels.category to decide which type of Knowledge base entry we're dealing with. The issue with this is that the mapping for labels.category is set to dynamic so it is unpredictable, and changes based on which document is ingested first. Usually it ends up being a multi field with type test and a sub field with type keyword, all of which have impact on the results depending on which field and which query is being used.

labels are better suited for user driven categorization, and we would be better served for our internal use cases to have a dedicated field for category.

This would however require us to migrate existing labels.category into this new field that exist in the Knowledge base.

AC

elasticmachine commented 7 months ago

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