-
Notifications
You must be signed in to change notification settings - Fork 59
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
Fixes NeuralQuery Schema #512
Fixes NeuralQuery Schema #512
Conversation
Signed-off-by: uri.nudelman <uriel.nudelman@offerup.com>
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.
Looks good!
Can we please test/exercise this change similarly to
query_text: Money |
Add to CHANGELOG.
Changes AnalysisCommit SHA: 1e38f88 API ChangesSummary
ReportThe full API changes report is available at: https://github.com/opensearch-project/opensearch-api-specification/actions/runs/10444364681/artifacts/1827424595 API Coverage
|
Signed-off-by: uri.nudelman <uriel.nudelman@offerup.com>
Spec Test Coverage Analysis
|
Signed-off-by: uri.nudelman <uriel.nudelman@offerup.com>
Signed-off-by: uri.nudelman <uriel.nudelman@offerup.com>
Let's ask @navneet1v and try the Is that required to make the API call successfully? I understand it's required to get some search results, but as long as we can exercise the actual change here (fails before this change, passes after this change) we will be able to merge it. |
There is no pretrained model from Opensearch side that can process images as per my knowledge. @martin-gaievski during your testing for neural search do you know any Opensource model you used? or we were always using some closed source models. |
Thanks @kolchfa-aws for pointing us to opensearch-project/ml-commons#2598 |
We used closed source models only |
Thanks everyone for your answers. |
How about writing a negative test that only does search with a model that doesn't exist?
This should respond with a predictable error, but one that's not a validation error for |
|
Signed-off-by: uri.nudelman <uriel.nudelman@offerup.com>
@dblock , added the test case. I'm getting the following response and do not know how to skip the |
@@ -1248,8 +1248,6 @@ components: | |||
type: number | |||
filter: | |||
$ref: '#/components/schemas/QueryContainer' | |||
required: | |||
- model_id |
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.
Is model ID not required? AFAIK it is. What's a valid query without a model ID?
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.
Per documentation, it is required if the default model id is not set. Here is explained how to configure it.
Signed-off-by: uri.nudelman <uriel.nudelman@offerup.com>
@@ -79,10 +79,10 @@ components: | |||
$ref: '#/components/schemas/RootCause' | |||
type: | |||
type: string | |||
example: status_exception | |||
# example: status_exception |
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.
Commented out because fails with strict mode as follows:
Error: strict mode: unknown keyword: "example"
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.
Open an issue for these?
Description
Fixes NeuralQuery definition based on the documentation (and usage of OpenSearch).
Issues Resolved
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.