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 / onnx
460 MB
Ctrl+K
Ctrl+K
  • 6 contributors
History: 1 commit
bclavie's picture
bclavie
Xenova's picture
Xenova HF Staff
Upload HF-compatible ONNX weights (+ quantizations) (#3)
27ea3d1 verified about 2 years ago
  • model.onnx
    133 MB
    xet
    Upload HF-compatible ONNX weights (+ quantizations) (#3) about 2 years ago
  • model_bnb4.onnx
    60.2 MB
    xet
    Upload HF-compatible ONNX weights (+ quantizations) (#3) about 2 years ago
  • model_fp16.onnx
    66.7 MB
    xet
    Upload HF-compatible ONNX weights (+ quantizations) (#3) about 2 years ago
  • model_int8.onnx
    34 MB
    xet
    Upload HF-compatible ONNX weights (+ quantizations) (#3) about 2 years ago
  • model_q4.onnx
    61.5 MB
    xet
    Upload HF-compatible ONNX weights (+ quantizations) (#3) about 2 years ago
  • model_q4f16.onnx
    36.2 MB
    xet
    Upload HF-compatible ONNX weights (+ quantizations) (#3) about 2 years ago
  • model_quantized.onnx
    34 MB
    xet
    Upload HF-compatible ONNX weights (+ quantizations) (#3) about 2 years ago
  • model_uint8.onnx
    34 MB
    xet
    Upload HF-compatible ONNX weights (+ quantizations) (#3) about 2 years ago