SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2504.12342 · EMNLP · 2025

CRAB: A Benchmark for Evaluating Curation of Retrieval-Augmented LLMs in Biomedicine

Wentao Wu, Linqing Chen, Hanmeng Zhong, Weilei Wang, Patsnap Co, China Suzhou

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 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 9 have no contract verdict; 0 failures of our instrument; 1 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/2504.12342.json · badge: /api/ran/2504.12342.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
run-llama/llama_index canonical (classifier label)
classifier basis not recorded on the link
9 ran · 1 no recorded run
FunctionStatusWhere it lives
asyncio_module Ran
ran on a synthesized input
run-llama/llama_index/llama-index-core/llama_index/core/async_utils.py
code served (permissive licence) · get_code("07c863d473083df5")
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 module. 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 asyncio
from typing import Any

# Define ARGS dict with all parameters for asyncio_module
ARGS = {
    'show_progress': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type module — a module output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a module 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
asyncio_run Ran
ran on a synthesized input
run-llama/llama_index/llama-index-core/llama_index/core/async_utils.py
code served (permissive licence) · get_code("e025f643c12e81e7")
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 asyncio
import contextvars
import concurrent.futures
from typing import Any, Coroutine, Iterable, List, Optional, TypeVar

async def sample_coroutine():
    """A simple coroutine that returns a value"""
    await asyncio.sleep(0.001)
    return "coroutine_result"

ARGS = {
    "coro": sample_coroutine()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
b64_2_img Ran
ran on a synthesized input
run-llama/llama_index/llama-index-core/llama_index/core/img_utils.py
code served (permissive licence) · get_code("6ff8822d6a1ca7fc")
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 PngImageFile. 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 base64
from io import BytesIO
from PIL import Image
import numpy as np

# Create a small test image
img_array = np.random.randint(0, 256, (10, 10, 3), dtype=np.uint8)
test_img = Image.fromarray(img_array, mode='RGB')

# Encode it to base64
buffer = BytesIO()
test_img.save(buffer, format='PNG')
buffer.seek(0)
encoded_data = base64.b64encode(buffer.read()).decode('utf-8')

ARGS = {
    'data': encoded_data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PngImageFile — a PngImageFile output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PngImageFile output the recorded ndim 3 and dtype family int 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_asyncio_module Ran
ran on a synthesized input
run-llama/llama_index/llama-index-core/llama_index/core/async_utils.py
code served (permissive licence) · get_code("e5845cd5340d4b2a")
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 module. 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 asyncio
from typing import Any, Coroutine, Iterable, List, Optional, TypeVar

# The function get_asyncio_module takes one optional parameter: show_progress
# It returns either tqdm_asyncio or asyncio based on the show_progress flag
# No complex objects are needed - just a boolean value

ARGS = {
    "show_progress": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type module — a module output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a module 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_new_id Ran
ran on a synthesized input
run-llama/llama_index/llama-index-core/llama_index/core/utils.py
code served (permissive licence) · get_code("f29f5926b75d3a86")
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 uuid
from typing import Set

# The function get_new_id takes a Set as parameter
# It generates UUIDs and checks if they're not already in the set
# It returns a string (the new ID)

# Create a small set to pass as the parameter
d = set()

# We can optionally pre-populate it with some UUIDs to test the loop logic
d.add(str(uuid.uuid4()))
d.add(str(uuid.uuid4()))

ARGS = {
    "d": d
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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_new_int_id Ran
ran on a synthesized input
run-llama/llama_index/llama-index-core/llama_index/core/utils.py
code served (permissive licence) · get_code("b664635e62b0c26c")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 random
import sys
from typing import Set

def get_new_int_id(d: Set) -> int:
    """Get a new integer ID."""
    while True:
        new_id = random.randint(0, sys.maxsize)
        if new_id not in d:
            break
    return new_id


# Set up the argument
# The function takes a Set and returns a new integer ID not in that set
existing_ids = {1, 2, 3, 4, 5}

ARGS = {
    "d": existing_ids
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
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
img_2_b64 Ran
ran on a synthesized input
run-llama/llama_index/llama-index-core/llama_index/core/img_utils.py
code served (permissive licence) · get_code("125365b371a13a92")
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 bytes. 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 PIL import Image

# Create a simple PIL Image object
image_array = np.random.randint(0, 256, (100, 100, 3), dtype=np.uint8)
pil_image = Image.fromarray(image_array, mode='RGB')

# Define arguments for img_2_b64
ARGS = {
    'image': pil_image,
    'format': 'JPEG'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes 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
is_image_pil Ran
ran on a synthesized input
run-llama/llama_index/llama-index-core/llama_index/core/schema.py
code served (permissive licence) · get_code("4146de2c8ba00701")
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 bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 tempfile
import os
from PIL import Image

# Create a temporary valid image file
with tempfile.TemporaryDirectory() as tmpdir:
    # Create a valid PIL image and save it
    valid_image_path = os.path.join(tmpdir, "valid_image.png")
    img = Image.new('RGB', (10, 10), color='red')
    img.save(valid_image_path)
    
    # Store the path for use in ARGS
    # Since we need to keep the file around, we'll create it at module level
    pass

# Create a temporary valid image file at module level that persists
temp_dir = tempfile.mkdtemp()
valid_image_path = os.path.join(temp_dir, "valid_image.png")
img = Image.new('RGB', (10, 10), color='red')
img.save(valid_image_path)

ARGS = {
    "file_path": valid_image_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
is_image_url_pil Ran
ran on a synthesized input
run-llama/llama_index/llama-index-core/llama_index/core/schema.py
code served (permissive licence) · get_code("2b32fd653a82984e")
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 bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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.

from io import BytesIO
from unittest.mock import Mock, patch
import requests
from PIL import Image

# Create a minimal valid image in memory
def create_test_image():
    img = Image.new('RGB', (10, 10), color='red')
    img_bytes = BytesIO()
    img.save(img_bytes, format='PNG')
    img_bytes.seek(0)
    return img_bytes.getvalue()

# Mock the requests.get to return a valid image response
def create_mock_response():
    response = Mock()
    response.content = create_test_image()
    response.raise_for_status = Mock()
    return response

# Patch requests.get globally for the function call
with patch('requests.get', return_value=create_mock_response()):
    test_url = "https://example.com/test.png"

ARGS = {
    "url": "https://example.com/test.png"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, requests — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
get_tokenizer Not yet run
unverified (harvested, no recorded run)
run-llama/llama_index/llama-index-core/llama_index/core/utils.py
code served (permissive licence) · get_code("e4375ac6f1935b93")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 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 10 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

Recent development in Retrieval-Augmented Large Language Models (LLMs) have shown great promise in biomedical applications. However, a critical gap persists in reliably evaluating their curation ability-the process by which models select and integrate relevant references while filtering out noise. To address this, we introduce the benchmark for Curation of Retrieval-Augmented LLMs in Biomedicine (CRAB), the first multilingual benchmark tailored for evaluating the biomedical curation of retrieval-augmented LLMs, available in English, French, German and Chinese. By incorporating a novel citation-based evaluation metric, CRAB quantifies the curation performance of retrieval-augmented LLMs in biomedicine. Experimental results reveal significant discrepancies in the curation performance of mainstream LLMs, underscoring the urgent need to improve it in the domain of biomedicine. [1] {"Title": "A Pyrazole Compound and Its Energetic Ionic Salt and Preparation Method", "Abstract": "The invention designs and synthesizes a pyrazole compound and its energetic ionic salt and preparation method. The 3amino-4-(4,5-diamino-1,2,4-triazol-3-yl)pyrazole ionic salt has a high density, good oxygen balance, and low sensitivity, with a high decomposition temperature (above 240°C) as tested by DSC. The 3-amino-4-(4,5-diamino-1,2,4-triazol-3-yl)pyrazole energetic ionic salt has excellent thermal stability, low impact sensitivity, and outstanding detonation performance, and can be used in explosives, propellants, pyrotechnics, and other energetic materials."} [2] {"Title": "Application of Zinc Ionic Compounds in Preparing Drugs for Treating Arsenic Poisoning", "Abstract": "The invention discloses the application of zinc ionic compounds in preparing drugs for treating arsenic poisoning. The invention uses zinc ions to inhibit the absorption of trivalent inorganic arsenic in multiple tissues of mice, showing a dose-response relationship. The mechanism of inhibition is that zinc ions bind to aquaglyceroporins on the cell membrane, preventing trivalent inorganic arsenic from entering the cells through these channels. Due to the low toxicity of zinc ions, they can be used to prevent arsenic poisoning."} Ionic compounds have various applications in pharmaceuticals. 1. One application of ionic compounds in pharmaceuticals is in the treatment of arsenic poisoning. Zinc ionic compounds, in particular, have been used to inhibit the absorption of trivalent inorganic arsenic in multiple tissues. The mechanism involves zinc ions binding to aquaglyceroporins on the cell membrane, preventing the entry of trivalent inorganic arsenic into the cells. This is due to the low toxicity of zinc ions, making them suitable for use in preventing arsenic poisoning [2]. 2. Another application of ionic compounds in pharmaceuticals is in the synthesis of energetic materials. For instance, a pyrazole compound and its energetic ionic salt have been designed and synthesized. This ionic salt has excellent thermal stability, low impact sensitivity, and outstanding detonation performance, making it suitable for use in explosives, propellants, pyrotechnics, and other energetic materials [1]. Therefore, ionic compounds are used in pharmaceuticals for treating poisoning and in the synthesis of energetic materials.

For agents

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

get_harvested_code_for_paper("2504.12342")
get_code_for_paper("2504.12342")
have("2504.12342")

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

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

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

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

Connect an agent — have() is free.