-
Notifications
You must be signed in to change notification settings - Fork 80
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
Add prefix strings to PUT model request #2449
Conversation
@@ -429,9 +429,9 @@ export class TrainedModelPrefixStrings { | |||
/** | |||
* String prepended to input at ingest | |||
*/ | |||
ingest: string | |||
ingest?: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ingest and search params are optional, you can set one or the other or both or neither
Co-authored-by: David Roberts <[email protected]>
Following you can find the validation results for the APIs you have changed.
You can validate these APIs yourself by using the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM.
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-8.12 8.12
# Navigate to the new working tree
cd .worktrees/backport-8.12
# Create a new branch
git switch --create backport-2449-to-8.12
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 f6ec736f5d7a3ab1ee4a4e5bbbc71b1c4ee478ca
# Push it to GitHub
git push --set-upstream origin backport-2449-to-8.12
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-8.12 Then, create a pull request where the |
@davidkyle The 8.12 backport fails because #2363 was not backported to 8.12. Should it be? If no, I can skip it in the 8.12 backport. |
Yes #2363 should have been backported because the Elasticsearch change was in 8.12 My mistake, I'll create the backports manually. Thanks @pquentin |
Follow up to #2363 where prefix_strings option was added to TrainedModelConfig
* Add prefix_string config option for ML models (#2363) The prefix_strings option was added to support the E5 model in elastic/elasticsearch#102089 * Add prefix_strings option to PUT model request (#2449) Follow up to #2363 where prefix_strings option was added to TrainedModelConfig
The
prefix_string
option was added to the model configuration in #2363 but the PUT request does not use the same config and needs to be added explicitly.The model config as defined in
TrainedModels.ts
cannot be used in the PUT request because it contains many fields that are automatically generated by the server and those fields should not be optional in the config but would have to be optional if used in the PUT request.Closes #2448