File size: 196 Bytes
a51f85c
 
 
 
 
 
1
2
3
4
5
6
from sentence_transformers import SentenceTransformer

encoder = SentenceTransformer(
    "jinaai/jina-embeddings-v2-base-en", # switch to en/zh for English or Chinese
    trust_remote_code=True
)