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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

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

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

Instructions to use opensearch-project/opensearch-neural-sparse-encoding-doc-v3-gte 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-gte with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("opensearch-project/opensearch-neural-sparse-encoding-doc-v3-gte", trust_remote_code=True)
    
    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-gte 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-gte", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModelForMaskedLM
    model = AutoModelForMaskedLM.from_pretrained("opensearch-project/opensearch-neural-sparse-encoding-doc-v3-gte", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
opensearch-neural-sparse-encoding-doc-v3-gte / query_0_SparseStaticEmbedding
1.07 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
zhichao-geng's picture
zhichao-geng
update max length
7b838cb 11 months ago
  • config.json
    23 Bytes
    sentence_transformers_support (#1) 11 months ago
  • model.safetensors
    122 kB
    xet
    sentence_transformers_support (#1) 11 months ago
  • special_tokens_map.json
    695 Bytes
    sentence_transformers_support (#1) 11 months ago
  • tokenizer.json
    712 kB
    update max length 11 months ago
  • tokenizer_config.json
    1.42 kB
    update max length 11 months ago
  • vocab.txt
    232 kB
    sentence_transformers_support (#1) 11 months ago