[Bug]: The first reranked chunk is incorrect when using the Nvidia reranker model #2552
Closed
1 task done
Labels
bug
Something isn't working
Is there an existing issue for the same bug?
Branch name
v0.11.0
Commit ID
2f33ec7
Other environment information
Actual behavior
The re-ranked chunks are incorrect when using the
nvidia/rerank-qa-mistral-4b
model for reranking. Typically, the second least relevant chunk is mistakenly placed first, while the second chunk (which should be the most relevant) is ranked lower than it should be.Expected behavior
The chunks should be returned in the same order they are received from the Nvidia API endpoint.
Steps to reproduce
Additional information
rerank_model.py
seems to be working correctly, the problem is most likely inrag/nlp/search.py
.The text was updated successfully, but these errors were encountered: