Splade-Index
This is an index created with the splade-index library (version 0.1.2
)
Installation
You can install the splade-index
library with pip
:
pip install "splade-index==0.1.2"
# Include extra dependencies like stemmer
pip install "splade-index[full]==0.1.2"
# For huggingface hub usage
pip install huggingface_hub
Load this Index
You can use the following code to load this SPLADE index from Hugging Face hub:
import os
from sentence_transformers import SparseEncoder
from splade_index import SPLADE
# Download the SPLADE model that was used to create the index from the HuggingFace Hub
model_id = "rasyosef/splade-mini" # The SPLADE model id
model = SparseEncoder(model_id)
repo_id = "rasyosef/msmarco_dev_1M_splade_index"
# Load a SPLADE index from the Hugging Face model hub
retriever = SPLADE.load_from_hub(repo_id, model=model)
Stats
This dataset was created using the following data:
Statistic | Value |
---|---|
Number of documents | 980853 |
Number of tokens | 180385384 |
Average tokens per document | 183.91 |
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
๐
Ask for provider support