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

  • Log In
  • Sign Up

opensearch-project
/
opensearch-neural-sparse-encoding-doc-v3-distill

Feature Extraction
sentence-transformers
Safetensors
Transformers
English
distilbert
fill-mask
learned sparse
opensearch
retrieval
passage-retrieval
document-expansion
bag-of-words
sparse-encoder
sparse
asymmetric
inference-free
splade
text-embeddings-inference
Model card Files Files and versions
xet
Community
3

Instructions to use opensearch-project/opensearch-neural-sparse-encoding-doc-v3-distill with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use opensearch-project/opensearch-neural-sparse-encoding-doc-v3-distill with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("opensearch-project/opensearch-neural-sparse-encoding-doc-v3-distill")
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Transformers

    How to use opensearch-project/opensearch-neural-sparse-encoding-doc-v3-distill with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="opensearch-project/opensearch-neural-sparse-encoding-doc-v3-distill")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMaskedLM
    
    tokenizer = AutoTokenizer.from_pretrained("opensearch-project/opensearch-neural-sparse-encoding-doc-v3-distill")
    model = AutoModelForMaskedLM.from_pretrained("opensearch-project/opensearch-neural-sparse-encoding-doc-v3-distill")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
opensearch-neural-sparse-encoding-doc-v3-distill
272 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 7 commits
zhichao-geng's picture
zhichao-geng
sentence_transformers_support (#3)
babf71f verified 10 months ago
  • document_1_SpladePooling
    sentence_transformers_support (#3) 10 months ago
  • query_0_SparseStaticEmbedding
    sentence_transformers_support (#3) 10 months ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    12 kB
    sentence_transformers_support (#3) 10 months ago
  • config.json
    596 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • config_sentence_transformers.json
    274 Bytes
    sentence_transformers_support (#3) 10 months ago
  • idf.json
    889 kB
    Upload folder using huggingface_hub about 1 year ago
  • model.safetensors
    268 MB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • modules.json
    108 Bytes
    sentence_transformers_support (#3) 10 months ago
  • query_token_weights.txt
    740 kB
    Upload folder using huggingface_hub about 1 year ago
  • router_config.json
    638 Bytes
    sentence_transformers_support (#3) 10 months ago
  • special_tokens_map.json
    125 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer.json
    712 kB
    Updated tokenizer config max length about 1 year ago
  • tokenizer_config.json
    1.2 kB
    Upload folder using huggingface_hub about 1 year ago
  • vocab.txt
    232 kB
    Upload folder using huggingface_hub about 1 year ago