Metraipolis › archive › dc_e69051d01615

Beyond the Harness: End-to-End Optimization of Context Artifacts for Enterprise Text-to-SQL — arXiv:2608.22830

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.22830
License (as archived)
CC0-1.0
Archived
2026-10-18T07:41:38.631Z
SHA-256 of the archived text
8200efcda5daa8cb78b3eef3602286a62f4d1cff4c8db9321ad7ae85702ba961
Stable URL of this page
https://metraipolis.com/documento/dc_e69051d01615

How to cite

Beyond the Harness: End-to-End Optimization of Context Artifacts for Enterprise Text-to-SQL — arXiv:2608.22830 — arXiv (en), https://arxiv.org/abs/2608.22830 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_e69051d01615 (Metraipolis archive dc_e69051d01615, sha256 8200efcda5daa8cb78b3eef3602286a62f4d1cff4c8db9321ad7ae85702ba961)
BibTeX
@misc{dce69051d01615,
  title = {Beyond the Harness: End-to-End Optimization of Context Artifacts for Enterprise Text-to-SQL — arXiv:2608.22830},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.22830},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_e69051d01615; sha256 8200efcda5daa8cb78b3eef3602286a62f4d1cff4c8db9321ad7ae85702ba961},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.22830. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Deploying LLMs for enterprise Text-to-SQL is bottlenecked less by the model than by what context reaches it: business logic spans thousands of tables, and no model can ingest a full catalog at once. We argue that the most effective place to intervene is therefore the \emph{knowledge-base context} the model consumes, and that this context should be \emph{constructed} from historical usage rather than tuned for as a fixed input. Using a query-DAG decomposition--the same family of intermediates that enterprise benchmarks like BEAVER annotate, here recovered from production SQL--we compare the value of oracle query graphs versus retrieved knowledge-base context. In this ablation, retrieved knowledge-base context provides the largest marginal improvement when added to the full oracle graph. Building on this, we optimize a distillation procedure that turns historical query profiles into reusable SQL reference cards. On a benchmark of 5176 production queries from a major online retailer, optimizing these context artifacts yields larger gains (${\sim}12$--$25\%$ AST similarity) than optimizing the retrieval harness (${\sim}3$--$12\%$). On the public BEAVER benchmark, which lacks the production-usage signals available in our internal setting, the picture is more mixed: table cards alone perform about the same as raw historical SQL. The best optimized variant retrieves both cards and raw SQL, scoring $9.00\%$ versus $6.33\%$ (p-value $0.12$) for the comparable baseline on a held-out $N{=}300$ subset, using retrieved context and harness changes but no agentic loop.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-25 in cs.AI).
Categorie arXiv: Artificial Intelligence (cs.AI) ; Machine Learning (cs.LG).
Pagina del lavoro: https://arxiv.org/abs/2608.22830 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-18T07:37:52.745Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-08-25?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).