SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.03184 · NeurIPS · 2023

Retrieval-augmented Generation to Improve Math Question-Answering: Trade-offs Between Groundedness and Human Preference

Zachary Levonian, Chenglu Li, Wangda Zhu, Anoushka Gade, Owen Henkel, Millie-Ellen Postle, Wanli Xing

arXiv · PDF · Open in the Atlas

Code that ran

12 of 20 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, 2 violated it and 7 have no contract verdict; 3 failures of our instrument; 8 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/2310.03184.json · badge: /api/ran/2310.03184.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
digitalharborfoundation/rag-for-math-qa canonical (classifier label)
classifier basis: census
7 ran · 8 no recorded run
levon003/wiki-ores-feedback community (classifier label)
classifier basis not recorded on the link
5 ran · 0 no recorded run
FunctionStatusWhere it lives
KLdivergence Ran
ran on a synthesized input
levon003/wiki-ores-feedback/src/data_shift/computeMonthSampleAdjacentInverseKld.py
code served (permissive licence) · get_code("0d2530ff40d0ad16")
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 float64, ndim 0, 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 numpy as np
from scipy.spatial import cKDTree as KDTree

# Create sample data for the KL divergence calculation
# x represents samples from distribution P (true distribution)
# y represents samples from distribution Q (approximate distribution)

np.random.seed(0)

# x: 2D array with shape (n, d) where n=5 samples, d=3 dimensions
x = np.random.randn(5, 3).astype(np.float64)

# y: 2D array with shape (m, d) where m=4 samples, d=3 dimensions (same as x)
y = np.random.randn(4, 3).astype(np.float64)

ARGS = {
    "x": x,
    "y": y,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
cast_unicode Ran
ran; our contract draft was wrong, not the code
digitalharborfoundation/rag-for-math-qa/src/experiment/auth.py
code served (permissive licence) · get_code("adbb8e277c65f872")
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

# Analyze the function: cast_unicode takes a bytes or str (s) and an encoding string
# It returns a str by either decoding bytes or returning the str as-is

# Test case 1: bytes input
test_bytes = b"Hello World"
test_encoding = "utf-8"

# Test case 2: str input  
test_str = "Already a string"

# We'll test with bytes since that exercises the decode path
ARGS = {
    "s": b"Hello World",
    "encoding": "utf-8"
}
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 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
compute_kld Ran
ran on a synthesized input
levon003/wiki-ores-feedback/src/data_shift/computeMonthSampleAdjacentInverseKld.py
code served (permissive licence) · get_code("96886c0813d3e0d0")
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 numpy as np
import pandas as pd
from scipy.spatial import cKDTree as KDTree

class MockDistribution:
    """Mock distribution that can sample and supports to_numpy()"""
    def __init__(self, mean=0.0, std=1.0, n_features=4):
        self.mean = mean
        self.std = std
        self.n_features = n_features
    
    def sample(self, n=100):
        """Return a DataFrame-like object with sample method"""
        data = np.random.normal(self.mean, self.std, (n, self.n_features))
        return pd.DataFrame(data)

# Create two mock distributions with different parameters
sdf = MockDistribution(mean=0.0, std=1.0, n_features=4)
tdf = MockDistribution(mean=0.5, std=1.2, n_features=4)

ARGS = {
    "sdf": sdf,
    "tdf": tdf,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, scipy — 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
generate_user_text_dict Ran
ran on a synthesized input
levon003/wiki-ores-feedback/src/data_extraction/joinOresScores.py
code served (permissive licence) · get_code("4131bc1dcba26fa6")
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
import pandas as pd
import os
import tempfile

# Create a minimal mock ores_df DataFrame
# The function groups by 'user_text' and accesses: user_is_bot, user_is_trusted, user_edit_count
ores_df = pd.DataFrame({
    'user_text': ['user1', 'user1', 'user2', 'user2', 'user3'],
    'user_is_bot': [False, False, True, True, False],
    'user_is_trusted': [False, False, False, False, True],
    'user_edit_count': [5, 15, 400, 600, 50]
})

ARGS = {
    'ores_df': ores_df,
    'use_cached_if_available': False,
    'should_cache_result': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, tqdm — 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_completion_with_wait Ran
ran on a synthesized input
digitalharborfoundation/rag-for-math-qa/src/experiment/completion_utils.py
code served (permissive licence) · get_code("bd9fa112de9cd9ef")
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 logging
import time
from unittest.mock import Mock, patch

logging.basicConfig(level=logging.WARNING)

# Create mock messages list - the function passes this to get_completion
messages = [
    {"role": "user", "content": "Hello, how are you?"},
    {"role": "assistant", "content": "I'm doing well, thank you!"}
]

# Mock the openai.ChatCompletion.create to avoid actual API calls
def mock_create(*args, **kwargs):
    return {
        'choices': [
            {
                'message': {
                    'content': 'This is a mock completion response.'
                }
            }
        ]
    }

# Patch openai before importing or calling the functions
with patch('openai.ChatCompletion.create', side_effect=mock_create):
    pass

ARGS = {
    'messages': messages,
    'sleep': 0.1,
    'max_attempts': 3,
    'sleep_time_between_attempts': 5,
    'model_name': 'gpt-3.5-turbo-0613',
    'request_timeout': 20
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai — 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_distance_sort_indices Ran
ran, violated the contract we drafted
digitalharborfoundation/rag-for-math-qa/src/rag/retrieval.py
code served (permissive licence) · get_code("46cb5857633642b6")
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 ndarray, ndim 1, dtype family int, shape (5,) 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 numpy as np

# Create a simple distance array
distances = np.array([3.5, 1.2, 4.1, 0.8, 2.3])

ARGS = {
    "distances": distances
}
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 ndarray, ndim 1, dtype family int, shape (5,) — shape (5,) 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_engine Ran
ran on a synthesized input
levon003/wiki-ores-feedback/src/data_extraction/extractStubRevData.py
code served (permissive licence) · get_code("41b9d76b39f4c2d7")
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 Engine. 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 os

# Create a temporary directory for the test database
temp_dir = tempfile.mkdtemp()
output_filepath = os.path.join(temp_dir, 'test.db')

ARGS = {
    'output_filepath': output_filepath
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sqlalchemy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Engine — a Engine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Engine 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_gpd_codes Ran
ran; our contract draft was wrong, not the code
digitalharborfoundation/rag-for-math-qa/src/rag/gpf_utils.py
code served (permissive licence) · get_code("82c54c9e968c5109")
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
import numpy as np

# Analyze the function:
# - Takes a single parameter: lesson_code (a string)
# - Splits it by '.'
# - Expects format: G<grade>.<domain><construct>.<subconstruct>.<skill>.<index>
# - Example: G9.N5.1.3.1

ARGS = {
    "lesson_code": "G9.N5.1.3.1"
}
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 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
get_openai_embeddings_cached Ran
ran on a synthesized input
digitalharborfoundation/rag-for-math-qa/src/rag/embedding_utils.py
code served (permissive licence) · get_code("98a37e5d6771556e")
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. 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 functools
import numpy as np
from unittest.mock import Mock, patch

# Mock the openai module since we can't make real API calls
import sys
mock_openai = Mock()

# Create a mock result for the embedding call
mock_embedding_data = [
    {'embedding': [0.1, 0.2, 0.3, 0.4]},
    {'embedding': [0.5, 0.6, 0.7, 0.8]},
    {'embedding': [0.9, 1.0, 1.1, 1.2]}
]
mock_result = Mock()
mock_result.data = mock_embedding_data
mock_openai.Embedding.create.return_value = mock_result

sys.modules['openai'] = mock_openai

# Now define the function with mocked openai
EMBEDDING_MODEL = 'text-embedding-ada-002'

@functools.lru_cache(maxsize=512, typed=True)
def get_openai_embeddings_cached(texts: tuple[str], embedding_model: str=EMBEDDING_MODEL) -> list[np.array]:
    result = mock_openai.Embedding.create(input=texts, engine=embedding_model)
    embedding_list = [np.array(d['embedding']) for d in result.data]
    return embedding_list

# Define arguments
ARGS = {
    'texts': ('hello world', 'goodbye world', 'test string'),
    'embedding_model': 'text-embedding-ada-002'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, openai — 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
get_stub_history_paths Ran
ran on a synthesized input
levon003/wiki-ores-feedback/src/data_extraction/extractRevertsFromStubHistory.py
code served (permissive licence) · get_code("22d379b9c5b9e756")
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 os
import tempfile
import shutil

# Create a temporary directory with some stub history files
stub_history_dir = tempfile.mkdtemp()

# Create some .xml.gz files and some other files
xml_gz_files = ['history_001.xml.gz', 'history_002.xml.gz', 'history_003.xml.gz']
other_files = ['readme.txt', 'config.json', 'data.xml']

for filename in xml_gz_files:
    filepath = os.path.join(stub_history_dir, filename)
    with open(filepath, 'w') as f:
        f.write('')

for filename in other_files:
    filepath = os.path.join(stub_history_dir, filename)
    with open(filepath, 'w') as f:
        f.write('')

ARGS = {
    'stub_history_dir': stub_history_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 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
is_valid_generation Ran
ran, violated the contract we drafted
digitalharborfoundation/rag-for-math-qa/src/experiment/generate.py
code served (permissive licence) · get_code("da2b82577b524fe9")
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 torch

torch.manual_seed(0)

ARGS = {
    'generation': {
        'messages': [
            {'role': 'user', 'content': 'hello'},
            {'role': 'assistant', 'content': 'hi there'}
        ],
        'generation': 'This is a generated response'
    }
}
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 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
normalize_text Ran
ran; our contract draft was wrong, not the code
digitalharborfoundation/rag-for-math-qa/src/rag/retrieval.py
code served (permissive licence) · get_code("94af878e3d7b1853")
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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "text": "hello\nworld\n  test  "
}
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 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
create_stopword_token_set_from_word_list Not yet run
unverified (harvested, no recorded run)
digitalharborfoundation/rag-for-math-qa/src/rag/logit_bias.py
code served (permissive licence) · get_code("1c67a076bad0e201")
How it ran

no invocation recorded.

get_completion_noraise Not yet run
unverified (harvested, no recorded run)
digitalharborfoundation/rag-for-math-qa/src/experiment/completion_utils.py
code served (permissive licence) · get_code("8fda8a976b120b21")
How it ran

no invocation recorded.

get_completion_with_retries Not yet run
unverified (harvested, no recorded run)
digitalharborfoundation/rag-for-math-qa/src/experiment/completion_utils.py
code served (permissive licence) · get_code("37b5fee433b8ce88")
How it ran

no invocation recorded.

get_openai_embeddings Not yet run
unverified (harvested, no recorded run)
digitalharborfoundation/rag-for-math-qa/src/rag/embedding_utils.py
code served (permissive licence) · get_code("550fc2b428948b52")
How it ran

no invocation recorded.

get_token_counts Not yet run
unverified (harvested, no recorded run)
digitalharborfoundation/rag-for-math-qa/src/rag/embedding_utils.py
code served (permissive licence) · get_code("c00df0e3ac6429e8")
How it ran

no invocation recorded.

get_tokenizer Not yet run
unverified (harvested, no recorded run)
digitalharborfoundation/rag-for-math-qa/src/rag/logit_bias.py
code served (permissive licence) · get_code("aded11c82372d198")
How it ran

no invocation recorded.

passwd_check Not yet run
unverified (harvested, no recorded run)
digitalharborfoundation/rag-for-math-qa/src/experiment/auth.py
code served (permissive licence) · get_code("28d7d8b230a26677")
How it ran

no invocation recorded.

passwd_hash Not yet run
unverified (harvested, no recorded run)
digitalharborfoundation/rag-for-math-qa/src/experiment/auth.py
code served (permissive licence) · get_code("e0bc8c8de21785b1")
How it ran

no invocation recorded.

Also present in other papers' code

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

For middle-school math students, interactive question-answering (QA) with tutors is an effective way to learn. The flexibility and emergent capabilities of generative large language models (LLMs) has led to a surge of interest in automating portions of the tutoring process-including interactive QA to support conceptual discussion of mathematical concepts. However, LLM responses to math questions can be incorrect or mismatched to the educational context-such as being misaligned with a school's curriculum. One potential solution is retrieval-augmented generation (RAG), which involves incorporating a vetted external knowledge source in the LLM prompt to increase response quality. In this paper, we designed prompts that retrieve and use content from a high-quality open-source math textbook to generate responses to real student questions. We evaluate the efficacy of this RAG system for middle-school algebra and geometry QA by administering a multi-condition survey, finding that humans prefer responses generated using RAG, but not when responses are too grounded in the textbook content. We argue that while RAG is able to improve response quality, designers of math QA systems must consider trade-offs between generating responses preferred by students and responses closely matched to specific educational resources.

For agents

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

get_harvested_code_for_paper("2310.03184")
get_code_for_paper("2310.03184")
have("2310.03184")

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

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

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

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

Connect an agent — have() is free.