Upload folder using huggingface_hub e795cda verified
TitanML Co commited on
How to use TitanML/jina-v2-base-en-embed with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("TitanML/jina-v2-base-en-embed", trust_remote_code=True)
sentences = [
"The weather is lovely today.",
"It's so sunny outside!",
"He drove to the stadium."
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]