A Text2SQL intelligent query and answer method and system based on LLM and vector model
By adopting an interactive joint model based on LLM and vector model in the Text2SQL question and answer system, the existing system's problem of accurately understanding user intentions and generating correct SQL statements in complex data tables is solved, achieving higher accuracy and efficiency.
Patent Information
- Application Number
- CN202411657542.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-11-20
AI Technical Summary
The existing Text2SQL Q&A system is difficult to accurately understand user intentions in complex data tables and generate correct SQL statements, and the model has problems with input noise and high computing resource requirements in practical applications.
Using an interactive joint model based on LLM and vector model, through multi-dimensional data representation, task decoupling, model multi-task synchronization fine-tuning and link construction, an intelligent Text2SQL query question and answer chain is realized, including multiple stages of collaboration such as user data table recall, time extraction, SQL generation and execution, and answer generation.
The accuracy of vector model positioning and most relevant Few-shot recalls is improved, the complexity of Text2SQL tasks is optimized, and the accuracy and efficiency of the model in practical applications is improved.