{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2604-20860","title":"RealRoute: Dynamic Query Routing System via Retrieve-then-Verify Paradigm","arxiv_id":"2604.20860","date":"2026-03-02","proceeding":null,"authors":["Jiahe Liu","Qinkai Yu","Jingcheng Niu","Xi Zhu","Zirui He","Zhen Xiang","Fan Yang","Jinman Zhao"],"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 RealRoute System, a framework that shifts the paradigm from predictive routing to a robust Retrieve-then-Verify mechanism. RealRoute ensures \\textit{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 RealRoute significantly outperforms predictive baselines in the multi-hop Rag reasoning task. The RealRoute system is released as an open-source toolkit with a user-friendly web interface. The code is available at the URL: https://github.com/Joseph1951210/RealRoute.","url_abs":"https://arxiv.org/abs/2604.20860","url_pdf":"https://arxiv.org/pdf/2604.20860","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2604.20860","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.20860"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/Joseph1951210/RealRoute","reach":null}],"summary":{"ran_draft_wrong":6,"ran":3,"unverified":5},"by_repo_kind":{"found_in_text":{"samples":14,"ran":9,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":14,"samples":[{"code_sha256_prefix":"4d9104fc9b62d410","entry":"_apply_per_source_cap","repo":"Joseph1951210/RealRoute","repo_kind":"found_in_text","path":"pipeline/subquery_executor.py","file_url":"https://github.com/Joseph1951210/RealRoute/blob/HEAD/pipeline/subquery_executor.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4d9104fc9b62d410"}},{"code_sha256_prefix":"b2c6f3af5998f3e3","entry":"_select_by_norm_score","repo":"Joseph1951210/RealRoute","repo_kind":"found_in_text","path":"pipeline/subquery_executor.py","file_url":"https://github.com/Joseph1951210/RealRoute/blob/HEAD/pipeline/subquery_executor.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b2c6f3af5998f3e3"}},{"code_sha256_prefix":"accbe74f787fa656","entry":"_select_by_routing_weighted","repo":"Joseph1951210/RealRoute","repo_kind":"found_in_text","path":"pipeline/subquery_executor.py","file_url":"https://github.com/Joseph1951210/RealRoute/blob/HEAD/pipeline/subquery_executor.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"accbe74f787fa656"}},{"code_sha256_prefix":"b672fafa11e23b38","entry":"_select_by_rrf","repo":"Joseph1951210/RealRoute","repo_kind":"found_in_text","path":"pipeline/subquery_executor.py","file_url":"https://github.com/Joseph1951210/RealRoute/blob/HEAD/pipeline/subquery_executor.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b672fafa11e23b38"}},{"code_sha256_prefix":"3689ec36d5ecfa0e","entry":"_select_by_score","repo":"Joseph1951210/RealRoute","repo_kind":"found_in_text","path":"pipeline/subquery_executor.py","file_url":"https://github.com/Joseph1951210/RealRoute/blob/HEAD/pipeline/subquery_executor.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3689ec36d5ecfa0e"}},{"code_sha256_prefix":"0ecc43615afcd0b5","entry":"retrieve_multi_source","repo":"Joseph1951210/RealRoute","repo_kind":"found_in_text","path":"pipeline/subquery_executor.py","file_url":"https://github.com/Joseph1951210/RealRoute/blob/HEAD/pipeline/subquery_executor.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0ecc43615afcd0b5"}},{"code_sha256_prefix":"02c769feb9c8032c","entry":"route_query_multi_source","repo":"Joseph1951210/RealRoute","repo_kind":"found_in_text","path":"pipeline/subquery_executor.py","file_url":"https://github.com/Joseph1951210/RealRoute/blob/HEAD/pipeline/subquery_executor.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"02c769feb9c8032c"}},{"code_sha256_prefix":"58d8b9491e3b41b7","entry":"route_query_with_llm","repo":"Joseph1951210/RealRoute","repo_kind":"found_in_text","path":"pipeline/subquery_executor.py","file_url":"https://github.com/Joseph1951210/RealRoute/blob/HEAD/pipeline/subquery_executor.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"58d8b9491e3b41b7"}},{"code_sha256_prefix":"5ffdd498f230b927","entry":"substitute_variables","repo":"Joseph1951210/RealRoute","repo_kind":"found_in_text","path":"pipeline/subquery_executor.py","file_url":"https://github.com/Joseph1951210/RealRoute/blob/HEAD/pipeline/subquery_executor.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5ffdd498f230b927"}},{"code_sha256_prefix":"18662d65d0be2405","entry":"_select_by_llm","repo":"Joseph1951210/RealRoute","repo_kind":"found_in_text","path":"pipeline/subquery_executor.py","file_url":"https://github.com/Joseph1951210/RealRoute/blob/HEAD/pipeline/subquery_executor.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"18662d65d0be2405"}},{"code_sha256_prefix":"1b3d64c0d7e56467","entry":"call_openai_chat","repo":"Joseph1951210/RealRoute","repo_kind":"found_in_text","path":"pipeline/subquery_executor.py","file_url":"https://github.com/Joseph1951210/RealRoute/blob/HEAD/pipeline/subquery_executor.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1b3d64c0d7e56467"}},{"code_sha256_prefix":"ab165e30f271182c","entry":"count_tokens","repo":"Joseph1951210/RealRoute","repo_kind":"found_in_text","path":"pipeline/subquery_executor.py","file_url":"https://github.com/Joseph1951210/RealRoute/blob/HEAD/pipeline/subquery_executor.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ab165e30f271182c"}},{"code_sha256_prefix":"561e84b98685c005","entry":"execute_subquery","repo":"Joseph1951210/RealRoute","repo_kind":"found_in_text","path":"pipeline/subquery_executor.py","file_url":"https://github.com/Joseph1951210/RealRoute/blob/HEAD/pipeline/subquery_executor.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"561e84b98685c005"}},{"code_sha256_prefix":"7943c6143f78a3c5","entry":"select_evidence","repo":"Joseph1951210/RealRoute","repo_kind":"found_in_text","path":"pipeline/subquery_executor.py","file_url":"https://github.com/Joseph1951210/RealRoute/blob/HEAD/pipeline/subquery_executor.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7943c6143f78a3c5"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.AI","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}