Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

How do I use pre-searched datasets in Rankify?

2025-08-28 1.4 K
Link directMobile View
qrcode

preliminary

Rankify provides 40 pre-retrieved datasets that can be downloaded and used from the Hugging Face platform.

Detailed steps for use

1. Module for importing data sets

from rankify.dataset.dataset import Dataset

2. Checking available data sets

View all preset datasets:

Dataset.available_dataset()

3. Downloading data sets

Take the BM25 retriever and the nq-dev dataset as an example:

dataset = Dataset(retriever="bm25", dataset_name="nq-dev", n_docs=100)
documents = dataset.download(force_download=False)

4. Loading local data sets

If there is already a downloaded dataset file:

documents = Dataset.load_dataset('./bm25_nq_dev.json', 100)

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top