Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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-colbert-v2

sentence-transformers
ONNX
Safetensors
ColBERT
multi-vector
passage-retrieval
custom_code
🇪🇺 Region: EU
Model card Files Files and versions
xet
Community
22

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

  • Libraries
  • sentence-transformers

    How to use jinaai/jina-colbert-v2 with sentence-transformers:

    from sentence_transformers import MultiVectorEncoder
    
    model = MultiVectorEncoder("jinaai/jina-colbert-v2", trust_remote_code=True)
    
    queries = ["Which planet is known as the Red Planet?"]
    documents = [
    	"Venus is often called Earth's twin because of its similar size and proximity.",
    	"Mars, known for its reddish appearance, is often referred to as the Red Planet.",
    	"Jupiter, the largest planet in our solar system, has a prominent red spot.",
    ]
    
    query_embeddings = model.encode_query(queries)
    document_embeddings = model.encode_document(documents)
    
    similarities = model.similarity(query_embeddings, document_embeddings)
    print(similarities)
  • Notebooks
  • Google Colab
  • Kaggle
jina-colbert-v2
3.37 GB
Ctrl+K
Ctrl+K
  • 10 contributors
History: 27 commits
michael-guenther's picture
michael-guenther
tomaarsen's picture
tomaarsen HF Staff
Add Sentence Transformers usage (#22)
a9dc5cd 3 months ago
  • onnx
    fix: onnx linear layer (#11) about 2 years ago
  • .gitattributes
    1.73 kB
    Update ONNX weights (#10) about 2 years ago
  • README.md
    13.2 kB
    Add Sentence Transformers usage (#22) 3 months ago
  • artifact.metadata
    1.22 kB
    feat: revert the mask padding default setting about 2 years ago
  • config.json
    1.58 kB
    initial model upload over 2 years ago
  • model.safetensors
    1.12 GB
    xet
    initial model upload over 2 years ago
  • special_tokens_map.json
    1.3 kB
    initial model upload over 2 years ago
  • tokenizer.json
    17.1 MB
    xet
    initial model upload over 2 years ago
  • tokenizer_config.json
    1.59 kB
    initial model upload over 2 years ago