CoolFace
Datasetpublic

hakari-bench/NanoR2MED

NanoR2MED This dataset is a Nano-style retrieval dataset for HAKARI-bench. NanoR2MED contains 8 Nano retrieval splits derived from R2MED. Each split keeps up to 200 eligible queries and up to 10000 corpus documents, with exact duplicate query and document text removed where the generator records that policy. Usage from datasets import load_dataset dataset_id = "hakari-bench/NanoR2MED" split = "NanoR2MEDBioinformatics" queries = load_dataset(dataset_id, "queries"… See the full description on the dataset page: https://huggingface.co/datasets/hakari-bench/NanoR2MED.

sourceHugging Faceupdated 4mo agoView on Hugging Face
0likes318downloads
Dataset Card

NanoR2MED

This dataset is a Nano-style retrieval dataset for HAKARI-bench.

NanoR2MED contains 8 Nano retrieval splits derived from R2MED. Each split keeps up to 200 eligible queries and up to 10000 corpus documents, with exact duplicate query and document text removed where the generator records that policy.

Usage

python
from datasets import load_dataset

dataset_id = "hakari-bench/NanoR2MED"
split = "NanoR2MEDBioinformatics"

queries = load_dataset(dataset_id, "queries", split=split)
corpus = load_dataset(dataset_id, "corpus", split=split)
qrels = load_dataset(dataset_id, "qrels", split=split)
reranking_candidates = load_dataset(dataset_id, "reranking_hybrid", split=split)

Data Layout

This dataset uses six Hugging Face Datasets configs:

  • —corpus: documents with _id and text
  • —queries: queries with _id and text
  • —qrels: positive relevance labels with query-id and corpus-id
  • —bm25: BM25 candidate lists with query-id and corpus-ids
  • —harrier_oss_v1_270m: dense candidate lists from microsoft/harrier-oss-v1-270m
  • —reranking_hybrid: RRF candidate lists built from bm25 and harrier_oss_v1_270m

Each config has the same Nano split names.

Candidate Construction

  • —bm25: local BM25 top-500 with automatic language-aware tokenization. The resolved tokenizer is shown in the Candidate Quality table, for example wordseg@ja.
  • —harrier_oss_v1_270m: dense top-500 from microsoft/harrier-oss-v1-270m. In tables this is shown as Dense; Dense means microsoft/harrier-oss-v1-270m with the web_search_query prompt for queries and cosine similarity over normalized embeddings.
  • —reranking_hybrid: RRF over bm25 and harrier_oss_v1_270m using rrf_k=100, keeping the RRF top-100.

Safeguard means rank 101 is appended only when RRF top-100 contains no qrels-positive document.

Split Statistics

Length statistics are character counts computed with len(str(text)).

Nano splitQueriesCorpusQrelsQuery chars avgQuery chars p50Query chars p75Doc chars avgDoc chars p50Doc chars p75
NanoR2MEDBioinformatics7710000226890.3727.01016.0666.8679.0798.0
NanoR2MEDBiology10310000374523.0440.0627.5474.1397.0556.0
NanoR2MEDIIYiClinical129100004572584.12523.03306.05042.34280.56809.5
NanoR2MEDMedQADiag11810000522706.7630.0884.0791.4882.0989.0
NanoR2MEDMedXpertQAExam9710000292928.4879.01086.0723.9767.0922.0
NanoR2MEDMedicalSciences8810000244477.6378.0596.8678.6679.0801.0
NanoR2MEDPMCClinical11410000248827.7832.0956.82103.52131.02724.0
NanoR2MEDPMCTreatment150100003151755.81750.51980.8726.6608.0928.0

Candidate Quality

nDCG@10 and Recall@100 are computed from the included candidate rankings against the included qrels, then reported as 0-100 scores such as 52.45. Recall@100 uses only the top 100 candidates; an optional rank-101 safeguard positive is not counted in Recall@100.

Dense means microsoft/harrier-oss-v1-270m with the web_search_query prompt and cosine similarity.

Nano splitBM25 tokenizerBM25 nDCG@10Dense nDCG@10Hybrid nDCG@10BM25 Recall@100Dense Recall@100Hybrid Recall@100Hybrid candidatesSafeguard positives
Mean-20.9430.0728.8255.1168.4670.40-122
NanoR2MEDBioinformaticsenglishporterstop21.8934.2526.2367.3475.9280.48100-1016
NanoR2MEDBiologyenglishporterstop34.5549.5347.2270.5682.5785.61100-1013
NanoR2MEDIIYiClinicalenglishporterstop14.8218.7019.7547.3066.1567.21100-10114
NanoR2MEDMedQADiagenglishporterstop7.0012.5414.0625.1046.7442.14100-10134
NanoR2MEDMedXpertQAExamenglishporterstop2.7715.999.7919.9447.0943.55100-10133
NanoR2MEDMedicalSciencesenglishporterstop21.4035.6733.2074.8685.6185.66100-1013
NanoR2MEDPMCClinicalenglishporterstop39.3335.8444.7781.5876.6186.48100-1016
NanoR2MEDPMCTreatmentenglishporterstop25.8038.0135.5554.1866.9772.04100-10123

Hybrid Safeguard Summary

  • —Safeguard positives: 122
  • —Rows limited by corpus size: 0
  • —Metadata file: reranking_hybrid_metadata.json

Source Links

  • —Source benchmark: R2MED
  • —R2MED/Bioinformatics: https://huggingface.co/datasets/R2MED/Bioinformatics
  • —R2MED/Biology: https://huggingface.co/datasets/R2MED/Biology
  • —R2MED/IIYi-Clinical: https://huggingface.co/datasets/R2MED/IIYi-Clinical
  • —R2MED/MedQA-Diag: https://huggingface.co/datasets/R2MED/MedQA-Diag
  • —R2MED/MedXpertQA-Exam: https://huggingface.co/datasets/R2MED/MedXpertQA-Exam
  • —R2MED/Medical-Sciences: https://huggingface.co/datasets/R2MED/Medical-Sciences
  • —R2MED/PMC-Clinical: https://huggingface.co/datasets/R2MED/PMC-Clinical
  • —R2MED/PMC-Treatment: https://huggingface.co/datasets/R2MED/PMC-Treatment

License

NanoR2MED is a derived dataset. Users must comply with the licenses, terms, and attribution requirements of the upstream datasets and benchmarks.