Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

NeuML
/
pubmedbert-base-colbert

Sentence Similarity
Safetensors
sentence-transformers
English
PyLate
bert
ColBERT
feature-extraction
Generated from Trainer
loss:Contrastive
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use NeuML/pubmedbert-base-colbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use NeuML/pubmedbert-base-colbert with sentence-transformers:

    from pylate import models
    
    queries = [
        "Which planet is known as the Red Planet?",
        "What is the largest planet in our solar system?",
    ]
    
    documents = [
        ["Mars is the Red Planet.", "Venus is Earth's twin."],
        ["Jupiter is the largest planet.", "Saturn has rings."],
    ]
    
    model = models.ColBERT(model_name_or_path="NeuML/pubmedbert-base-colbert")
    
    queries_emb = model.encode(queries, is_query=True)
    docs_emb = model.encode(documents, is_query=False)
  • Notebooks
  • Google Colab
  • Kaggle
pubmedbert-base-colbert / eval
3.79 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
davidmezzetti's picture
davidmezzetti
Upload model
8f83317 8 months ago
  • triplet_evaluation_results.csv
    3.79 kB
    Upload model 8 months ago