Multi-data-source NL2SQL system based on semantic rules and multi-dimensional model

A technology with rules and semantics, applied in the field of intelligent search, can solve the problems such as the difficulty of popularization and application of NL2SQL technology, complex process and long completion time, and achieve the effect of reducing requirements, flexible configuration, and improving the success rate.

Active Publication Date: 2021-03-26
北京智源人工智能研究院
View PDF21 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, in NL2SQL technology, professional knowledge reserves are needed for dictionary configuration, and there are certain requirements for nlp and model training; (some natural languages ​​do not have corresponding SQL statements, the model should refuse to make predictions) for model training, the process is complicated and the completion time is long
[0004] Therefore, the existing NL2SQL technology is difficult to promote and apply in actual use

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
  • Multi-data-source NL2SQL system based on semantic rules and multi-dimensional model
  • Multi-data-source NL2SQL system based on semantic rules and multi-dimensional model
  • Multi-data-source NL2SQL system based on semantic rules and multi-dimensional model

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0053] Such as figure 1 As shown, the embodiment of the present invention provides a multi-data source NL2SQL system based on semantic rules and multidimensional models, including a business layer for realizing NL2SQL, and the business layer includes:

[0054] Configuration module, used to configure matching rules;

[0055] The data model building module is used to build a data model that can generate SQL statements using table and field information of the database;

[0056] The intent identification module is used to parse and match the input natural sentences according to the matching rules to obtain table and field information of the database, and generate executable SQL statements by using the data model.

[0057] Among them, in the actual use process, the configuration module can be displayed in the form of an interface. After the user logs in to the system and opens the configuration module, the configuration interface appears. In the interface, the user can configure t...

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 discloses a multi-data-source NL2SQL system based on semantic rules and a multi-dimensional model, comprising a service layer for realizing NL2SQL, the service layer comprising: a configuration module for configuring matching rules; a data model construction module used for constructing a data model capable of generating SQL statements by utilizing the table and field information ofthe database; and an intention recognition module used for analyzing and matching the natural statement according to the matching rule to obtain table and field information of a database, and generating an executable SQL statement by utilizing the data model. The system does not depend on annotation corpora and models, and NL2SQL based on intention can be achieved through simple configuration of an interface; multi-selection nesting is supported through the data model construction module, and flexible configuration can be achieved; the requirement for a data set is reduced through the intention recognition module, and the success rate of SQL generation is increased. Therefore, by adopting the system provided by the invention, the business scene can be quickly constructed according to different projects.

Description

technical field [0001] The invention relates to the technical field of intelligent search, in particular to a multi-data source NL2SQL system based on semantic rules and multi-dimensional models. Background technique [0002] In intelligent search, the process of computers understanding user query intentions has become a research hotspot in the industry. Before understanding user intentions, it is first necessary to convert natural language into an executable program language that computers can understand and generate accurate statement semantics. Natural Language to SQL (NL2SQL) is a method to convert the user's natural language statement into a computer-readable, executable, and semantic representation that conforms to computer rules. [0003] At present, in NL2SQL technology, professional knowledge reserves are needed for dictionary configuration, and there are certain requirements for nlp and model training; in addition, its requirements for data sets are relatively high...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/242G06F16/22G06F16/2455G06F40/242G06F40/289G06F40/295G06F40/30
CPCG06F16/2282G06F16/2433G06F16/24564G06F40/242G06F40/289G06F40/295G06F40/30
Inventor 李智钱泓锦刘占亮
Owner 北京智源人工智能研究院
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products