Skip to content

Cross-encoder and MTEB reranking tasks #1213

Answered by orionw
qiisziilbash asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@orionw
Comment options

Answer selected by qiisziilbash
Comment options

You must be logged in to vote
5 replies
@orionw
Comment options

@qiisziilbash
Comment options

@orionw
Comment options

@KennethEnevoldsen
Comment options

@orionw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants