How to use contextboxai/halong_embedding with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("contextboxai/halong_embedding") sentences = [ "Bóng đá có lợi ích gì cho sức khỏe?", "Bóng đá giúp cải thiện sức khỏe tim mạch và tăng cường sức bền.", "Bóng đá là môn thể thao phổ biến nhất thế giới.", "Bóng đá có thể giúp bạn kết nối với nhiều người hơn." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]
The community tab is the place to discuss and collaborate with the HF community!