RubikSQL-HB: Agentic Text-to-SQL with Knowledge in the Loop
Haorui Jia, Zihan Qu, Yundi Dong, Ziyang Mei, Chi Zhang, Zezhi Zheng, Dousheng Zhao, Jiahao Zhang, Zui Chen, Han Li
Abstract
Database agents need more than schema structure: business meanings, stored values and reference queries supply knowledge that becomes relevant at different points in reasoning. We introduce RubikSQL-HB, which exposes these materials through queryable, database-specific knowledge workspaces built on the HeavenBase platform. Its knowledge interface remains available as an agent constructs and investigates an answer. Candidate agents interleave knowledge access with SQL construction and execution; a downstream Judge can reuse the same interfaces to investigate disagreements. A two-stage example interface separates discovering a reference question from expanding its SQL. On a 500-question BIRD Mini-Dev evaluation, the full pipeline reaches 75.2% execution accuracy, against 71.2% for first-candidate selection and 70.4% for execution-majority voting, with a correct candidate available on 79.0% of questions. The raw-knowledge condition, which also regenerates candidates without the built workspace, is 3.0 points lower, and adjudication with tools and revision accounts for most of the gain over selection baselines. A recorded execution probe shows how continued investigation resolves a candidate disagreement. Separate archived runs show semantic revision recovering answers absent from their original candidate pools. A versioned development study further illustrates how recurring corrections become reusable execution checks. The system and results connect knowledge-interface design to agent decision quality: queryable knowledge supports the construction of useful alternatives, and evidence-aware adjudication connects those alternatives to a final answer. Keeping knowledge in the loop lets agents acquire relevant observations as their reasoning develops.
Create a lesson
Related papers
A Text-to-SQL Benchmark for Official Statistics
Shared title terminologycs.AILucas Lageweg, Karen Goes, Tom van den Broek et al.
Know When to Abstain: Conformal Confidence Estimation for Text-to-SQL
Shared title terminologycs.AIAvinash Kumar Singh, Bhaskarjit Sarmah, Stefano Pasquali
EviCraft: Can Minecraft Agents Find What They Cannot See?
Shared title terminologycs.AIWenyou Yi, Lantian Zhang, Guanlin Chen et al.
CAPTA: Identifying LLMs Behind AI Agents
Shared title terminologycs.AIKailun Yan, Yue Huang, Sisi Duan
Can AI Design a Better nnU-Net? A Hypothesis-Driven Architecture Discovery Loop from Failures to Design Rules
Shared title terminologycs.AISongtao Jiang, Yuan Wang, Fucheng Niu et al.
The Control-Flow Tax: Specialized Decision Routing for LLM Agent Workflows
Shared title terminologycs.AIZhikai Cheng, Shuanghu Wang, Li Jiang