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

intfloat
/
e5-small-unsupervised

Sentence Similarity
sentence-transformers
PyTorch
Safetensors
English
bert
Sentence Transformers
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

Instructions to use intfloat/e5-small-unsupervised with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use intfloat/e5-small-unsupervised with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("intfloat/e5-small-unsupervised")
    
    sentences = [
        "That is a happy person",
        "That is a happy dog",
        "That is a very happy person",
        "Today is a sunny day"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
e5-small-unsupervised
1.48 kB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
intfloat's picture
intfloat
initial commit
68e88fd over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago