Sentence Similarity
sentence-transformers
Safetensors
English
modernbert
feature-extraction
dense
Generated from Trainer
dataset_size:222490215
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use thebajajra/RexBERT-base-embed-pf-v0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use thebajajra/RexBERT-base-embed-pf-v0.1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("thebajajra/RexBERT-base-embed-pf-v0.1") sentences = [ "Can I bring Katana (Samurai Sword) from Japan to Malaysia?", "I've seen the j hook method and binder method on here, but I was looking for something a little cheaper. I need to hang 100 empty record sleeves on a wall for a photoshoot and couldn't think of anything other than command strips. I'd use magic tape but I hear that it rips paper. I also need to hang them on cement", "Hi all, \n\nWith the success of GoT, and with the upcoming QoT, LoTR and The Witcher series, I was wondering which fantasy books you thought would translate well to TV. \n\nI think The Traitor Baru Cormorant would be great, as well as Farseer. My heart also wants me to believe Malazan would be good, but the CGI budget would likely need to be ridiculous.", "Hi everyone, currently I'm at Japan and thinking of buying a Katana (Samurai Sword) and bring it back to Malaysia. How do you guys/girls reckon? Will i pass through japanese and malaysian customs without a problem?" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Ctrl+K