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

jinaai
/
jina-embeddings-v2-small-en

Feature Extraction
sentence-transformers
PyTorch
Core ML
ONNX
Safetensors
English
bert
sentence-similarity
mteb
custom_code
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community
22

Instructions to use jinaai/jina-embeddings-v2-small-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use jinaai/jina-embeddings-v2-small-en with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("jinaai/jina-embeddings-v2-small-en", trust_remote_code=True)
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Deployment on Sagemaker endpoints without network connectivity

#22 opened over 1 year ago by
CoolFish88

Using jinaai/jina-embeddings-v2-small-en crashes due to OOM whereas using BAAI/bge-small-en-v1.5 works on the same machine

#21 opened over 1 year ago by
LakshyAAAgrawal

What is missing from my mental model about semantics and this embedding model?

4
#20 opened almost 2 years ago by
xhrud

Trust remote code = True, even for fine-tuned local model?

4
#19 opened almost 2 years ago by
eMbeddr

Update README.md

#18 opened over 2 years ago by
bwang0911
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs