Skip to content

Expose model registry to SemanticTextFieldMapper #126635

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

Merged
merged 8 commits into from
Apr 15, 2025

Conversation

jimczi
Copy link
Contributor

@jimczi jimczi commented Apr 10, 2025

This change integrates the new model registry with the SemanticTextFieldMapper, allowing inference IDs to be eagerly resolved at parse time. It also preserves the existing lenient behavior: no error is thrown if the specified inference id does not exist, only a warning is logged.

This change integrates the new model registry with the `SemanticTextFieldMapper`, allowing inference IDs to be eagerly resolved at parse time.
It also preserves the existing lenient behavior: no error is thrown if the specified inference id does not exist, only a warning is logged.
@jimczi jimczi requested a review from kderusso April 10, 2025 18:50
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Apr 10, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

Copy link
Member

@kderusso kderusso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice change and glad it was easier to achieve than we previously thought! One question on synchronization and waiting on green CI.

Copy link
Member

@kderusso kderusso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jimczi jimczi added the auto-backport Automatically create backport pull requests when merged label Apr 15, 2025
@jimczi jimczi merged commit c906cc0 into elastic:main Apr 15, 2025
17 checks passed
@jimczi jimczi deleted the model_registry_semantic_text branch April 15, 2025 07:45
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.x Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 126635

jimczi added a commit to jimczi/elasticsearch that referenced this pull request Apr 15, 2025
This change integrates the new model registry with the `SemanticTextFieldMapper`, allowing inference IDs to be eagerly resolved at parse time.
It also preserves the existing lenient behavior: no error is thrown if the specified inference id does not exist, only a warning is logged.
elasticsearchmachine pushed a commit that referenced this pull request Apr 15, 2025
This change integrates the new model registry with the `SemanticTextFieldMapper`, allowing inference IDs to be eagerly resolved at parse time.
It also preserves the existing lenient behavior: no error is thrown if the specified inference id does not exist, only a warning is logged.
afoucret pushed a commit to afoucret/elasticsearch that referenced this pull request Apr 16, 2025
This change integrates the new model registry with the `SemanticTextFieldMapper`, allowing inference IDs to be eagerly resolved at parse time.
It also preserves the existing lenient behavior: no error is thrown if the specified inference id does not exist, only a warning is logged.
kderusso added a commit to kderusso/elasticsearch that referenced this pull request Apr 18, 2025
viduni94 added a commit to elastic/kibana that referenced this pull request Apr 21, 2025
Closes #218497

## Summary

The summarize tests were skipped last week because they were failing and
blocking pipelines.

These tests have started to fail after the merge of
elastic/elasticsearch#126635
These changes were reverted last week in
elastic/elasticsearch#127075

Therefore, this PR unskips the tests.

### 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)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Apr 21, 2025
Closes elastic#218497

## Summary

The summarize tests were skipped last week because they were failing and
blocking pipelines.

These tests have started to fail after the merge of
elastic/elasticsearch#126635
These changes were reverted last week in
elastic/elasticsearch#127075

Therefore, this PR unskips the tests.

### 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)

(cherry picked from commit 766cd47)
kibanamachine added a commit to elastic/kibana that referenced this pull request Apr 21, 2025
# Backport

This will backport the following commits from `main` to `8.19`:
- [[Obs AI Assistant] Unskip summarize tests
(#218728)](#218728)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Viduni
Wickramarachchi","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-04-21T16:07:54Z","message":"[Obs
AI Assistant] Unskip summarize tests (#218728)\n\nCloses
https://github.com/elastic/kibana/issues/218497\n\n## Summary\n\nThe
summarize tests were skipped last week because they were failing
and\nblocking pipelines.\n\nThese tests have started to fail after the
merge of\nhttps://github.com/elastic/elasticsearch/pull/126635\nThese
changes were reverted last week
in\nhttps://github.com/elastic/elasticsearch/pull/127075\n\nTherefore,
this PR unskips the tests.\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)","sha":"766cd471765c1466c4b12005e04ef39e5f5ed04b","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Obs
AI
Assistant","ci:project-deploy-observability","backport:version","v9.1.0","v8.19.0"],"title":"[Obs
AI Assistant] Unskip summarize
tests","number":218728,"url":"https://github.com/elastic/kibana/pull/218728","mergeCommit":{"message":"[Obs
AI Assistant] Unskip summarize tests (#218728)\n\nCloses
https://github.com/elastic/kibana/issues/218497\n\n## Summary\n\nThe
summarize tests were skipped last week because they were failing
and\nblocking pipelines.\n\nThese tests have started to fail after the
merge of\nhttps://github.com/elastic/elasticsearch/pull/126635\nThese
changes were reverted last week
in\nhttps://github.com/elastic/elasticsearch/pull/127075\n\nTherefore,
this PR unskips the tests.\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)","sha":"766cd471765c1466c4b12005e04ef39e5f5ed04b"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/218728","number":218728,"mergeCommit":{"message":"[Obs
AI Assistant] Unskip summarize tests (#218728)\n\nCloses
https://github.com/elastic/kibana/issues/218497\n\n## Summary\n\nThe
summarize tests were skipped last week because they were failing
and\nblocking pipelines.\n\nThese tests have started to fail after the
merge of\nhttps://github.com/elastic/elasticsearch/pull/126635\nThese
changes were reverted last week
in\nhttps://github.com/elastic/elasticsearch/pull/127075\n\nTherefore,
this PR unskips the tests.\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)","sha":"766cd471765c1466c4b12005e04ef39e5f5ed04b"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Viduni Wickramarachchi <[email protected]>
pgayvallet pushed a commit to pgayvallet/kibana that referenced this pull request Apr 22, 2025
Closes elastic#218497

## Summary

The summarize tests were skipped last week because they were failing and
blocking pipelines.

These tests have started to fail after the merge of
elastic/elasticsearch#126635
These changes were reverted last week in
elastic/elasticsearch#127075

Therefore, this PR unskips the tests.

### 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged backport pending >non-issue :Search Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v8.19.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants