pith:TXQVCDGD
Retrieval is Cheap, Show Me the Code: Executable Multi-Hop Reasoning for Retrieval-Augmented Generation
PyRAG reformulates multi-hop RAG as synthesis and execution of Python programs over retrieval tools.
arxiv:2605.12975 v1 · 2026-05-13 · cs.AI
Add to your LaTeX paper
\usepackage{pith}
\pithnumber{TXQVCDGDU5XNKGAJFHRL5YFFOO}
Prints a linked badge after your title and injects PDF metadata. Compiles on arXiv. Learn more · Embed verified badge
Record completeness
Claims
PyRAG reformulates multi-hop RAG as program synthesis and execution, enabling compiler-grounded self-repair and execution-driven adaptive retrieval without any additional training, and consistently outperforms strong baselines on five QA benchmarks with large gains on compositional multi-hop datasets.
That code-specialized language models can reliably synthesize correct executable programs for multi-hop reasoning and that execution feedback alone suffices for self-repair without additional training or human oversight.
PyRAG turns multi-hop reasoning into executable Python code over retrieval tools for explicit, verifiable step-by-step RAG.
References
Formal links
Receipt and verification
| First computed | 2026-05-18T03:09:08.763960Z |
|---|---|
| Builder | pith-number-builder-2026-05-17-v1 |
| Signature | Pith Ed25519
(pith-v1-2026-05) · public key |
| Schema | pith-number/v1.0 |
Canonical hash
9de1510cc3a76ed5180929e2bee0a5738cae4cd717624087ade232a72852cc07
Aliases
· · · · ·Agent API
Verify this Pith Number yourself
curl -sH 'Accept: application/ld+json' https://pith.science/pith/TXQVCDGDU5XNKGAJFHRL5YFFOO \
| jq -c '.canonical_record' \
| python3 -c "import sys,json,hashlib; b=json.dumps(json.loads(sys.stdin.read()), sort_keys=True, separators=(',',':'), ensure_ascii=False).encode(); print(hashlib.sha256(b).hexdigest())"
# expect: 9de1510cc3a76ed5180929e2bee0a5738cae4cd717624087ade232a72852cc07
Canonical record JSON
{
"metadata": {
"abstract_canon_sha256": "edd89fe4071ca30b1c3f0974ea426bf6988c50805ef42fad2f4913521ce95e34",
"cross_cats_sorted": [],
"license": "http://arxiv.org/licenses/nonexclusive-distrib/1.0/",
"primary_cat": "cs.AI",
"submitted_at": "2026-05-13T04:14:13Z",
"title_canon_sha256": "1d97c7f21586a0542518b277b13610e8eca1507d01b4dc4e6eb54a3a3817b6dd"
},
"schema_version": "1.0",
"source": {
"id": "2605.12975",
"kind": "arxiv",
"version": 1
}
}