SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.20860 · 2026

RealRoute: Dynamic Query Routing System via Retrieve-then-Verify Paradigm

Fan Yang, Jinman Zhao, Zhen Xiang, Jingcheng Niu, Xi Zhu, Qinkai Yu, Zirui He, Jiahe Liu

arXiv · PDF · Open in the Atlas

Code that ran

9 of 14 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; 9 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/2604.20860.json · badge: /api/ran/2604.20860.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
Joseph1951210/RealRoute community
Papers with Code archive
9 ran · 5 no recorded run
FunctionStatusWhere it lives
_apply_per_source_cap Ran
ran; our contract draft was wrong, not the code
Joseph1951210/RealRoute/pipeline/subquery_executor.py
pointer only (licence: NONE) · get_code("4d9104fc9b62d410")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Joseph1951210/RealRoute 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.

_select_by_norm_score Ran
ran; our contract draft was wrong, not the code
Joseph1951210/RealRoute/pipeline/subquery_executor.py
pointer only (licence: NONE) · get_code("b2c6f3af5998f3e3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Joseph1951210/RealRoute 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.

_select_by_routing_weighted Ran
ran; our contract draft was wrong, not the code
Joseph1951210/RealRoute/pipeline/subquery_executor.py
pointer only (licence: NONE) · get_code("accbe74f787fa656")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Joseph1951210/RealRoute 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.

_select_by_rrf Ran
ran; our contract draft was wrong, not the code
Joseph1951210/RealRoute/pipeline/subquery_executor.py
pointer only (licence: NONE) · get_code("b672fafa11e23b38")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Joseph1951210/RealRoute 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.

_select_by_score Ran
ran; our contract draft was wrong, not the code
Joseph1951210/RealRoute/pipeline/subquery_executor.py
pointer only (licence: NONE) · get_code("3689ec36d5ecfa0e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Joseph1951210/RealRoute 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.

retrieve_multi_source Ran
ran; our contract draft was wrong, not the code
Joseph1951210/RealRoute/pipeline/subquery_executor.py
pointer only (licence: NONE) · get_code("0ecc43615afcd0b5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Joseph1951210/RealRoute 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.

route_query_multi_source Ran
ran; our contract draft was wrong, not the code
Joseph1951210/RealRoute/pipeline/subquery_executor.py
pointer only (licence: NONE) · get_code("02c769feb9c8032c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Joseph1951210/RealRoute 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.

route_query_with_llm Ran
ran; our contract draft was wrong, not the code
Joseph1951210/RealRoute/pipeline/subquery_executor.py
pointer only (licence: NONE) · get_code("58d8b9491e3b41b7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Joseph1951210/RealRoute 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.

substitute_variables Ran
ran; our contract draft was wrong, not the code
Joseph1951210/RealRoute/pipeline/subquery_executor.py
pointer only (licence: NONE) · get_code("5ffdd498f230b927")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Joseph1951210/RealRoute 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.

_select_by_llm Not yet run
unverified (harvested, no recorded run)
Joseph1951210/RealRoute/pipeline/subquery_executor.py
pointer only (licence: NONE) · get_code("18662d65d0be2405")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Joseph1951210/RealRoute 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.

call_openai_chat Not yet run
unverified (harvested, no recorded run)
Joseph1951210/RealRoute/pipeline/subquery_executor.py
pointer only (licence: NONE) · get_code("1b3d64c0d7e56467")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Joseph1951210/RealRoute 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.

count_tokens Not yet run
unverified (harvested, no recorded run)
Joseph1951210/RealRoute/pipeline/subquery_executor.py
pointer only (licence: NONE) · get_code("ab165e30f271182c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Joseph1951210/RealRoute 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.

execute_subquery Not yet run
unverified (harvested, no recorded run)
Joseph1951210/RealRoute/pipeline/subquery_executor.py
pointer only (licence: NONE) · get_code("561e84b98685c005")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Joseph1951210/RealRoute 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.

select_evidence Not yet run
unverified (harvested, no recorded run)
Joseph1951210/RealRoute/pipeline/subquery_executor.py
pointer only (licence: NONE) · get_code("7943c6143f78a3c5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Joseph1951210/RealRoute 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.

Also present in other papers' code

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

Despite the success of Retrieval-Augmented Generation (RAG) in grounding LLMs with external knowledge, its application over heterogeneous sources (e.g., private databases, global corpora, and APIs) remains a significant challenge. Existing approaches typically employ an LLM-as-a-Router to dispatch decomposed sub-queries to specific sources in a predictive manner. However, this "LLM-as-a-Router" strategy relies heavily on the semantic meaning of different data sources, often leading to routing errors when source boundaries are ambiguous. In this work, we introduce Re-alRoute System, a framework that shifts the paradigm from predictive routing to a robust Retrieve-then-Verify mechanism. RealRoute ensures evidence completeness through parallel, source-agnostic retrieval, followed by a dynamic verifier that cross-checks the results and synthesizes a factually grounded answer. Our demonstration allows users to visualize the real-time "re-routing" process and inspect the verification chain across multiple knowledge silos. Experiments show that Re-alRoute significantly outperforms predictive baselines in the multi-hop Rag reasoning task. The RealRoute system is released as an opensource toolkit with a user-friendly web interface. The code is available at the URL: https: //github.com/Joseph1951210/RealRoute.

For agents

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

get_harvested_code_for_paper("2604.20860")
get_code_for_paper("2604.20860")
have("2604.20860")

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

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

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

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

Connect an agent — have() is free.