The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: CastError
Message: Couldn't cast
q_id: int64
doc_name: string
domain: string
question: string
evidence_modality_type: list<item: string>
child 0, item: string
question_type: string
text_quotes: list<item: struct<quote_id: string, type: string, text: string, page_id: int64, layout_id: int64>>
child 0, item: struct<quote_id: string, type: string, text: string, page_id: int64, layout_id: int64>
child 0, quote_id: string
child 1, type: string
child 2, text: string
child 3, page_id: int64
child 4, layout_id: int64
img_quotes: list<item: struct<quote_id: string, type: string, img_path: string, img_description: string, page_id (... 27 chars omitted)
child 0, item: struct<quote_id: string, type: string, img_path: string, img_description: string, page_id: int64, la (... 15 chars omitted)
child 0, quote_id: string
child 1, type: string
child 2, img_path: string
child 3, img_description: string
child 4, page_id: int64
child 5, layout_id: int64
gold_quotes: list<item: string>
child 0, item: string
answer_short: string
answer_interleaved: string
old_id: int64
messages: list<item: struct<role: string, content: string>>
child 0, item: struct<role: string, content: string>
child 0, role: string
child 1, content: string
to
{'messages': List({'role': Value('string'), 'content': Value('string')})}
because column names don't match
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1835, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 621, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 373, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
q_id: int64
doc_name: string
domain: string
question: string
evidence_modality_type: list<item: string>
child 0, item: string
question_type: string
text_quotes: list<item: struct<quote_id: string, type: string, text: string, page_id: int64, layout_id: int64>>
child 0, item: struct<quote_id: string, type: string, text: string, page_id: int64, layout_id: int64>
child 0, quote_id: string
child 1, type: string
child 2, text: string
child 3, page_id: int64
child 4, layout_id: int64
img_quotes: list<item: struct<quote_id: string, type: string, img_path: string, img_description: string, page_id (... 27 chars omitted)
child 0, item: struct<quote_id: string, type: string, img_path: string, img_description: string, page_id: int64, la (... 15 chars omitted)
child 0, quote_id: string
child 1, type: string
child 2, img_path: string
child 3, img_description: string
child 4, page_id: int64
child 5, layout_id: int64
gold_quotes: list<item: string>
child 0, item: string
answer_short: string
answer_interleaved: string
old_id: int64
messages: list<item: struct<role: string, content: string>>
child 0, item: struct<role: string, content: string>
child 0, role: string
child 1, content: string
to
{'messages': List({'role': Value('string'), 'content': 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 1379, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1887, 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.
messages list |
|---|
[
{
"role": "system",
"content": "You are a helpful question-answering assistant. Your task is to generate a interleaved text and image response based on provided questions and quotes. Here‘s how to refine your process:\n\n1. **Evidence Selection**:\n - From both text and image quotes, pinpoint those really... |
[
{
"role": "system",
"content": "You are a helpful question-answering assistant. Your task is to generate a interleaved text and image response based on provided questions and quotes. Here‘s how to refine your process:\n\n1. **Evidence Selection**:\n - From both text and image quotes, pinpoint those really... |
[
{
"role": "system",
"content": "You are a helpful question-answering assistant. Your task is to generate a interleaved text and image response based on provided questions and quotes. Here‘s how to refine your process:\n\n1. **Evidence Selection**:\n - From both text and image quotes, pinpoint those really... |
[
{
"role": "system",
"content": "You are a helpful question-answering assistant. Your task is to generate a interleaved text and image response based on provided questions and quotes. Here‘s how to refine your process:\n\n1. **Evidence Selection**:\n - From both text and image quotes, pinpoint those really... |
[
{
"role": "system",
"content": "You are a helpful question-answering assistant. Your task is to generate a interleaved text and image response based on provided questions and quotes. Here‘s how to refine your process:\n\n1. **Evidence Selection**:\n - From both text and image quotes, pinpoint those really... |
[
{
"role": "system",
"content": "You are a helpful question-answering assistant. Your task is to generate a interleaved text and image response based on provided questions and quotes. Here‘s how to refine your process:\n\n1. **Evidence Selection**:\n - From both text and image quotes, pinpoint those really... |
[
{
"role": "system",
"content": "You are a helpful question-answering assistant. Your task is to generate a interleaved text and image response based on provided questions and quotes. Here‘s how to refine your process:\n\n1. **Evidence Selection**:\n - From both text and image quotes, pinpoint those really... |
[
{
"role": "system",
"content": "You are a helpful question-answering assistant. Your task is to generate a interleaved text and image response based on provided questions and quotes. Here‘s how to refine your process:\n\n1. **Evidence Selection**:\n - From both text and image quotes, pinpoint those really... |
[
{
"role": "system",
"content": "You are a helpful question-answering assistant. Your task is to generate a interleaved text and image response based on provided questions and quotes. Here‘s how to refine your process:\n\n1. **Evidence Selection**:\n - From both text and image quotes, pinpoint those really... |
[
{
"role": "system",
"content": "You are a helpful question-answering assistant. Your task is to generate a interleaved text and image response based on provided questions and quotes. Here‘s how to refine your process:\n\n1. **Evidence Selection**:\n - From both text and image quotes, pinpoint those really... |
[
{
"role": "system",
"content": "You are a helpful question-answering assistant. Your task is to generate a interleaved text and image response based on provided questions and quotes. Here‘s how to refine your process:\n\n1. **Evidence Selection**:\n - From both text and image quotes, pinpoint those really... |
[
{
"role": "system",
"content": "You are a helpful question-answering assistant. Your task is to generate a interleaved text and image response based on provided questions and quotes. Here‘s how to refine your process:\n\n1. **Evidence Selection**:\n - From both text and image quotes, pinpoint those really... |
[
{
"role": "system",
"content": "You are a helpful question-answering assistant. Your task is to generate a interleaved text and image response based on provided questions and quotes. Here‘s how to refine your process:\n\n1. **Evidence Selection**:\n - From both text and image quotes, pinpoint those really... |
[
{
"role": "system",
"content": "You are a helpful question-answering assistant. Your task is to generate a interleaved text and image response based on provided questions and quotes. Here‘s how to refine your process:\n\n1. **Evidence Selection**:\n - From both text and image quotes, pinpoint those really... |
[
{
"role": "system",
"content": "You are a helpful question-answering assistant. Your task is to generate a interleaved text and image response based on provided questions and quotes. Here‘s how to refine your process:\n\n1. **Evidence Selection**:\n - From both text and image quotes, pinpoint those really... |
[
{
"role": "system",
"content": "You are a helpful question-answering assistant. Your task is to generate a interleaved text and image response based on provided questions and quotes. Here‘s how to refine your process:\n\n1. **Evidence Selection**:\n - From both text and image quotes, pinpoint those really... |
MMDocRAG: Benchmarking Retrieval-Augmented Multimomal Generation for Document Question Answering
Kuicai Dong* · Yujing Chang* · Shijie Huang · Yasheng Wang · Ruiming Tang · Yong Liu
📖Paper |🏠Homepage|👉Github
Document Visual Question Answering (DocVQA) faces dual challenges in processing lengthy multimodal documents (text, images, tables) and performing cross-modal reasoning. Current document retrieval-augmented generation (DocRAG) methods remain limited by their text-centric approaches, frequently missing critical visual information. The field also lacks robust benchmarks for assessing multimodal evidence integration and selection. We introduce MMDocRAG, a comprehensive benchmark featuring 4,055 expert-annotated QA pairs with multi-page, cross-modal evidence chains. Our framework introduces innovative metrics for evaluating multimodal quote selection and enables answers that combine text with relevant visual elements. Through large-scale experiments with 60 language/vision models and 14 retrieval systems, we identify persistent challenges in multimodal evidence handling. Key findings reveal proprietary vision-language models show moderate advantages over text-only models, while open-source alternatives trail significantly. Notably, fine-tuned LLMs achieve substantial improvements when using detailed image descriptions. MMDocRAG establishes a rigorous testing ground and provides actionable insights for developing more robust multimodal DocVQA systems.
MMDocRAG Dataset
☀️Annotation Format
Our annotations are provided in json-line format, each corresponding to annotation as follows: QA pair, 15/20 quotes and multimodal generation:
dev_15.jsonl: 2,055 json-lines, with 15 quotes for each line.dev_20.jsonl: 2,055 json-lines, with 20 quotes for each line.evaluation_15.jsonl: 2,000 json-lines, with 15 quotes for each line.evaluation_20.jsonl: 2,000 json-lines, with 20 quotes for each line.
The detailed formats are:
| Name | Type | Description |
|---|---|---|
q_id |
int | question id |
doc_name |
string | document name |
domain |
string | document's domain or category |
question |
string | question annotation |
evidence_modality_type |
list[] | evidence modalities |
question_type |
string | question type |
text_quotes |
list[] | candidate list of text quotes |
img_quotes |
list[] | candidate list of image quotes |
gold_quotes |
list[] | list of gold quotes, e.g., ["image1", "text2", "image3", "text9"] |
answer_short |
string | short-formed answer |
answer_interleaved |
string | multimodal answer, interleaving text with images |
Each text_quotes or img_quotes item consists of :
| Name | Type | Description |
|---|---|---|
quote_id |
string | quote identifier, e.g., `"image1", ..., "image8", "text1", ..., "text12" |
type |
string | quote type, either "image" or "text" |
text |
string | raw text for text quotes |
img_path |
string | image path for image quotes |
img_description |
string | image description for image quotes |
page_id |
int | page identifier of this quote |
layout_id |
int | layout identifier of this quote |
☀️Training Format
The training set (train.jsonl) consist of 4,110 json-lines, each following the OpenAI message format in <system, user, assistant> triplets:
| Role | Content |
|---|---|
| system | prompt message for multimodal generation task, specified in pure_text_infer.txt |
| user | consolidate user inputs as follows: text_quotes, img_quotes, and question |
| assistant | ground truth annotations, i.e., answer_interleaved |
☀️Image Quote Files
images.zip contains 14,826 images in JPEG format, each correspond to an image quote.
☀️Document PDFs
doc_pdfs.zip contains 220 long documents for MMDocRAG.
💾Citation
@misc{dong2025benchmarkingretrievalaugmentedmultimomalgeneration,
title={Benchmarking Retrieval-Augmented Multimomal Generation for Document Question Answering},
author={Kuicai Dong and Yujing Chang and Shijie Huang and Yasheng Wang and Ruiming Tang and Yong Liu},
year={2025},
eprint={2505.16470},
archivePrefix={arXiv},
primaryClass={cs.IR},
url={https://arxiv.org/abs/2505.16470},
}
- Downloads last month
- 1,221