-
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
[FEATURE] Enhance ML Inference Search Request Processor to carry over the query metadata fields. #2841
Comments
I think that would be a very useful feature and would love to see that implemented. I'm currently trying to use the For context, I specify the hybrid search query together with the
Calling it returns a hitlist with scores that are not normalized.
Response:
Or am I missing something? When the hybrid search query is part of the |
@wrigleyDan this is a pretty complicated use case, you create a search pipeline that has a ml inference request processor and a request neural_query_enricher, this should be fine. But within the ml inference request processor, you also rewrite the query with a inner search pipeline that has a normalization-processor which is a phase_results_processor. I have to debug a bit and see within ml inference request processor to confirm if the inner pipeline is created. I am not sure about this point. can you tell me what model you are using ? provide me one dummy document so I can reproduce your case. |
@mingshl thanks for getting back to me! FYI: I opened a feature request today and briefly discussed it in today's search community meeting: opensearch-project/OpenSearch#16775 (comment) Seems like there is path moving forward which is referenced in the comments. |
Is your feature request related to a problem?
Currently, when rewriting query type in ML Inference Search Request Processor, users can build up a new query using
query_template
parameters when configuring the processor. For example, rewriting neural search query into knn query.However, the query meta fields in search request request body will be ignored.
For example, configuring a ML Inference Search Request Processor with a cohere embedding model, cohere.ai/v1/embed, as below:
common use case to call query with query string:
and it will rewrite to
However, if I add the meta datafield
_source
in search request body, for example,It will still rewrite the same knn query and the meta datafield
_source
will be ignoredWhat solution would you like?
Maybe try to add a parameter to opt in carry over query field other than query string, including _source, sort, search_after, etc.
What alternatives have you considered?
A clear and concise description of any alternative solutions or features you've considered.
Do you have any additional context?
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: