Skip to content
Discussion options

You must be logged in to vote

Hi there! Thank you for your interest.

Short answer is this is currently not (yet) supported in that the FeatureExtractionPipeline is designed for (sentence) embedding, e.g. like all-miniLM from sentence transformers, not reranking (i.e. cross encoder) models like the Jina one (which rerank rather than producing embeddings).

Implementing cross encoders for hugot should not be hard however, it amounts to basically converting the logic of the AutoModelForSequenceClassification huggingface AutoModel to replicate what they do e.g. here https://huggingface.co/jinaai/jina-reranker-v1-tiny-en in the huggingface transformers approach, creating a new pipelineType like e.g. CrossEncoderPipeline.

We…

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@riccardopinosio
Comment options

@Hoekz
Comment options

@riccardopinosio
Comment options

@Hoekz
Comment options

@riccardopinosio
Comment options

Answer selected by Bornholm
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