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

answerdotai
/
answerai-colbert-small-v1

sentence-transformers
ONNX
Safetensors
English
bert
ColBERT
multi-vector
RAGatouille
passage-retrieval
Model card Files Files and versions
xet
Community
17

Instructions to use answerdotai/answerai-colbert-small-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use answerdotai/answerai-colbert-small-v1 with sentence-transformers:

    from sentence_transformers import MultiVectorEncoder
    
    model = MultiVectorEncoder("answerdotai/answerai-colbert-small-v1")
    
    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
answerai-colbert-small-v1
861 MB
Ctrl+K
Ctrl+K
  • 6 contributors
History: 25 commits
nbroad's picture
nbroad
minor typo
715cb9f verified about 2 years ago
  • 0_Transformer
    Add sentence transformers packages for pylate support about 2 years ago
  • 1_Dense
    Add sentence transformers packages for pylate support about 2 years ago
  • onnx
    Upload HF-compatible ONNX weights (+ quantizations) (#3) about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    6.72 kB
    minor typo about 2 years ago
  • artifact.metadata
    2.22 kB
    Upload artifact.metadata about 2 years ago
  • config.json
    702 Bytes
    Upload config.json about 2 years ago
  • config_sentence_transformers.json
    674 Bytes
    Add sentence transformers packages for pylate support about 2 years ago
  • model.safetensors
    134 MB
    xet
    Upload model.safetensors about 2 years ago
  • modules.json
    223 Bytes
    Add sentence transformers packages for pylate support about 2 years ago
  • special_tokens_map.json
    695 Bytes
    Upload special_tokens_map.json about 2 years ago
  • tokenizer.json
    711 kB
    Upload tokenizer.json about 2 years ago
  • tokenizer_config.json
    1.24 kB
    Upload tokenizer_config.json about 2 years ago
  • vespa_colbert.onnx
    133 MB
    xet
    Upload vespa_colbert.onnx with huggingface_hub about 2 years ago
  • vocab.txt
    232 kB
    Upload vocab.txt about 2 years ago