-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 Request] Introduce a rescore search response processor #15631
Comments
tagging @msfroh @martin-gaievski |
Makes sense -- if a field was added by response processor, the only way that you can really do something with it (before sending back to the client) is with another response processor. With the ever-present "naming is hard" challenge, I'm not sure I like the name |
In theory, if we really wanted to get into the "do one thing" philosophy for search processors, then we could use the Similarly/alternatively, we could add a |
there is a sort response processor already, but it's sorting a array field in the document. yep, naming is hard. |
Hey y'all, I would like to work on this feature! I like Rescore since its taking a already scored value e.g. I have some questions I want to bring to the table:
|
Adding this META GH enhancement for ML Inference |
I did some research and I think we might be able to leave out the sorting functionality as there exists a sort results functionality within OS core you can see here , this feature allows you to search within the search hits. In essence this allows you to define a search pipeline with the rescore processor and then after you are done you could sort by the Here is an example
|
Good that you found out the sort function in the query. The intention for rescore and sort is that the new score (rather than BM25 score) is added during the search response processors, then we can utilize the new score field (which not exists in the document either) then rescore processor can be helpful for ranking the hits and replace the scores. |
After discussing (offline) we have some suggestions to this processor
|
@brianf-aws / @mingshl can this be resolved? |
Yes we can close it as this was implemented here opensearch-project/neural-search#932 |
Is your feature request related to a problem? Please describe
When a field with score is added by a response processor, we try to sort the response by the added field.
in the search response, there are multiple documents in hits. a rescore search response processor can take the score from a field from the document, and sort the search hits based on the field value. Users can opt to remove the field in the documents.
Describe the solution you'd like
The proposed solution as follows:
for example:
the response after processing:
Related component
Search
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: