-
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] post_process_function on rerank_pipeline_with_bge-rerank-m3-v2_model_deployed_on_Sagemaker.md #3247
Comments
Hi @tkykenmt thanks for making the fix, but more details to the PR would help the community understand the issue better, This is how I interpret your fix if I get this right, previously, the cross encorder model return the model output ordering the highest scores first, but it might cause the mismatch with the document order, for example: sample model response is ordering by the highest score first and rerank the document index num,
and the document was sending to the model in the order of
and the post process function handles the model output following original document index sorting, so the scores are adding to the proper documents. after the new pro-processing function, it will be
please correct me if I get this wrong |
Hi @mingshl, thank you for clarification. My intention is as follows. sample model response is ordering by the highest score first and rerank the document index num:
and the document was sending to the model in the order of:
Current post process function also aims to handles the model output following original document index sorting, but reorder logic is incorrect. The logic can generate result with accidentally overwritten another item such as:
After the new pro-processing function, the issue should be fixed and result will be:
|
thanks for the explaination, this helps a lot to understand the issue, can you add this to the issue description as well? Thank you! |
What is the bug?
post_process_function on rerank_pipeline_with_bge-rerank-m3-v2_model_deployed_on_Sagemaker.md has a logic issue which returns inappropriate sorted result. Need to fix with updated code.
https://github.com/opensearch-project/ml-commons/blob/main/docs/tutorials/rerank/rerank_pipeline_with_bge-rerank-m3-v2_model_deployed_on_Sagemaker.md
How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
A clear and concise description of what you expected to happen.
What is your host/environment?
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered: