-
Notifications
You must be signed in to change notification settings - Fork 138
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
[BUG] action pre_process_function does not appear to do anything at all #2986
Comments
Had a call with Dave via Slack Huddle. If the model input is array of string, should not add Explained the predict request process:
Suggestions from Dave: we should enhance the validation. Document not clear, so thought the pre process function will be invoked first. |
Create another issue for enhancing validation part #2993 |
(closing) |
What is the bug?
It seems that regardless of what I say in my model definition's action section regarding pre_process_function, the effect is the same - no effect at all. In fact I have been unable to get anything to error out when I assign garbage to the property; it is as if it's simply not being used.
How can one reproduce the bug?
(You will note that it happily takes this input and registers the model despite the pre_process_function being meaningless)
a)
--- This works for me but only because nothing is trying to coerce the input string into an array
b)
--- This does not work for me - once it's in array format the framework complains that it has generated invalid json
c)
--- This does not work for me - once it's in array format the framework complains that it has generated invalid json
What is the expected behavior?
I expect a few things to be different:
What is your host/environment?
Do you have any screenshots?
Here is what I see on the receiving end when I run 5)a)
When I run one of the queries that attempts to coerce an array, the transaction never actually leaves opensearch; instead I see this:
Do you have any additional context?
Note that I have been attempting to fix this for more than a day, not realizing until just now that regardless of what I try in the pre_process_function nothing works because nothing appears to even be looking at or referring to that function.
Once I figured that out I tried deleting and re-registering the model - no difference. I have tried quite a large number of things over the last day or day and a half - I've gotten two types of results from this:
The text was updated successfully, but these errors were encountered: