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
553 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 9 commits
zhichao-geng's picture
zhichao-geng
Update README.md
1646fef verified 10 months ago
  • document_1_SpladePooling
    sentence_transformers_support (#1) 11 months ago
  • query_0_SparseStaticEmbedding
    update max length 11 months ago
  • .gitattributes
    1.52 kB
    initial commit 11 months ago
  • README.md
    12 kB
    Update README.md 10 months ago
  • config.json
    1.41 kB
    Add file & weights 11 months ago
  • config_sentence_transformers.json
    274 Bytes
    sentence_transformers_support (#1) 11 months ago
  • idf.json
    889 kB
    Add file & weights 11 months ago
  • model.safetensors
    550 MB
    xet
    Add file & weights 11 months ago
  • modules.json
    108 Bytes
    sentence_transformers_support (#1) 11 months ago
  • query_token_weights.txt
    740 kB
    Add file & weights 11 months ago
  • router_config.json
    638 Bytes
    sentence_transformers_support (#1) 11 months ago
  • sentence_bert_config.json
    58 Bytes
    update max length 11 months ago
  • special_tokens_map.json
    125 Bytes
    Add file & weights 11 months ago
  • tokenizer.json
    712 kB
    update max length 11 months ago
  • tokenizer_config.json
    1.2 kB
    Update tokenizer_config.json 11 months ago
  • vocab.txt
    232 kB
    Add file & weights 11 months ago