Skip to content

Commit

Permalink
[8.x] [Indx Mgmt] Enable semantic text adaptive allocations by default (
Browse files Browse the repository at this point in the history
#200168) (#200747)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Indx Mgmt] Enable semantic text adaptive allocations by default
(#200168)](#200168)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Sander
Philipse","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-19T14:22:08Z","message":"[Indx
Mgmt] Enable semantic text adaptive allocations by default
(#200168)\n\n## Summary\r\n\r\nThis enables adaptive allocations for
semantic text fields by
default.","sha":"dde4271120d60242339ba1ef83396b3edfb4c4e2","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Search","v8.16.0","backport:version","v8.17.0","v8.18.0"],"title":"[Indx
Mgmt] Enable semantic text adaptive allocations by
default","number":200168,"url":"https://github.com/elastic/kibana/pull/200168","mergeCommit":{"message":"[Indx
Mgmt] Enable semantic text adaptive allocations by default
(#200168)\n\n## Summary\r\n\r\nThis enables adaptive allocations for
semantic text fields by
default.","sha":"dde4271120d60242339ba1ef83396b3edfb4c4e2"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x","8.18"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/200168","number":200168,"mergeCommit":{"message":"[Indx
Mgmt] Enable semantic text adaptive allocations by default
(#200168)\n\n## Summary\r\n\r\nThis enables adaptive allocations for
semantic text fields by
default.","sha":"dde4271120d60242339ba1ef83396b3edfb4c4e2"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Sander Philipse <[email protected]>
  • Loading branch information
kibanamachine and sphilipse authored Nov 19, 2024
1 parent f38870d commit bf5c9de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ describe('useSemanticText', () => {
{
service: 'elser',
service_settings: {
num_allocations: 1,
adaptive_allocations: {
enabled: true,
},
num_threads: 1,
model_id: '.elser_model_2',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function useSemanticText(props: UseSemanticTextProps) {
: {
service: defaultInferenceEndpointConfig.service,
service_settings: {
num_allocations: 1,
adaptive_allocations: { enabled: true },
num_threads: 1,
model_id: trainedModelId,
},
Expand Down

0 comments on commit bf5c9de

Please sign in to comment.