Update modules.json to refer to jinaai Transformer implementation

#1
by tomaarsen HF staff - opened

Hello!

This should fix the Sentence Transformers integration for you:

from sentence_transformers import SentenceTransformer

model = SentenceTransformer(
    "BlackBeenie/jina-embeddings-v3-msmarco-v3-bpr",
    trust_remote_code=True,
    revision="refs/pr/1",
)
embedding = model.encode("What are panda bears?", task="retrieval.query")
print(embedding.shape)
# (1024,)

The revision allows you to test this before merging.

  • Tom Aarsen

Thanks so much!

BlackBeenie changed pull request status to merged

Sign up or log in to comment