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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

dhruvsangani
/
semantic-search

Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:223
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use dhruvsangani/semantic-search with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use dhruvsangani/semantic-search with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("dhruvsangani/semantic-search")
    
    sentences = [
        "What is AI?",
        "Mobile Phones have become an integral part of a person's life. He spends 80% of his mobile surfing time on Apps. Hence, with Enterprise Mobility, you can connect with your customers better, engage them, and build loyalty with them.",
        "AI is that part of Computer Science which replicates the human intelligence and automates this behavior. By making use of artificial artifacts simulations, AI executes its software programs on a computer.",
        "1) Security Training  2) Data Privacy 3) Infrastructure 4) Security Audits"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
semantic-search
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
dhruvsangani's picture
dhruvsangani
Add new SentenceTransformer model
a66c284 verified about 1 year ago
  • 1_Pooling
    Add new SentenceTransformer model about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    16.2 kB
    Add new SentenceTransformer model about 1 year ago
  • config.json
    617 Bytes
    Add new SentenceTransformer model about 1 year ago
  • config_sentence_transformers.json
    205 Bytes
    Add new SentenceTransformer model about 1 year ago
  • model.safetensors
    90.9 MB
    xet
    Add new SentenceTransformer model about 1 year ago
  • modules.json
    349 Bytes
    Add new SentenceTransformer model about 1 year ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model about 1 year ago
  • special_tokens_map.json
    695 Bytes
    Add new SentenceTransformer model about 1 year ago
  • tokenizer.json
    712 kB
    Add new SentenceTransformer model about 1 year ago
  • tokenizer_config.json
    1.46 kB
    Add new SentenceTransformer model about 1 year ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model about 1 year ago