Sentence Similarity
sentence-transformers
Safetensors
English
modernbert
feature-extraction
Generated from Trainer
dataset_size:46
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use Jonuu/LawyerAI1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Jonuu/LawyerAI1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Jonuu/LawyerAI1") sentences = [ "Medical science is the application of scientific principles to the study and practice of medicine. It has transformed medicine by providing a deeper understanding of the human body at the cellular and molecular levels, allowing for more effective treatments and interventions. Medical science has enabled us to develop new treatments, understand the causes of diseases, and improve patient outcomes. It's had a profound impact on the way medicine is practiced today.", "I was reading about health and wellness, and I came across the term \"quackery.\" What is quackery in the context of medicine?", "That's really interesting. What is medical science, and how has it impacted the practice of medicine?", "That's helpful to know. What is the primary purpose of a physical examination in medicine, anyway?" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Ctrl+K