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
895 MB
Ctrl+K
Ctrl+K
  • 6 contributors
History: 32 commits
tomaarsen's picture
tomaarsen HF Staff
Make each Usage integration self-contained (own install), drop the shared Installation section
b635d23 verified about 2 months 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
    7.79 kB
    Make each Usage integration self-contained (own install), drop the shared Installation section about 2 months ago
  • artifact.metadata
    2.22 kB
    Upload artifact.metadata about 2 years ago
  • config.json
    702 Bytes
    Upload config.json about 2 years ago
  • model.onnx
    133 MB
    xet
    colgrep_onnx (#17) 8 months ago
  • model.safetensors
    134 MB
    xet
    Upload model.safetensors about 2 years ago
  • model_int8.onnx
    33.9 MB
    xet
    colgrep_onnx (#17) 8 months ago
  • onnx_config.json
    767 Bytes
    colgrep_onnx (#17) 8 months 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