Datasets:
Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code: DatasetGenerationError
Exception: CastError
Message: Couldn't cast
document_id: string
document_content: string
parent_id: string
metadata: null
task_split: string
passage_qrels: list<item: struct<id: string, label: double>>
child 0, item: struct<id: string, label: double>
child 0, id: string
child 1, label: double
full_document_qrels: list<item: struct<id: string, label: double>>
child 0, item: struct<id: string, label: double>
child 0, id: string
child 1, label: double
instruction: string
use_max_p: bool
query_content: string
query_id: string
passage_binary_qrels: null
to
{'query_id': Value('string'), 'query_content': Value('string'), 'instruction': Value('string'), 'passage_qrels': List({'id': Value('string'), 'label': Value('float64')}), 'passage_binary_qrels': Value('null'), 'full_document_qrels': List({'id': Value('string'), 'label': Value('float64')}), 'use_max_p': Value('bool'), 'metadata': Value('string'), 'task_split': Value('string')}
because column names don't match
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1872, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 260, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 120, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
document_id: string
document_content: string
parent_id: string
metadata: null
task_split: string
passage_qrels: list<item: struct<id: string, label: double>>
child 0, item: struct<id: string, label: double>
child 0, id: string
child 1, label: double
full_document_qrels: list<item: struct<id: string, label: double>>
child 0, item: struct<id: string, label: double>
child 0, id: string
child 1, label: double
instruction: string
use_max_p: bool
query_content: string
query_id: string
passage_binary_qrels: null
to
{'query_id': Value('string'), 'query_content': Value('string'), 'instruction': Value('string'), 'passage_qrels': List({'id': Value('string'), 'label': Value('float64')}), 'passage_binary_qrels': Value('null'), 'full_document_qrels': List({'id': Value('string'), 'label': Value('float64')}), 'use_max_p': Value('bool'), 'metadata': Value('string'), 'task_split': Value('string')}
because column names don't match
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1347, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 884, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 947, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1739, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1922, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
query_id string | query_content string | instruction string | passage_qrels list | passage_binary_qrels null | full_document_qrels list | use_max_p bool | metadata string | task_split string |
|---|---|---|---|---|---|---|---|---|
2022-15 | An 8-year-old boy is brought to the clinic by his parents because of weakness and difficulty of standing up from a sitting position. The mother is healthy but had a brother who died in his 20th after being disabled and using wheelchairs in the last few years of his life. Physical examination shows 3/5 lower extremity muscle strength and enlarged calf muscles. The other physical examination and vital signs are unremarkable. Muscle biopsy showed absence of dystrophin protein. The patient is diagnosed with DMD. | Given a patient's medical history, find clinical trials that are relevant to them | [
{
"id": "NCT00000524:0",
"label": 0
},
{
"id": "NCT00000619:0",
"label": 0
},
{
"id": "NCT00000619:1",
"label": 0
},
{
"id": "NCT00001165:0",
"label": 0
},
{
"id": "NCT00001165:1",
"label": 0
},
{
"id": "NCT00001332:0",
"label": 0
},
{
"id"... | null | [
{
"id": "NCT00000524",
"label": 0
},
{
"id": "NCT00000619",
"label": 0
},
{
"id": "NCT00001165",
"label": 0
},
{
"id": "NCT00001332",
"label": 0
},
{
"id": "NCT00001421",
"label": 0
},
{
"id": "NCT00001431",
"label": 0
},
{
"id": "NCT000014... | true | {"year": "2022", "query_with_instruction": "Given a patient's medical history, find clinical trials that are relevant to them\nAn 8-year-old boy is brought to the clinic by his parents because of weakness and difficulty of standing up from a sitting position. The mother is healthy but had a brother who died in his 20th after being disabled and using wheelchairs in the last few years of his life. Physical examination shows 3/5 lower extremity muscle strength and enlarged calf muscles. The other physical examination and vital signs are unremarkable. Muscle biopsy showed absence of dystrophin protein. The patient is diagnosed with DMD."} | clinical_trial |
2021-16 | 79 yo F with multifactorial chronic hypoxemia and dyspnea thought due to diastolic CHF, pulmonary hypertension thought secondary to a chronic ASD and COPD on 5L home oxygen admitted with complaints of worsening shortness of breath. Cardiology consult recommended a right heart cath for evaluation of response to sildenafil but the patient refused. Pulmonary consult recommended an empiric, compassionate sildenafil trial due to severe dyspneic symptomology preventing outpatient living, and the patient tolerated an inpatient trial without hypotension. Patient to f/u with pulmonology to start sildenifil chronically as outpatient as prior authorization is obtained.Past Medical History:- Atrial septal defect repair [**6-17**] complicated by sinus arrest with PPM placement.- Diastolic CHF, estimated dry weight of 94kg- Pulm HTN (RSVP 75 in [**11-24**]) thought secondary to longstanding ASD- COPD on home O2 (5L NC) with baseline saturation high 80's to low 90's on this therapy.- OSA, not CPAP compliant- Mild mitral regurgitation- Microcytic anemia- Hypothyroidism- S/p APPY, s/p CCY ('[**33**])- Gallstone pancreatitis s/p ERCP, sphincterotomy- Elevated alk phos secondary to amiodarone | Given a patient's medical history, find clinical trials that are relevant to them | [
{
"id": "NCT00032643:0",
"label": 0
},
{
"id": "NCT00032643:1",
"label": 0
},
{
"id": "NCT00032643:2",
"label": 0
},
{
"id": "NCT00037973:0",
"label": 2
},
{
"id": "NCT00037973:1",
"label": 2
},
{
"id": "NCT00041938:0",
"label": 0
},
{
"id"... | null | [
{
"id": "NCT00032643",
"label": 0
},
{
"id": "NCT00037973",
"label": 2
},
{
"id": "NCT00041938",
"label": 0
},
{
"id": "NCT00043836",
"label": 1
},
{
"id": "NCT00098072",
"label": 0
},
{
"id": "NCT00098488",
"label": 0
},
{
"id": "NCT001024... | true | {"year": "2021", "query_with_instruction": "Given a patient's medical history, find clinical trials that are relevant to them\n79 yo F with multifactorial chronic hypoxemia and dyspnea thought due to diastolic CHF, pulmonary hypertension thought secondary to a chronic ASD and COPD on 5L home oxygen admitted with complaints of worsening shortness of breath. Cardiology consult recommended a right heart cath for evaluation of response to sildenafil but the patient refused. Pulmonary consult recommended an empiric, compassionate sildenafil trial due to severe dyspneic symptomology preventing outpatient living, and the patient tolerated an inpatient trial without hypotension. Patient to f/u with pulmonology to start sildenifil chronically as outpatient as prior authorization is obtained.Past Medical History:- Atrial septal defect repair [**6-17**] complicated by sinus arrest with PPM placement.- Diastolic CHF, estimated dry weight of 94kg- Pulm HTN (RSVP 75 in [**11-24**]) thought secondary to longstanding ASD- COPD on home O2 (5L NC) with baseline saturation high 80's to low 90's on this therapy.- OSA, not CPAP compliant- Mild mitral regurgitation- Microcytic anemia- Hypothyroidism- S/p APPY, s/p CCY ('[**33**])- Gallstone pancreatitis s/p ERCP, sphincterotomy- Elevated alk phos secondary to amiodarone"} | clinical_trial |
2021-4 | "This is a 44 year old female with PMH of PCOS, Obesity, HTN who presented with symptoms of cholecys(...TRUNCATED) | Given a patient's medical history, find clinical trials that are relevant to them | [{"id":"NCT00000776:0","label":0.0},{"id":"NCT00000776:1","label":0.0},{"id":"NCT00000776:2","label"(...TRUNCATED) | null | [{"id":"NCT00000776","label":0.0},{"id":"NCT00001301","label":1.0},{"id":"NCT00001539","label":0.0},(...TRUNCATED) | true | "{\"year\": \"2021\", \"query_with_instruction\": \"Given a patient's medical history, find clinical(...TRUNCATED) | clinical_trial |
2022-32 | "A 30-year-old man who is a computer scientist came to the clinic with the lab result stating azoosp(...TRUNCATED) | Given a patient's medical history, find clinical trials that are relevant to them | [{"id":"NCT00000576:0","label":0.0},{"id":"NCT00000576:1","label":0.0},{"id":"NCT00000585:0","label"(...TRUNCATED) | null | [{"id":"NCT00000576","label":0.0},{"id":"NCT00000585","label":0.0},{"id":"NCT00000653","label":0.0},(...TRUNCATED) | true | "{\"year\": \"2022\", \"query_with_instruction\": \"Given a patient's medical history, find clinical(...TRUNCATED) | clinical_trial |
2021-39 | "A 3-day-old Asian female infant presents with jaundice that started a day ago. She was born at 38w3(...TRUNCATED) | Given a patient's medical history, find clinical trials that are relevant to them | [{"id":"NCT00000910:0","label":2.0},{"id":"NCT00001383:0","label":0.0},{"id":"NCT00001383:1","label"(...TRUNCATED) | null | [{"id":"NCT00000910","label":2.0},{"id":"NCT00001383","label":0.0},{"id":"NCT00001386","label":0.0},(...TRUNCATED) | true | "{\"year\": \"2021\", \"query_with_instruction\": \"Given a patient's medical history, find clinical(...TRUNCATED) | clinical_trial |
2021-35 | "The patient is a 15 year old girl with the history of recurrent bilateral headache. The attacks com(...TRUNCATED) | Given a patient's medical history, find clinical trials that are relevant to them | [{"id":"NCT00000862:0","label":0.0},{"id":"NCT00000862:1","label":0.0},{"id":"NCT00000862:2","label"(...TRUNCATED) | null | [{"id":"NCT00000862","label":0.0},{"id":"NCT00000910","label":0.0},{"id":"NCT00001598","label":0.0},(...TRUNCATED) | true | "{\"year\": \"2021\", \"query_with_instruction\": \"Given a patient's medical history, find clinical(...TRUNCATED) | clinical_trial |
2021-32 | "A 17 year old boy complains of vomiting, non-bloody diarrhea, abdominal pain, fever, chills and los(...TRUNCATED) | Given a patient's medical history, find clinical trials that are relevant to them | [{"id":"NCT00001237:0","label":0.0},{"id":"NCT00001237:1","label":0.0},{"id":"NCT00001237:2","label"(...TRUNCATED) | null | [{"id":"NCT00001237","label":0.0},{"id":"NCT00002774","label":0.0},{"id":"NCT00003126","label":0.0},(...TRUNCATED) | true | "{\"year\": \"2021\", \"query_with_instruction\": \"Given a patient's medical history, find clinical(...TRUNCATED) | clinical_trial |
2021-20 | "A 35-year-old woman presents with history of acne and mild hirsutism. The primary evaluation reveal(...TRUNCATED) | Given a patient's medical history, find clinical trials that are relevant to them | [{"id":"NCT00000910:0","label":0.0},{"id":"NCT00001621:0","label":0.0},{"id":"NCT00001860:0","label"(...TRUNCATED) | null | [{"id":"NCT00000910","label":0.0},{"id":"NCT00001621","label":0.0},{"id":"NCT00001860","label":1.0},(...TRUNCATED) | true | "{\"year\": \"2021\", \"query_with_instruction\": \"Given a patient's medical history, find clinical(...TRUNCATED) | clinical_trial |
2022-47 | "A 41-year-old woman comes to the dermatology clinic complaining of facial redness, especially on he(...TRUNCATED) | Given a patient's medical history, find clinical trials that are relevant to them | [{"id":"NCT00000115:0","label":0.0},{"id":"NCT00000115:1","label":0.0},{"id":"NCT00000123:0","label"(...TRUNCATED) | null | [{"id":"NCT00000115","label":0.0},{"id":"NCT00000123","label":0.0},{"id":"NCT00000125","label":0.0},(...TRUNCATED) | true | "{\"year\": \"2022\", \"query_with_instruction\": \"Given a patient's medical history, find clinical(...TRUNCATED) | clinical_trial |
2021-15 | "70 year-old woman with a history of CAD recently noted abdominal mass who presents with fevers/rigo(...TRUNCATED) | Given a patient's medical history, find clinical trials that are relevant to them | [{"id":"NCT00001730:0","label":0.0},{"id":"NCT00001730:1","label":0.0},{"id":"NCT00001730:2","label"(...TRUNCATED) | null | [{"id":"NCT00001730","label":0.0},{"id":"NCT00003049","label":2.0},{"id":"NCT00003118","label":0.0},(...TRUNCATED) | true | "{\"year\": \"2021\", \"query_with_instruction\": \"Given a patient's medical history, find clinical(...TRUNCATED) | clinical_trial |
End of preview.
NanoCrumb Dataset
A curated subset of the Crumb retrieval dataset, designed for rapid experimentation and evaluation of information retrieval systems.
Dataset Summary
NanoCrumb distills the large Crumb dataset (10.5 GB, 6.36M rows) into a manageable benchmark while maintaining task diversity across 8 different retrieval domains.
- Total Size: ~125 MB (JSONL format)
- Queries: 400 (50 per task split)
- Documents: 30,040 unique passages
- Query-Document Pairs: 31,754
- Configs: 8 task-specific configs
Configs (Task Splits)
Each config represents a different retrieval domain:
| Config Name | Queries | Documents | Docs/Query (avg) | Description |
|---|---|---|---|---|
clinical_trial |
50 | 22,251 | 464 | Match patients to clinical trials |
paper_retrieval |
50 | 4,402 | 102 | Find relevant academic papers |
set_operation_entity_retrieval |
50 | 1,533 | 31 | Entity-based retrieval |
code_retrieval |
50 | 1,206 | 24 | Find relevant code snippets |
tip_of_the_tongue |
50 | 363 | 7 | Recall items from vague descriptions |
stack_exchange |
50 | 125 | 3 | Find relevant Q&A posts |
legal_qa |
50 | 86 | 2 | Legal question answering |
theorem_retrieval |
50 | 74 | 2 | Find mathematical theorems |
Dataset Structure
Each config contains three splits:
queries
query_id: Unique query identifier (string)query_content: The query text (string)instruction: Task-specific instructions (string)passage_qrels: List of relevant passages with graded relevance scores (list)task_split: Task domain name (string)metadata: Additional task-specific information (string)use_max_p: Boolean flag for MaxP aggregation (bool)
documents
document_id: Unique document identifier (string)document_content: The passage text (string)parent_id: Links passages to source documents (string)task_split: Task domain name (string)metadata: Document metadata (string)
qrels
query_id: Query identifier (string)document_id: Document identifier (string)relevance_score: Graded relevance 0.0-2.0 (float)binary_relevance: Binary relevance 0 or 1 (int)task_split: Task domain name (string)
Usage
from datasets import load_dataset
# Load a specific config (task split)
clinical_data = load_dataset("YOUR_USERNAME/nanocrumb", "clinical_trial")
# Access the splits
queries = clinical_data['queries']
documents = clinical_data['documents']
qrels = clinical_data['qrels']
# Load all configs
all_configs = [
"clinical_trial", "code_retrieval", "legal_qa", "paper_retrieval",
"set_operation_entity_retrieval", "stack_exchange",
"theorem_retrieval", "tip_of_the_tongue"
]
for config_name in all_configs:
data = load_dataset("YOUR_USERNAME/nanocrumb", config_name)
print(f"{config_name}: {len(data['queries'])} queries")
Sampling Methodology
For each task split:
- Query Selection: Randomly sampled 50 queries from evaluation set (seed=42)
- Document Selection:
- Include ALL positive documents (binary_relevance=1)
- Fill remainder with hard negatives (relevance=0) to reach ~100 docs per query
- Target: ~5,000 documents per task split
- Deduplication: Documents shared across queries are deduplicated within each config
Use Cases
- 🚀 Rapid prototyping of retrieval models
- 🧪 Quick benchmarking without downloading large datasets
- 📚 Educational purposes for learning IR techniques
- 🔬 Ablation studies across diverse domains
Citation
If you use NanoCrumb, please cite the original Crumb dataset:
@misc{crumb2024,
title={Crumb: A Comprehensive Retrieval Benchmark},
author={[Original Crumb Authors]},
year={2024},
url={https://huggingface.co/datasets/jfkback/crumb}
}
License
This dataset inherits the license from the original Crumb dataset.
- Downloads last month
- 7