SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2602.17687 · 2026

IRPAPERS: A Visual Document Benchmark for Scientific Retrieval and Question Answering

Roberto Esposito, Connor Shorten, Daniel Jones, Charles Pierse, Weaviate John, Trengrove Weaviate, Etienne Dilocker

arXiv · PDF · Open in the Atlas

Code that ran

7 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 5 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2602.17687.json · badge: /api/ran/2602.17687.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
weaviate/query-agent-benchmarking canonical (classifier label)
classifier basis: census
7 ran · 5 no recorded run
FunctionStatusWhere it lives
aggregate_metrics Ran
ran; our contract draft was wrong, not the code
weaviate/query-agent-benchmarking/query_agent_benchmarking/internal/core/domain/analysis.py
code served (permissive licence) · get_code("c417197188899940")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct valid arguments for aggregate_metrics

# Create sample metrics across multiple trials
metrics_across_trials = [
    {
        'avg_accuracy': 0.85,
        'avg_loss': 0.32,
        'avg_f1': 0.82,
        'type_accuracy': {
            'multiple_choice': 0.90,
            'short_answer': 0.75,
            'essay': 0.80
        }
    },
    {
        'avg_accuracy': 0.88,
        'avg_loss': 0.28,
        'avg_f1': 0.85,
        'type_accuracy': {
            'multiple_choice': 0.92,
            'short_answer': 0.78,
            'essay': 0.83
        }
    },
    {
        'avg_accuracy': 0.82,
        'avg_loss': 0.35,
        'avg_f1': 0.79,
        'type_accuracy': {
            'multiple_choice': 0.88,
            'short_answer': 0.72,
            'essay': 0.77
        }
    }
]

ARGS = {
    'metrics_across_trials': metrics_across_trials
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_object_by_dataset_id Ran
ran; our contract draft was wrong, not the code
weaviate/query-agent-benchmarking/query_agent_benchmarking/internal/core/domain/display.py
code served (permissive licence) · get_code("0443ead669787717")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    'dataset_id': 'dataset_123',
    'objects_list': [
        {'dataset_id': 'dataset_001', 'name': 'object_1', 'value': 10},
        {'dataset_id': 'dataset_123', 'name': 'object_2', 'value': 20},
        {'dataset_id': 'dataset_456', 'name': 'object_3', 'value': 30},
    ]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_config Ran
ran; our contract draft was wrong, not the code
weaviate/query-agent-benchmarking/query_agent_benchmarking/internal/config/loader.py
code served (permissive licence) · get_code("3dbd15749a6ef77f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import yaml
import tempfile

# Create a temporary YAML configuration file
temp_dir = tempfile.mkdtemp()
config_path = os.path.join(temp_dir, "test_config.yaml")

# Write a valid YAML configuration
with open(config_path, 'w') as f:
    yaml.dump({
        'model': 'test_model',
        'learning_rate': 0.001,
        'batch_size': 32,
        'epochs': 10
    }, f)

ARGS = {
    'config_path': config_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_json_serializable Ran
ran; our contract draft was wrong, not the code
weaviate/query-agent-benchmarking/query_agent_benchmarking/internal/core/domain/display.py
code served (permissive licence) · get_code("53596aa180622122")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import inspect

def make_json_serializable(obj):
    """Convert objects to JSON serializable formats."""
    if hasattr(obj, '__dict__'):
        return {k: make_json_serializable(v) for k, v in obj.__dict__.items() if not k.startswith('_') and (not inspect.ismethod(v))}
    elif isinstance(obj, dict):
        return {k: make_json_serializable(v) for k, v in obj.items()}
    elif isinstance(obj, list):
        return [make_json_serializable(item) for item in obj]
    elif isinstance(obj, (str, int, float, bool, type(None))):
        return obj
    else:
        try:
            return str(obj)
        except Exception:
            return f'<Non-serializable object of type {type(obj).__name__}>'


class SimpleConfig:
    def __init__(self):
        self.learning_rate = 0.001
        self.batch_size = 32
        self.hidden_dim = 64
        self._private_attr = "should_be_skipped"


class CustomObject:
    def __init__(self):
        self.value = 42
        self.name = "test_object"
        self.nested_dict = {"key": "value"}
        self.nested_list = [1, 2, 3]


torch.manual_seed(0)

# Test with various object types
test_dict = {
    "string": "hello",
    "number": 123,
    "float": 3.14,
    "bool": True,
    "none": None,
    "nested": {"inner": "value"}
}

test_list = [1, "two", 3.0, True, None, {"key": "val"}]

test_object = CustomObject()

config = SimpleConfig()

tensor = torch.randn(2, 4)

ARGS = {
    "obj": test_object
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
merge_configs Ran
ran; our contract draft was wrong, not the code
weaviate/query-agent-benchmarking/query_agent_benchmarking/internal/config/loader.py
code served (permissive licence) · get_code("056bbbb54bdfab38")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from typing import Any

torch.manual_seed(0)

# Construct file_config: a base configuration dictionary
file_config = {
    "model": "bert-base",
    "learning_rate": 0.001,
    "batch_size": 32,
    "search_dataset": "wikipedia",
    "max_tokens": 512,
    "num_epochs": 5
}

# Construct override_config: programmatic overrides with some None values
override_config = {
    "learning_rate": 0.0001,
    "batch_size": None,  # None values should be ignored
    "docs_collection": "custom_docs",
    "num_epochs": 10
}

ARGS = {
    "file_config": file_config,
    "override_config": override_config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_extra_metrics Ran
ran; our contract draft was wrong, not the code
weaviate/query-agent-benchmarking/query_agent_benchmarking/internal/core/domain/metrics_config.py
code served (permissive licence) · get_code("2f8c08bb2bb41820")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from dataclasses import dataclass, field

torch.manual_seed(0)

@dataclass(frozen=True)
class MetricSpec:
    """Specification for a single metric computation."""
    name: str
    params: dict = field(default_factory=dict)

    @property
    def key(self) -> str:
        """Generate a human-readable key for this metric (e.g., 'recall_at_5')."""
        if 'k' in self.params:
            return f"{self.name}_at_{self.params['k']}"
        return self.name

def parse_extra_metrics(raw: list[dict] | None) -> tuple[MetricSpec, ...] | None:
    """Parse extra_metrics from a config dict (YAML or kwargs).

    Args:
        raw: List of dicts with "name" and "params" keys, e.g.
            ``[{"name": "recall", "params": {"k": 50}}]``.

    Returns:
        Tuple of MetricSpec instances, or None if input is empty/None.
    """
    if not raw:
        return None
    return tuple((MetricSpec(entry['name'], entry.get('params', {})) for entry in raw))


ARGS = {
    'raw': [
        {"name": "recall", "params": {"k": 50}},
        {"name": "precision", "params": {"k": 10}},
        {"name": "ndcg"},
    ]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
resolve_named_vector_target Ran
ran; our contract draft was wrong, not the code
weaviate/query-agent-benchmarking/query_agent_benchmarking/internal/config/config.py
code served (permissive licence) · get_code("f4b44fb2924aac65")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from typing import Any, Optional

# Set up the named_vector_target_registry as a module-level variable
# that the function will reference
named_vector_target_registry = [
    {
        'pattern': 'dataset1/*',
        'vectors': ('image_content_weaviate', 'text_content_weaviate'),
        'aliases': ('ds1_alias',)
    },
    {
        'pattern': 'dataset2-*',
        'vectors': ('vector_a', 'vector_b', 'vector_c'),
        'aliases': ()
    },
    {
        'pattern': 'exact_dataset',
        'vectors': ('target1', 'target2'),
        'aliases': ('exact_alias',)
    }
]

# Inject the registry into the module's globals so the function can access it
import sys
current_module = sys.modules[__name__]
setattr(current_module, 'named_vector_target_registry', named_vector_target_registry)

ARGS = {
    'dataset_name': 'dataset1/subset',
    'target_vector': 'image_content_weaviate+text_content_weaviate'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_named_vector_target_entry Not yet run
unverified (harvested, no recorded run)
weaviate/query-agent-benchmarking/query_agent_benchmarking/internal/config/config.py
code served (permissive licence) · get_code("512f0dd6b6ba2b40")
How it ran

no invocation recorded.

get_system_prompt Not yet run
unverified (harvested, no recorded run)
weaviate/query-agent-benchmarking/query_agent_benchmarking/internal/config/qa_system_prompt_registry.py
code served (permissive licence) · get_code("ac61116f90ca6017")
How it ran

no invocation recorded.

print_results_comparison Not yet run
unverified (harvested, no recorded run)
weaviate/query-agent-benchmarking/query_agent_benchmarking/internal/core/domain/display.py
code served (permissive licence) · get_code("4a6c22418652756d")
How it ran

no invocation recorded.

resolve_metrics_profile Not yet run
unverified (harvested, no recorded run)
weaviate/query-agent-benchmarking/query_agent_benchmarking/internal/core/domain/metrics_config.py
code served (permissive licence) · get_code("425af887cca74d94")
How it ran

no invocation recorded.

resolve_primary_metric Not yet run
unverified (harvested, no recorded run)
weaviate/query-agent-benchmarking/query_agent_benchmarking/internal/core/domain/metrics_config.py
code served (permissive licence) · get_code("9bcf4199f500223e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 12 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

AI systems have achieved remarkable success in processing text and relational data, however, visual document processing remains relatively underexplored. Whereas traditional systems require OCR transcriptions to convert these visual documents into text and metadata, recent advances in multimodal foundation models offer an alternative path: retrieval and generation directly from document images. This raises a timely and important question: How do image-based systems compare to established text-based methods? To answer this question, we present IRPAPERS, a benchmark totaling 3,230 pages sourced from 166 scientific papers, with both an image and OCR transcription for each page. We present a curation of 180 needle-in-the-haystack questions for evaluating retrieval and question answering systems with this corpus. We begin by comparing image-and text-based retrieval with open-source models, as well as multimodal hybrid search. For image retrieval, we evaluate the ColModernVBERT multi-vector embedding model. For text retrieval, we evaluate Arctic 2.0 dense single-vector embeddings, BM25, and their combination in hybrid text search. Text-based methods achieved 46% Recall@1, 78% Recall@5, and 91% Recall@20, while image-based retrieval achieved 43% Recall@1, 78% Recall@5, and 93% Recall@20. These retrieval systems exhibit complementary failures, each succeeding on queries where the other fails, enabling multimodal fusion to exceed either modality alone. Multimodal hybrid search achieved the highest performance with 49% Recall@1, 81% Recall@5, and 95% Recall@20. We additionally evaluate the efficiencyperformance tradeoff of MUVERA encoding with varying levels of ef , as well as the performance of the ColPali and ColQwen2 multi-vector image embeddings models. To contextualize open-source performance, we further evaluate leading closed-source models. Cohere Embed v4 page image embeddings reached 58% Recall@1, 87% Recall@5, and 97% Recall@20, outperforming Voyage 3 Large text transcription embeddings at 52% Recall@1, 86% Recall@5, and 95% Recall@20, as well as all tested open-source models. For question answering, we evaluate RAG using an LLM-as-Judge to assess binary semantic equivalence between the ground truth and the answer from the tested RAG system. RAG systems using text inputs achieved a ground truth alignment score of 0.82, compared to 0.71 for image inputs. Notably, both modalities benefit substantially from increased retrieval depth for question answering. Retrieving five documents outperforms even oracle single-document retrieval, suggesting that related pages provide valuable supporting context for answer synthesis. We conclude by exploring the comparative limitations of text and image unimodal representations: Are there questions that require the image representation to answer?, and inversely, Are there questions that require a text representation to answer?. These results illuminate the current state of visual document search and question answering technologies. We have open-sourced our IRPAPERS dataset on HuggingFace at huggingface.co/weaviate/IRPAPERS and GitHub at github.com/weaviate/IRPAPERS. Our experimental code is also available on GitHub at github.com/weaviate/query-agent-benchmarking.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2602.17687")
get_code_for_paper("2602.17687")
have("2602.17687")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2602.17687.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2602.17687.svg)](https://syntology.ai/paper/2602.17687)

Connect an agent — have() is free.