Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Jonuu
/
LawyerAI1

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
Model card Files Files and versions
xet
Community

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
LawyerAI1
600 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
Jonuu's picture
Jonuu
Add new SentenceTransformer model
9577913 verified over 1 year ago
  • 1_Pooling
    Add new SentenceTransformer model over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    28.5 kB
    Add new SentenceTransformer model over 1 year ago
  • config.json
    1.3 kB
    Add new SentenceTransformer model over 1 year ago
  • config_sentence_transformers.json
    205 Bytes
    Add new SentenceTransformer model over 1 year ago
  • model.safetensors
    596 MB
    xet
    Add new SentenceTransformer model over 1 year ago
  • modules.json
    349 Bytes
    Add new SentenceTransformer model over 1 year ago
  • sentence_bert_config.json
    54 Bytes
    Add new SentenceTransformer model over 1 year ago
  • special_tokens_map.json
    694 Bytes
    Add new SentenceTransformer model over 1 year ago
  • tokenizer.json
    3.58 MB
    Add new SentenceTransformer model over 1 year ago
  • tokenizer_config.json
    20.8 kB
    Add new SentenceTransformer model over 1 year ago