Research on Large Model Text-to-SQL Optimization Method for Intelligent Interaction in the Field of Construction Safety
With the increasing amount of information and data in construction safety management, traditional business query and analysis methods are no longer sufficient to meet the demands for flexibility and complexity in on-site management. This study addresses the information query needs in the construction safety domain by proposing a graph-structured retrieval-enhanced large model Text-to-SQL optimization method. By standardizing database table information, addressing few-shot problems with example-based and enterprise safety domain knowledge prompt templates, and utilizing graph data-based knowledge retrieval enhancement techniques, the method enhances the large model's business understanding capability in the construction safety field and reduces computational resource consumption. Furthermore, by employing reasoning strategies such as chain-of-thought prompting, easy-to-hard progression, self-consistency, and self-correction, the accuracy of the large model in responding to complex construction safety business questions is significantly improved. Experimental results on the open-source model llama-3-sqlcoder-8b and the closed-source model GLM-4-Plus demonstrate that this method achieves substantial improvements in execution accuracy and syntactic accuracy, proving its universality and effectiveness.
Authors
- Tao Feng (ORCID: https://orcid.org/0000-0002-3276-6129)
- Yuin Wu
- Wen Liu (ORCID: https://orcid.org/0000-0002-6450-1969)
- Xin Jiang (ORCID: https://orcid.org/0000-0002-4995-6578)
- Lu Zhao (ORCID: https://orcid.org/0000-0002-2861-8983)
- Xue Wang (ORCID: https://orcid.org/0009-0006-7955-4410)
Publication Details
- Published
- 2024-11-08
- DOI
- https://doi.org/10.1109/isceic63613.2024.10810146
- Primary Topic
- Medical Research and Treatments
- Type
- article
- Field-Weighted Citation Impact
- 0.00