-
Notifications
You must be signed in to change notification settings - Fork 136
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
[ENHANCEMENT] Support optional field map in ml inference processors #3211
Comments
My understanding: if any of these parameter value is null and
For some model, they may prefer some default value. I remember this should be supported today , for example?
If "query.term.review.value" doesn't exist, will we use |
maybe we can refer to this blueprint when a key is not found, we can refer this setting: inputText:-null
|
still looking for standard json path expression for null default value |
Yeah I like the instant use of optionals like :-null like on the connector level |
Is your feature request related to a problem?
Currently, in ml inference processors, when input_maps are config, those fields are mandatory field to map from ingest document or from search response or from search query. When a field is missing, we will not proceed with predictions.
What solution would you like?
we can make an enhancement, to give a default value in the model_config, then we can check even though a field is not present in the query body, but there is default value in model_config, we can still proceed forward with prediction.
for example:
What alternatives have you considered?
TBD
Do you have any additional context?
The text was updated successfully, but these errors were encountered: