We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
FlashRankRanker
The ranking produced by FlashRankRanker is incorrect. It returns the documents in input order.
This statement in flashrank_ranker.py1
flashrank_ranker.py
ranked_results = [ Result( document=docs[idx], # Returns documents in input order. score=result["score"], rank=idx + 1, ) for idx, result in enumerate(flashrank_results) ]
should be:
ranked_results = [ Result( document=docs[result["id"]], # Returns reranked documents. score=result["score"], rank=idx + 1, ) for idx, result in enumerate(flashrank_results) ]
https://github.com/AnswerDotAI/rerankers/blob/c5b2c19e7a84fc4c4dd3f31dea934297ce4b7bb1/rerankers/models/flashrank_ranker.py#L48 ↩
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The ranking produced by
FlashRankRanker
is incorrect. It returns the documents in input order.This statement in
flashrank_ranker.py
1should be:
Footnotes
https://github.com/AnswerDotAI/rerankers/blob/c5b2c19e7a84fc4c4dd3f31dea934297ce4b7bb1/rerankers/models/flashrank_ranker.py#L48 ↩
The text was updated successfully, but these errors were encountered: