Cross-encoder and MTEB reranking tasks #1213
-
I tried to use a cross-encoder model (e.g. What am I missing?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
@orionw I believe you are the one most familiar with this |
Beta Was this translation helpful? Give feedback.
-
Thank you so much @orionw |
Beta Was this translation helpful? Give feedback.
Great question @qiisziilbash! Some example code for cross-encoders is here.
I think there could be two issues:
(1) the cross-encoder needs initial results to rerank. If you don't have any, perhaps it's using an initial base embedder to get the first stage results. You can skip this by providing the cross-encoder with
previous_results
path (see the example).The (2)nd issue could be that you doing a Reranking AbstractTask (I assume based on the name). When adding the cross-encoder implementation I only tested it for retrieval -- not all tasks support cross-encoders (e.g. clustering can't, etc.). Obviously reranking would also be a good fit for a cross-encoder. It's quite possible that we'r…