[Obs AI Assistant] Rename score properties to esScore and llmScore for more clarity#215699
Conversation
|
Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant) |
...k/platform/plugins/shared/observability_ai_assistant/server/utils/recall/recall_and_score.ts
Outdated
Show resolved
Hide resolved
x-pack/platform/plugins/shared/observability_ai_assistant/server/functions/context.ts
Outdated
Show resolved
Hide resolved
| esScore: { | ||
| type: 'float', | ||
| _meta: { | ||
| description: 'The score produced by ELSER text_expansion', |
There was a problem hiding this comment.
nit: we should update the description as well:
| esScore: { | |
| type: 'float', | |
| _meta: { | |
| description: 'The score produced by ELSER text_expansion', | |
| esScore: { | |
| type: 'float', | |
| _meta: { | |
| description: 'The score produced by Elasticsearch', |
Btw. I am not sure if you need to handle mapping changes elsewhere too. Try asking @afharo
There was a problem hiding this comment.
Sure.
Hi @afharo
I am updating a property of a Telemetry server event that we are sending, from elserScore to esScore.
Do I need to handle these mapping changes elsewhere?
There was a problem hiding this comment.
Apologies for the late reply. I can see that this is an EBT server-side event.
In that case, if you are relying on the generic index ebt-kibana-server (docs), no mapping update is required (maybe a runtime field update in your dataview).
If your team already has an indexer or a BigQuery pipeline leveraging this event type (observability_ai_assistant_recall_ranking), then you should update it accordingly.
cc @elastic/platform-analytics
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
cc @viduni94 |
💚 Build Succeeded
Metrics [docs]
History
cc @viduni94 |
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/14097561039 |
…r more clarity (elastic#215699) Closes elastic#214801 ## Summary In the recall and score function and score suggestions function we refer to both Elasticsearch score and LLM score as `score`. This is confusing and difficult to differentiate. This PR renames the `score` property based on the context of the score to either `esScore` or `llmScore`. ### Checklist - [x] 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) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 34cf355)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
…r more clarity (elastic#215699) Closes elastic#214801 ## Summary In the recall and score function and score suggestions function we refer to both Elasticsearch score and LLM score as `score`. This is confusing and difficult to differentiate. This PR renames the `score` property based on the context of the score to either `esScore` or `llmScore`. ### Checklist - [x] 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) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…ore for more clarity (#215699) (#216119) # Backport This will backport the following commits from `main` to `8.x`: - [[Obs AI Assistant] Rename score properties to esScore and llmScore for more clarity (#215699)](#215699) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Viduni Wickramarachchi","email":"viduni.wickramarachchi@elastic.co"},"sourceCommit":{"committedDate":"2025-03-27T02:31:01Z","message":"[Obs AI Assistant] Rename score properties to esScore and llmScore for more clarity (#215699)\n\nCloses https://github.com/elastic/kibana/issues/214801\n\n## Summary\n\nIn the recall and score function and score suggestions function we refer\nto both Elasticsearch score and LLM score as `score`. This is confusing\nand difficult to differentiate.\n\nThis PR renames the `score` property based on the context of the score\nto either `esScore` or `llmScore`.\n\n\n### Checklist\n\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"34cf355080b3e4ea346da4c86801f4fb4f6824cd","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Obs AI Assistant","backport:version","v9.1.0","v8.19.0"],"title":"[Obs AI Assistant] Rename score properties to esScore and llmScore for more clarity","number":215699,"url":"https://github.com/elastic/kibana/pull/215699","mergeCommit":{"message":"[Obs AI Assistant] Rename score properties to esScore and llmScore for more clarity (#215699)\n\nCloses https://github.com/elastic/kibana/issues/214801\n\n## Summary\n\nIn the recall and score function and score suggestions function we refer\nto both Elasticsearch score and LLM score as `score`. This is confusing\nand difficult to differentiate.\n\nThis PR renames the `score` property based on the context of the score\nto either `esScore` or `llmScore`.\n\n\n### Checklist\n\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"34cf355080b3e4ea346da4c86801f4fb4f6824cd"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/215699","number":215699,"mergeCommit":{"message":"[Obs AI Assistant] Rename score properties to esScore and llmScore for more clarity (#215699)\n\nCloses https://github.com/elastic/kibana/issues/214801\n\n## Summary\n\nIn the recall and score function and score suggestions function we refer\nto both Elasticsearch score and LLM score as `score`. This is confusing\nand difficult to differentiate.\n\nThis PR renames the `score` property based on the context of the score\nto either `esScore` or `llmScore`.\n\n\n### Checklist\n\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"34cf355080b3e4ea346da4c86801f4fb4f6824cd"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Viduni Wickramarachchi <viduni.wickramarachchi@elastic.co>
Closes #214801
Summary
In the recall and score function and score suggestions function we refer to both Elasticsearch score and LLM score as
score. This is confusing and difficult to differentiate.This PR renames the
scoreproperty based on the context of the score to eitheresScoreorllmScore.Checklist
release_note:*label is applied per the guidelines