Check patentability & draft patents in minutes with Patsnap Eureka AI!

BI query method, apparatus and device based on NL2SQL and medium

A query method and query result technology, applied in the database field, can solve problems such as the inability to implement enterprise-level applications, low accuracy of model analysis, and inability to dynamically associate with tables, so as to achieve the effect of improving accuracy and efficiency of data query

Pending Publication Date: 2021-11-16
北京仁科互动网络技术有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a BI query method, device, equipment and medium based on NL2SQL to solve the technical problems in the prior art that the tables cannot be dynamically associated, the accuracy of model analysis is low, and enterprise-level applications cannot be realized. The purpose of improving the accuracy of model analysis and database query efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • BI query method, apparatus and device based on NL2SQL and medium
  • BI query method, apparatus and device based on NL2SQL and medium
  • BI query method, apparatus and device based on NL2SQL and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0059] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention , but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0060] The relevant terms in the present invention will be introduced in detail below.

[0061] NL2SQL: Abbreviation for Natural Language to SQL (converting natural language into database language). NL2SQL can realize real-time data query between questions and relational databases, allowing users to operate data flexibly and quickly through natural language. Machines can understand user desc...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a BI query method, apparatus and device based on NL2SQL and medium, and a medium. The method comprises the steps of obtaining a feature vector of a to-be-processed text; calculating similarity according to the feature vector and a plurality of preset table feature vectors, and determining a first table corresponding to the feature vector according to the similarity; inputting the information of the first table and the to-be-processed text into a pre-trained NL2SQL model to obtain SQL label data; confirming a query result corresponding to the to-be-processed text according to the SQL label data, wherein the NL2SQL model is obtained by training according to first training sample data and SQL label data corresponding to the first training sample data, and the first training sample data comprises a plurality of sample questions and sample tables corresponding to the plurality of sample questions. According to the query method provided by the invention, the accuracy and efficiency of model analysis and recognition can be improved, and the accuracy of question query is improved.

Description

technical field [0001] The present invention relates to the field of database technology, in particular to a BI query method, device, equipment and medium based on NL2SQL Background technique [0002] With the rapid development of informatization, the application of databases is becoming more and more common. People hope that according to the input questions, they can quickly query the corresponding results from the database. [0003] At present, the Chinese NL2SQL (Natural Language to SQL) technology is still immature, and it mainly faces challenges in three aspects: the lack of Chinese data sets, the lack of background knowledge support for query intent conversion, and the accuracy of model analysis. In addition, some colloquial abbreviations and descriptions increase Reduced the difficulty of NL2SQL parsing. In enterprise-level applications, there are high requirements for user interaction, not only expecting to be able to automatically match data tables, but also strict...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F16/33G06F16/34G06F40/169G06F40/177G06F40/194G06F40/279
CPCG06F16/3344G06F16/34G06F40/169G06F40/177G06F40/194G06F40/279Y02D10/00
Inventor 王攀峰阮东东罗义
Owner 北京仁科互动网络技术有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More