cLLiMateChat / load_encoder.py
as-cle-bert's picture
Create load_encoder.py
a51f85c verified
raw
history blame
196 Bytes
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
)