Intelligent SQL (Structured Query Language) generation system based on multistage intention recognition and generation method thereof
The intelligent SQL generation system, which utilizes multi-level intent recognition and combines vector matching with a large language model, solves the problems of field ambiguity and insufficient semantic understanding in complex database queries. It achieves efficient and accurate database operations and is suitable for database queries in complex business scenarios.
Patent Information
- Application Number
- CN202511024383.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-24
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2045-07-24
AI Technical Summary
Existing technologies suffer from problems such as field ambiguity, insufficient semantic understanding, difficulty in understanding the entire database, and poor interpretability in complex database queries, making it difficult for users to perform accurate database operations.
An intelligent SQL generation system based on multi-level intent recognition is adopted. Through vector matching, multi-layer structured knowledge base, dual-tower model and large language model, combined with the natural language query input by the user, the system dynamically configures the database table and field information to generate SQL statements that conform to the syntax rules, and optimizes the model through self-learning.
It improves the accuracy and efficiency of database queries, enabling non-technical personnel to easily perform database operations, ensuring the correctness of generated SQL statements, and providing a transparent query process.