RubikSQL-HB: Agentic Text-to-SQL with Knowledge in the Loop

Haorui Jia, Zihan Qu, Yundi Dong, Ziyang Mei, Chi Zhang +5 more
11/24/2026
cs.AI

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{jia2026rubiksqlhb,
  title  = {RubikSQL-HB: Agentic Text-to-SQL with Knowledge in the Loop},
  author = {Haorui Jia and Zihan Qu and Yundi Dong and Ziyang Mei and Chi Zhang and Zezhi Zheng and Dousheng Zhao and Jiahao Zhang and Zui Chen and Han Li},
  year   = {2026},
  eprint = {2611.32772},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.32772v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.32772.svg)](https://codeofpaper.com/paper/2611.32772)

Discussion