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

topk-io
/
topk-embed-v1-small

Feature Extraction
sentence-transformers
Safetensors
topk_embed
image-text-to-text
multi-vector
retrieval
custom_code
late-interaction
Model card Files Files and versions
xet
Community

Instructions to use topk-io/topk-embed-v1-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use topk-io/topk-embed-v1-small with sentence-transformers:

    from sentence_transformers import MultiVectorEncoder
    
    model = MultiVectorEncoder("topk-io/topk-embed-v1-small", 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
topk-embed-v1-small
4.46 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 4 commits
matospiso's picture
matospiso
Update README.md
e54485e verified about 2 months ago
  • .gitattributes
    1.72 kB
    topk-embed-v1-small 2 months ago
  • README.md
    14.3 kB
    Update README.md about 2 months ago
  • chat_template.jinja
    7.76 kB
    topk-embed-v1-small 2 months ago
  • config.json
    3.15 kB
    topk-embed-v1-small 2 months ago
  • config_sentence_transformers.json
    123 Bytes
    maxsim -> MaxSim about 2 months ago
  • hf_backbone.py
    9.2 kB
    topk-embed-v1-small 2 months ago
  • model.safetensors
    4.43 GB
    xet
    topk-embed-v1-small 2 months ago
  • modeling_topk_embed.py
    3.35 kB
    topk-embed-v1-small 2 months ago
  • modules.json
    108 Bytes
    topk-embed-v1-small 2 months ago
  • pooling-ndcg.png
    154 kB
    xet
    topk-embed-v1-small 2 months ago
  • pooling-recall.png
    147 kB
    xet
    topk-embed-v1-small 2 months ago
  • processor_config.json
    1.19 kB
    topk-embed-v1-small 2 months ago
  • requirements.txt
    161 Bytes
    topk-embed-v1-small 2 months ago
  • sentence_bert_config.json
    384 Bytes
    topk-embed-v1-small 2 months ago
  • tokenizer.json
    20 MB
    xet
    topk-embed-v1-small 2 months ago
  • tokenizer_config.json
    1.2 kB
    topk-embed-v1-small 2 months ago
  • topk_embed_st.py
    11.2 kB
    topk-embed-v1-small 2 months ago