Datasets:
The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: ValueError
Message: Invalid string class label EduMUSE@409d38da58fe91f7474be514b4c66cc8b0f9ceb7
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
return get_rows(
^^^^^^^^^
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2690, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2240, in __iter__
example = _apply_feature_types_on_example(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2157, in _apply_feature_types_on_example
encoded_example = features.encode_example(example)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 2152, in encode_example
return encode_nested_example(self, example)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 1437, in encode_nested_example
{k: encode_nested_example(schema[k], obj.get(k), level=level + 1) for k in schema}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 1460, in encode_nested_example
return schema.encode_example(obj) if obj is not None else None
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 1143, in encode_example
example_data = self.str2int(example_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 1080, in str2int
output = [self._strval2int(value) for value in values]
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 1101, in _strval2int
raise ValueError(f"Invalid string class label {value}")
ValueError: Invalid string class label EduMUSE@409d38da58fe91f7474be514b4c66cc8b0f9ceb7Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
OpenStax Multimodal Exercise Dataset
A multimodal dataset of textbook exercises scraped from OpenStax, each aligned to its most relevant textbook subsection and scored under several open vision-language models. The dataset enables research on retrieval-augmented question answering, the contribution of visual context to scientific QA, and ablation studies on text-only vs. multimodal context.
Contents
final_EduMUSE_dataset.json— the unified dataset (nested by book → chapter → exercise).context_images.zip— images extracted from textbook sections (extract tocontext_images/).exercise_images.zip— images attached to individual exercises (extract toexercise_images/).
Dataset structure
Top-level JSON shape:
{
"<book_name>": {
"chapters": {
"<chapter_id>": {
"sections": [
{
"section_name": "...",
"content": [
{"items": [{"type": "text|list_item|image", "content"|"filename"|"alt_text": "..."}]}
]
}
],
"exercises": [
{
"exercise_id": "...",
"problem_text": "...",
"solution_text": "...",
"has_solution": true,
"exercise_images": [{"filename": "..."}],
"best_subsection_data": {
"best_section_name": "...",
"best_subsection_index": 0
}
}
]
}
}
}
}
Loading
This dataset is published as raw files (JSON + image folders), so download the whole snapshot and load locally:
from huggingface_hub import snapshot_download
import json
import zipfile
from PIL import Image
from pathlib import Path
local_dir = Path(snapshot_download(
repo_id="your-username/openstax-multimodal-exercises",
repo_type="dataset",
))
# Extract the image archives once; skip if already extracted.
for archive in ["context_images.zip", "exercise_images.zip"]:
target = local_dir / archive.removesuffix(".zip")
if not target.exists():
with zipfile.ZipFile(local_dir / archive) as zf:
zf.extractall(local_dir)
with open(local_dir / "final_EduMUSE_dataset.json") as f:
data = json.load(f)
# Iterate exercises with their matched subsection
for book_name, book in data.items():
for chapter_id, chapter in book["chapters"].items():
for exercise in chapter["exercises"]:
if "best_subsection_data" not in exercise:
continue
for img_ref in exercise.get("exercise_images", []):
fname = img_ref["filename"].split("_")[-1] + ".jpg"
img = Image.open(local_dir / "exercise_images" / fname)
# ... do something with img + exercise["problem_text"]
Source and licensing
Source content is from OpenStax textbooks, released under the Creative Commons Attribution 4.0 International License (CC BY 4.0). This derivative dataset is distributed under the same license. When using this dataset you must:
- Attribute OpenStax for the underlying textbook content.
- Attribute this dataset for the multimodal alignment.
Specific OpenStax titles included are identifiable from the <book_name> keys at the top level of the JSON.
Known limitations
chemistry-atoms-first-2echapter 8 is excluded due to corrupted source data.- Subsection alignment is computed via a single VLM (
Qwen2-VL-7B) and is not human-verified — it is the model's minimum-loss pick, not a ground-truth label. - Image content is filtered to JPEGs scraped at the time the pipeline was run; some original OpenStax figures may have changed since.
Citation
If you use this dataset, please cite:
@misc{openstax-multimodal-exercises,
title = {OpenStax Multimodal Exercise Dataset},
author = {<your name(s) here>},
year = {2026},
url = {https://huggingface.co/datasets/your-username/openstax-multimodal-exercises}
}
And cite OpenStax for the source content per their attribution guidelines.
- Downloads last month
- 50