SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.10996 · ICLR · 2025

RAS: Retrieval-And-Structuring for Knowledge-Intensive LLM Generation

Jiawei Han, Jimeng Sun, Pengcheng Jiang, Jiaming Shen, Lang Cao, Minhao Jiang, Ruike Zhu, Yunyi Zhang

arXiv · PDF · Open in the Atlas

Code that ran

8 of 13 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 7 have no contract verdict; 1 failure of our instrument; 5 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2502.10996.json · badge: /api/ran/2502.10996.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
pat-jj/Retrieval-And-Structure canonical (classifier label)
classifier basis not recorded on the link
5 ran · 4 no recorded run
pat-jj/ras canonical (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
haruhi-sudo/rpg canonical (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
FunctionStatusWhere it lives
bge_rerank_result Ran
ran; our contract draft was wrong, not the code
haruhi-sudo/rpg/inference/long_form_demo.py
pointer only (licence: NONE) · get_code("32b42053b96ab3ff")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, haruhi-sudo/rpg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

find_ras_result_files Ran
ran on a synthesized input
pat-jj/ras/framework/evaluate_ras_results.py
code served (permissive licence) · get_code("6645463255861c20")
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 tempfile
import json
from pathlib import Path

# Create a temporary directory with test RAS result files
temp_dir = tempfile.mkdtemp()
results_dir = Path(temp_dir)

# Create sample RAS result files matching the pattern '*_test_output_*_v3.json'
test_files = [
    'dataset1_test_output_results_v3.json',
    'dataset2_test_output_metrics_v3.json',
    'dataset3_test_output_eval_v3.json',
]

for filename in test_files:
    filepath = results_dir / filename
    # Write minimal valid JSON content
    with open(filepath, 'w') as f:
        json.dump({'test': 'data'}, f)

ARGS = {
    'results_dir': str(results_dir)
}
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 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_data Ran
ran on a synthesized input
pat-jj/ras/framework/run_ras_pre.py
code served (permissive licence) · get_code("4e5819f26351b1ef")
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. 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 json
import os
import tempfile

# Create a temporary directory and test data file
temp_dir = tempfile.mkdtemp()
test_data = {
    'question': ['What is the capital of France?', 'Who wrote Romeo and Juliet?'],
    'context': ['Paris is the capital of France.', 'William Shakespeare wrote Romeo and Juliet.'],
    'answer': ['Paris', 'William Shakespeare'],
    'other_field': ['value1', 'value2']
}

test_file_path = os.path.join(temp_dir, 'popqa_test.json')
with open(test_file_path, 'w') as f:
    json.dump(test_data, f)

# Create args object
class Args:
    def __init__(self):
        self.dataset = 'popqa'
        self.knowledge_source = 'wiki_2020'
        self.test_data_path = temp_dir

ARGS = {
    'args': Args()
}
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 tuple — a tuple output has no array shape of its own; none is 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_knowledge Ran
ran on a synthesized input
pat-jj/Retrieval-And-Structure/archived/theme_dense_ret.py
code served (permissive licence) · get_code("9f3a09d9e617e3b3")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import tempfile
import os
import faiss
import numpy as np
import orjson

torch.manual_seed(0)

# Create a temporary directory structure to mimic the knowledge_path
temp_dir = tempfile.mkdtemp()
knowledge_path = temp_dir

# Create subdirectories
os.makedirs(f'{knowledge_path}/embedding', exist_ok=True)
os.makedirs(f'{knowledge_path}/theme_dist', exist_ok=True)

# Create a small text mapping JSON file
text_mapping = {
    "0": "sample text zero",
    "1": "sample text one",
    "2": "sample text two",
    "3": "sample text three"
}
text_mapping_path = f'{knowledge_path}/embedding/text_mapping_0.json'
with open(text_mapping_path, 'wb') as f:
    f.write(orjson.dumps(text_mapping))

# Create a small FAISS dense index
split_idx = 0
dim = 768  # typical embedding dimension
num_vectors = 4

dense_vectors = np.random.randn(num_vectors, dim).astype('float32')
dense_faiss_index = faiss.IndexFlatL2(dim)
dense_faiss_index.add(dense_vectors)
faiss.write_index(dense_faiss_index, f'{knowledge_path}/embedding/wikipedia_embeddings_{split_idx}.faiss')

# Create a small FAISS theme index
theme_dim = 256
theme_vectors = np.random.randn(num_vectors, theme_dim).astype('float32')
theme_faiss_index = faiss.IndexIVFFlat(faiss.IndexFlatL2(theme_dim), theme_dim, 2)
theme_faiss_index.train(theme_vectors)
theme_faiss_index.add(theme_vectors)
faiss.write_index(theme_faiss_index, f'{knowledge_path}/theme_dist/theme_embeddings_{split_idx}.faiss')

ARGS = {
    'knowledge_path': knowledge_path,
    'split_idx': 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
faiss, numpy, orjson, 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
load_knowledge Ran
ran on a synthesized input
pat-jj/Retrieval-And-Structure/archived/theme_dense_ret_all.py
code served (permissive licence) · get_code("775f52b9a2fccf7b")
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. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 faiss
import numpy as np
import tempfile
import os
import orjson

torch.manual_seed(0)

# Create a temporary directory structure to simulate the knowledge path
temp_dir = tempfile.mkdtemp()
knowledge_path = temp_dir

# Create subdirectories
os.makedirs(f'{knowledge_path}/embedding', exist_ok=True)
os.makedirs(f'{knowledge_path}/theme_dist', exist_ok=True)

# Create dummy text mappings
dense_text_mapping = [f'dense_text_{i}' for i in range(10)]
theme_text_mapping = [f'theme_text_{i}' for i in range(8)]
# Add some overlapping texts
dense_text_mapping.extend(['theme_text_0', 'theme_text_1', 'theme_text_2'])
theme_text_mapping.extend(['dense_text_0', 'dense_text_1'])

# Save text mappings as JSON
with open(f'{knowledge_path}/embedding/text_mapping.json', 'wb') as f:
    f.write(orjson.dumps(dense_text_mapping))

with open(f'{knowledge_path}/theme_dist/text_mapping.json', 'wb') as f:
    f.write(orjson.dumps(theme_text_mapping))

# Create dummy FAISS indices
# Dense index: 13 vectors of dimension 128
dense_vectors = np.random.randn(13, 128).astype('float32')
dense_index = faiss.IndexFlatL2(128)
dense_index.add(dense_vectors)
faiss.write_index(dense_index, f'{knowledge_path}/embedding/wikipedia_embeddings.faiss')

# Theme index: 10 vectors of dimension 128
theme_vectors = np.random.randn(10, 128).astype('float32')
theme_index = faiss.IndexFlatL2(128)
theme_index.add(theme_vectors)
faiss.write_index(theme_index, f'{knowledge_path}/theme_dist/theme_embeddings.faiss')

# Define ARGS
ARGS = {
    'knowledge_path': knowledge_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
faiss, numpy, orjson, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
prepare_split_mappings Ran
ran on a synthesized input
pat-jj/Retrieval-And-Structure/archived/split_efficient.py
code served (permissive licence) · get_code("742860f487a75103")
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 list, 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 tempfile
import os
import json
import numpy as np
import faiss

# Create temporary directory structure
temp_dir = tempfile.mkdtemp()
knowledge_path = temp_dir

# Create subdirectories
os.makedirs(f'{knowledge_path}/theme_dist', exist_ok=True)
os.makedirs(f'{knowledge_path}/embedding', exist_ok=True)

# Create theme text mapping
theme_texts = [f'theme_text_{i}' for i in range(50)]
with open(f'{knowledge_path}/theme_dist/text_mapping.json', 'w') as f:
    json.dump(theme_texts, f)

# Create dense text mapping (with some overlap)
dense_texts = [f'theme_text_{i}' for i in range(30)] + [f'dense_text_{i}' for i in range(20)]
with open(f'{knowledge_path}/embedding/text_mapping.json', 'w') as f:
    json.dump(dense_texts, f)

# Create theme embeddings FAISS index
dim = 768
nb = len(theme_texts)
np.random.seed(0)
vectors = np.random.randn(nb, dim).astype('float32')

# Ensure some vectors have significant norms (> 1e-08)
for i in range(nb):
    vectors[i] = vectors[i] / (np.linalg.norm(vectors[i]) + 1e-6)
    vectors[i] = vectors[i] * (i % 10 + 1)  # Scale to ensure norm > 1e-08

index = faiss.IndexFlatL2(dim)
index.add(vectors)
faiss.write_index(index, f'{knowledge_path}/theme_dist/theme_embeddings.faiss')

ARGS = {
    'knowledge_path': knowledge_path,
    'num_splits': 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
faiss, numpy, orjson, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
retrieve Ran
ran on a synthesized input
pat-jj/Retrieval-And-Structure/archived/theme_dense_ret.py
code served (permissive licence) · get_code("87ab1eb8f4c9f280")
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 list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import torch.nn as nn
import numpy as np
import faiss

torch.manual_seed(0)
np.random.seed(0)

# Build minimal models that satisfy the function's usage

class DenseEncoder(nn.Module):
    def __init__(self):
        super().__init__()
        self.embedding = nn.Linear(10, 4)
    
    def forward(self, input_ids, attention_mask=None, **kwargs):
        # Simulate transformer output with last_hidden_state
        class Output:
            def __init__(self, lhs):
                self.last_hidden_state = lhs
        batch_size = input_ids.shape[0]
        lhs = self.embedding(torch.randn(batch_size, 1, 10))
        return Output(lhs)

class ThemeClassifier(nn.Module):
    def __init__(self):
        super().__init__()
        self.fc = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.fc(x)

class ThemeShifter(nn.Module):
    def __init__(self):
        super().__init__()
        self.fc = nn.Linear(3, 3)
    
    def forward(self, x):
        return self.fc(x)

class SimpleTokenizer:
    def __call__(self, text, padding=True, truncation=True, return_tensors='pt'):
        # Return a mock tokenizer output
        class TokenOutput:
            def __init__(self):
                self.input_ids = torch.randint(0, 100, (1, 10))
                self.attention_mask = torch.ones(1, 10)
            
            def keys(self):
                return ['input_ids', 'attention_mask']
            
            def __getitem__(self, key):
                if key == 'input_ids':
                    return self.input_ids
                elif key == 'attention_mask':
                    return self.attention_mask
        return TokenOutput()

class SimpleThemeEncoder:
    def encode(self, text, convert_to_tensor=True):
        return torch.randn(4)

# Create FAISS indices
dense_dim = 4
theme_dim = 3

# Dense index: store 50 vectors
dense_vectors = np.random.randn(50, dense_dim).astype('float32')
dense_vectors = dense_vectors / np.linalg.norm(dense_vectors, axis=1, keepdims=True)
dense_faiss_index = faiss.IndexFlatIP(dense_dim)
dense_faiss_index.add(dense_vectors)

# Theme index: store 40 vectors
theme_vectors = np.random.randn(40, theme_dim).astype('float32')
theme_vectors = theme_vectors / np.linalg.norm(theme_vectors, axis=1, keepdims=True)
theme_faiss_index = faiss.IndexFlatIP(theme_dim)
theme_faiss_index.add(theme_vectors)

# Text mappings
dense_text_mapping = {i: f"dense_doc_{i}" for i in range(50)}
theme_text_mapping = {i: f"theme_doc_{i}" for i in range(40)}

# Theme to dense and dense to theme mappings
theme_to_dense_idx = {i: (i % 50) for i in range(40)}
dense_to_theme_idx = {(i % 50): i for i in range(40)}

# Models tuple
dense_encoder_tokenizer = SimpleTokenizer()
dense_encoder_model = DenseEncoder()
theme_classifier = ThemeClassifier()
theme_encoder = SimpleThemeEncoder()
theme_label_mapping = {0: "theme_0", 1: "theme_1", 2: "theme_2"}
theme_shifter = ThemeShifter()

models = (
    dense_encoder_tokenizer,
    dense_encoder_model,
    theme_classifier,
    theme_encoder,
    theme_label_mapping,
    theme_shifter
)

# Knowledge index tuple
knowledge_index = (
    dense_text_mapping,
    dense_faiss_index,
    theme_text_mapping,
    theme_faiss_index,
    theme_to_dense_idx,
    dense_to_theme_idx
)

ARGS = {
    'query': 'what is machine learning',
    'models': models,
    'knowledge_index': knowledge_index,
    'theme_top_k': 50000,
    'dense_top_k': 100
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
faiss, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family float — a list 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
save_faiss_index_safely Ran
ran on a synthesized input
pat-jj/Retrieval-And-Structure/archived/theme_dense_ret_gpu_v2.py
code served (permissive licence) · get_code("dcab01df1508833b")
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 os
import tempfile
import faiss
import numpy as np

# Create a temporary directory for the test
temp_dir = tempfile.mkdtemp()

# Create a small FAISS index
dimension = 4
index = faiss.IndexFlatL2(dimension)

# Add some dummy vectors to the index
vectors = np.random.rand(5, dimension).astype(np.float32)
index.add(vectors)

# Define the filepath where the index will be saved
filepath = os.path.join(temp_dir, "test_index.faiss")

ARGS = {
    "index": index,
    "filepath": filepath
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
faiss, numpy — 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
convert_index_to_l2 Not yet run
unverified (harvested, no recorded run)
pat-jj/Retrieval-And-Structure/archived/theme_dense_ret_gpu_v1.py
code served (permissive licence) · get_code("b17548f37cf21541")
How it ran

no invocation recorded.

cpu_cuda Not yet run
unverified (harvested, no recorded run)
pat-jj/Retrieval-And-Structure/baselines/start_knowtrace_retrieval_server_cpu.py
code served (permissive licence) · get_code("56a4c2457dfdb116")
How it ran

no invocation recorded.

generate_text_iter Not yet run
unverified (harvested, no recorded run)
haruhi-sudo/rpg/inference/long_form_demo.py
pointer only (licence: NONE) · get_code("c65ec42fd5ea52f5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, haruhi-sudo/rpg when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_and_filter_indices Not yet run
unverified (harvested, no recorded run)
pat-jj/Retrieval-And-Structure/archived/split_indices.py
code served (permissive licence) · get_code("abe55d649017f1d8")
How it ran

no invocation recorded.

load_knowledge Not yet run
unverified (harvested, no recorded run)
pat-jj/Retrieval-And-Structure/archived/theme_dense_ret_gpu_v1.py
code served (permissive licence) · get_code("0fca4db50662c50f")
How it ran

no invocation recorded.

Also present in other papers' code

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

Large language models (LLMs) have achieved impressive performance on knowledge-intensive tasks, yet they often struggle with multi-step reasoning due to the unstructured nature of retrieved context. While retrieval-augmented generation (RAG) methods provide external information, the lack of explicit organization among retrieved passages limits their effectiveness, leading to brittle reasoning pathways. Recent interpretability studies highlighting the importance of structured intermediate reasoning further align with this perspective. We propose Retrieval-And-Structuring (RAS), a framework that dynamically constructs question-specific knowledge graphs through iterative retrieval and structured knowledge building. RAS interleaves targeted retrieval planning with incremental graph construction, enabling models to assemble and reason over evolving knowledge structures tailored to each query. On seven knowledge-intensive benchmarks, RAS consistently outperforms strong baselines, achieving up to 8.7% and 7.0% gains with proprietary and open-source LLMs, respectively. Our results demonstrate that dynamic, question-specific knowledge structuring offers a robust path to improving reasoning accuracy and robustness in language model generation.

For agents

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

get_harvested_code_for_paper("2502.10996")
get_code_for_paper("2502.10996")
have("2502.10996")

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

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

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

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

Connect an agent — have() is free.