Content area
Abstract
Intelligent question answering over industrial databases is a challenging task due to the multicolumn context and complex questions. The existing methods need to be improved in terms of SQL generation accuracy. In this paper, we propose a question-aware few-shot Text-to-SQL approach based on the SDCUP pretrained model. Specifically, an attention-based filtering approach is proposed to reduce the redundant information from multiple columns in the industrial database scenario. We further propose an operator semantics enhancement method to improve the ability of identifying complex conditions in queries. Experimental results on the industrial benchmarks in the fields of electric energy and structural inspection show that the proposed model outperforms the baseline models across all few-shot settings.
Details
; Chen, Yu 1
; Zhang, Hongyi 1
; Yang, Jianxi 1
; Qiao Xiao 2
; Jiang, Shixin 1
1 School of Information Science and Engineering Chongqing Jiaotong University Chongqing 400074 China
2 School of Traffic and Transportation Chongqing Jiaotong University Chongqing 400074 China