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-09-07
北京智源人工智能研究院
View PDF21 Cites 0 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; in addition, its requirements for data sets are relatively high, requiring a large number of well-marked training set corpus and test set corpus and rejection The model training process is complex and takes a long time
[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 intention 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 configur...

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 multidimensional models, including a business layer for realizing NL2SQL, and the business layer includes: a configuration module for configuring matching rules; a data model building module for Build a data model that can use the table and field information of the database to generate SQL statements; the intention recognition module is used to parse and match the natural sentences according to the matching rules to obtain the table and field information of the database, and use the data model to generate executable The SQL statement. The system does not rely on labeled corpus and models, and can realize intent-based NL2SQL through simple interface configuration; the data model building module supports multi-choice nesting, which can be flexibly configured; the intent recognition module reduces the requirements for data sets and improves SQL Generated success rate. Therefore, by adopting the system provided by the present invention, business scenarios 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 Patents(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