[go: up one dir, main page]

CN118349569A - Relationship-aware production data query method, device, equipment, medium and product - Google Patents

Relationship-aware production data query method, device, equipment, medium and product Download PDF

Info

Publication number
CN118349569A
CN118349569A CN202410337140.1A CN202410337140A CN118349569A CN 118349569 A CN118349569 A CN 118349569A CN 202410337140 A CN202410337140 A CN 202410337140A CN 118349569 A CN118349569 A CN 118349569A
Authority
CN
China
Prior art keywords
query
production
production data
sql
relationship
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410337140.1A
Other languages
Chinese (zh)
Inventor
袁明明
李耀
王凯
王涛
吴斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Communication Information System Co Ltd
Original Assignee
Inspur Communication Information System Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Communication Information System Co Ltd filed Critical Inspur Communication Information System Co Ltd
Priority to CN202410337140.1A priority Critical patent/CN118349569A/en
Publication of CN118349569A publication Critical patent/CN118349569A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/02Knowledge representation; Symbolic representation
    • G06N5/022Knowledge engineering; Knowledge acquisition

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Databases & Information Systems (AREA)
  • Mathematical Physics (AREA)
  • Computing Systems (AREA)
  • Evolutionary Computation (AREA)
  • Software Systems (AREA)
  • Artificial Intelligence (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a relational awareness production data query method, a relational awareness production data query device, relational awareness production data query equipment, a relational awareness production data query medium and a relational awareness production data query product, wherein the relational awareness production data query method comprises the following steps: acquiring a statement to be queried, and converting the statement to be queried into query SQL; inquiring in a current production database based on the query SQL to obtain an inquiry result, wherein the inquiry result comprises a subgraph of a production data relation diagram; the production data relation graph is dynamically updated based on the current production database, nodes in the production data relation graph correspond to production elements, and edges in the production data relation graph correspond to relations among the production elements. The invention does not need a manager to inquire each production element independently, and can improve the efficiency of obtaining the information of the auxiliary production decision.

Description

关系感知生产数据查询方法、装置、设备、介质及产品Relationship-aware production data query method, device, equipment, medium and product

技术领域Technical Field

本发明涉及人工智能技术领域,尤其涉及关系感知生产数据查询方法、装置、设备、介质及产品。The present invention relates to the field of artificial intelligence technology, and in particular to a relationship-aware production data query method, device, equipment, medium and product.

背景技术Background technique

在大型工业生产场景中,生产要素繁多,生产要素之间存在关联性,生产管理并不是只依据单个生产要素的数据进行决策,而是要基于多个互相关联的生产要素进行决策。In large-scale industrial production scenarios, there are many production factors, and there are correlations between production factors. Production management does not make decisions based solely on the data of a single production factor, but rather must make decisions based on multiple interrelated production factors.

而在现有技术中,在生产数据库中进行搜索时,只能针对单个生产要素的数据进行查询,查询结果中不能体现生产要素之间的关系,管理人员只能人工判断某个生产要素的关联生成要素有哪些,并单独地对每个生产要素进行查询,以得到用于辅助生产决策的信息。这样不仅有可能遗漏关联的生产要素,而且效率低下。In the prior art, when searching in the production database, only the data of a single production factor can be queried, and the query results cannot reflect the relationship between the production factors. The management personnel can only manually determine which related generation factors a certain production factor has, and query each production factor separately to obtain information for assisting production decision-making. This may not only miss related production factors, but also be inefficient.

发明内容Summary of the invention

本发明提供关系感知生产数据查询方法、装置、设备、介质及产品,用以解决现有技术中查询得到用于辅助生产决策的信息的效率低下的缺陷,实现提高查询得到用于辅助生产决策的信息的效率。The present invention provides a relationship-aware production data query method, device, equipment, medium and product to solve the defect of low efficiency in querying and obtaining information for assisting production decision-making in the prior art, thereby improving the efficiency of querying and obtaining information for assisting production decision-making.

本发明提供一种关系感知生产数据查询方法,包括:The present invention provides a relationship-aware production data query method, comprising:

获取待查询语句,将所述待查询语句转化为查询SQL;Obtaining a query statement, and converting the query statement into a query SQL;

基于所述查询SQL在当前的生产数据库中进行查询,得到查询结果,所述查询结果包括生产数据关系图的子图;Based on the query SQL, a query is performed in the current production database to obtain a query result, wherein the query result includes a subgraph of the production data relationship graph;

其中,所述生产数据关系图基于当前的所述生产数据库动态更新,所述生产数据关系图中的节点对应生产要素,所述生产数据关系图中的边对应生产要素之间的关系。The production data relationship graph is dynamically updated based on the current production database, the nodes in the production data relationship graph correspond to production factors, and the edges in the production data relationship graph correspond to the relationships between production factors.

根据本发明提供的一种关系感知生产数据查询方法,所述将所述待查询语句转化为查询SQL,包括:According to a relationship-aware production data query method provided by the present invention, converting the query statement to be queried into query SQL includes:

将所述待查询语句输入至已训练的神经网络模型中,获取所述神经网络模型输出的所述查询SQL;Inputting the query statement to be queried into a trained neural network model, and obtaining the query SQL output by the neural network model;

其中,所述神经网络模型包括特征提取层和转化层,所述特征提取层用于提取所述待查询语句的中间语义表示,所述转化层用于将所述中间语义表示转化为所述查询SQL,其中,所述神经网络模型基于多组训练数据训练得到,每组训练数据包括样本待查询语句和所述样本待查询语句对应的查询SQL标签。The neural network model includes a feature extraction layer and a conversion layer, the feature extraction layer is used to extract the intermediate semantic representation of the statement to be queried, and the conversion layer is used to convert the intermediate semantic representation into the query SQL, wherein the neural network model is trained based on multiple groups of training data, and each group of training data includes a sample statement to be queried and a query SQL label corresponding to the sample statement to be queried.

根据本发明提供的一种关系感知生产数据查询方法,所述神经网络模型的训练过程包括:According to a relationship-aware production data query method provided by the present invention, the training process of the neural network model includes:

在所述训练数据中选取目标训练数据,将所述目标训练数据集中的样本待查询语句输入至所述特征提取层,获取所述特征提取层输出的样本中间语义表示;Selecting target training data from the training data, inputting sample query statements in the target training data set into the feature extraction layer, and obtaining the sample intermediate semantic representation output by the feature extraction layer;

基于所述样本中间语义表示更新所述特征提取层;Updating the feature extraction layer based on the sample intermediate semantic representation;

重复执行所述在所述训练数据中选取目标训练数据的步骤,直至所述特征提取层的参数收敛,得到预训练后的所述特征提取层;Repeating the step of selecting target training data from the training data until the parameters of the feature extraction layer converge, thereby obtaining the pre-trained feature extraction layer;

将所述样本待查询语句输入至所述神经网络模型中,所述神经网络模型中包括所述预训练后的所述特征提取层;Inputting the sample query sentence into the neural network model, wherein the neural network model includes the pre-trained feature extraction layer;

获取所述神经网络模型输出的样本查询SQL;Obtaining a sample query SQL output by the neural network model;

基于所述样本查询SQL和所述样本待查询语句对应的查询SQL标签确定目标训练损失;Determine a target training loss based on the sample query SQL and the query SQL label corresponding to the sample query statement;

基于所述目标训练损失更新所述转化层和所述特征提取层。The conversion layer and the feature extraction layer are updated based on the target training loss.

根据本发明提供的一种关系感知生产数据查询方法,所述基于所述样本中间语义表示更新所述特征提取层,包括:According to a relationship-aware production data query method provided by the present invention, the updating of the feature extraction layer based on the intermediate semantic representation of the sample includes:

将所述样本中间语义表示输入至重构模型中,获取所述重构模型输出的重构文本;Inputting the sample intermediate semantic representation into a reconstruction model to obtain a reconstructed text output by the reconstruction model;

基于所述重构文本和所述样本待查询语句更新所述特征提取层。The feature extraction layer is updated based on the reconstructed text and the sample query sentence.

根据本发明提供的一种关系感知生产数据查询方法,所述基于所述查询SQL在当前的生产数据库中进行查询,得到查询结果,包括:According to a relationship-aware production data query method provided by the present invention, querying in the current production database based on the query SQL to obtain the query result includes:

基于所述查询SQL在所述生产数据库中进行查询,得到至少一个目标生产要素;Performing a query in the production database based on the query SQL to obtain at least one target production factor;

将包括所述目标生产要素对应的节点的所述生产数据关系图的子图作为所述查询SQL对应的所述查询结果。The subgraph of the production data relationship graph including the node corresponding to the target production factor is used as the query result corresponding to the query SQL.

根据本发明提供的一种关系感知生产数据查询方法,所述基于所述查询SQL在当前的生产数据库中进行查询,得到查询结果之后,包括:According to a relationship-aware production data query method provided by the present invention, the query is performed in the current production database based on the query SQL, and after obtaining the query result, the method includes:

按照所述查询结果中的各个子图与所述待查询语句之间的关联程度对所述查询结果中的各个子图进行排序。The subgraphs in the query result are sorted according to the degree of association between the subgraphs in the query result and the query statement.

本发明还提供一种关系感知生产数据查询装置,包括:The present invention also provides a relationship-aware production data query device, comprising:

SQL转化模块,用于获取待查询语句,将所述待查询语句转化为查询SQL;An SQL conversion module is used to obtain a query statement and convert the query statement into a query SQL;

查询模块,用于基于所述查询SQL在当前的生产数据库中进行查询,得到查询结果,所述查询结果包括生产数据关系图的子图;A query module, used to query the current production database based on the query SQL to obtain a query result, wherein the query result includes a subgraph of the production data relationship graph;

其中,所述生产数据关系图基于当前的所述生产数据库动态更新,所述生产数据关系图中的节点对应生产要素,所述生产数据关系图中的边对应生产要素之间的关系。The production data relationship graph is dynamically updated based on the current production database, the nodes in the production data relationship graph correspond to production factors, and the edges in the production data relationship graph correspond to the relationships between production factors.

本发明还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述任一种所述关系感知生产数据查询方法。The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the relationship-aware production data query method described above is implemented.

本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述任一种所述关系感知生产数据查询方法。The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the relationship-aware production data query method as described in any one of the above is implemented.

本发明还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述任一种所述关系感知生产数据查询方法。The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the relationship-aware production data query methods described above.

本发明提供的关系感知生产数据查询方法、装置、设备、介质及程序产品,通过将待查询语句转化为查询SQL,基于查询SQL在生产数据库中进行查询之后,将查询结果以生产数据关系图的子图的方式输出,生产数据关系图基于生产数据库动态更新,其中的节点对应生产要素,边对应生产要素之间的关系,也就是说,查询结果可以直接反映各个生产要素之间的关系,不需要管理人员单独地查询每个生产要素,可以提高得到辅助生产决策的信息的效率。The relationship-aware production data query method, device, equipment, medium and program product provided by the present invention convert the query statement into a query SQL, and after querying the production database based on the query SQL, output the query result in the form of a subgraph of the production data relationship graph. The production data relationship graph is dynamically updated based on the production database, and the nodes therein correspond to production factors, and the edges correspond to the relationships between production factors. That is to say, the query result can directly reflect the relationship between the various production factors, and there is no need for management personnel to query each production factor separately, which can improve the efficiency of obtaining information to assist production decisions.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

图1是本发明提供的一种关系感知生产数据查询方法的流程示意图一;FIG1 is a flow chart of a method for querying relationship-aware production data provided by the present invention;

图2是本发明提供的一种关系感知生产数据查询方法的流程示意图二;FIG2 is a second flow chart of a relationship-aware production data query method provided by the present invention;

图3是本发明提供的关系感知生产数据查询装置的结构示意图;FIG3 is a schematic diagram of the structure of a relationship-aware production data query device provided by the present invention;

图4是本发明提供的电子设备的结构示意图。FIG. 4 is a schematic diagram of the structure of an electronic device provided by the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

在当今的工业生产和企业运营中,数据管理的效率和准确性直接影响到决策制定的质量和生产流程的优化。随着信息技术的快速发展,特别是自然语言处理(NLP)、数据库技术和人工智能(AI)领域的进步,企业对于智能化数据管理解决方案的需求日益增长。然而,尽管这些技术的发展为生产数据管理带来了新的机遇,现有的解决方案在处理复杂查询、实现高效的数据库运维以及提供直观用户交互方面仍面临诸多挑战。In today's industrial production and enterprise operations, the efficiency and accuracy of data management directly affect the quality of decision-making and the optimization of production processes. With the rapid development of information technology, especially the advancement of natural language processing (NLP), database technology and artificial intelligence (AI), enterprises are increasingly demanding intelligent data management solutions. However, although the development of these technologies has brought new opportunities for production data management, existing solutions still face many challenges in processing complex queries, achieving efficient database operations and maintenance, and providing intuitive user interaction.

随着云计算和大数据技术的发展,数据库的规模和复杂性不断增加,使得数据库的运维和管理变得更加困难。虽然自动化工具和平台的出现在一定程度上简化了数据库管理任务,但在动态变化的生产环境中,高效地管理和查询大规模、复杂的数据库仍然需要高度的专业知识和技术支持。智能生产的普及使得生产数据的生成和收集速度大大加快,企业对于即时分析和利用这些数据以提高生产效率和产品质量的需求更加迫切。然而,现有的数据管理系统往往缺乏足够的灵活性和智能性,难以满足用户通过自然语言直接查询和分析生产数据的需求,现有的数据查询仍然依赖用户对生产数据的分析得到关联的生产要素并分别进行查询。With the development of cloud computing and big data technology, the scale and complexity of databases continue to increase, making database operation and management more difficult. Although the emergence of automated tools and platforms has simplified database management tasks to a certain extent, efficient management and query of large-scale and complex databases in a dynamically changing production environment still requires a high degree of professional knowledge and technical support. The popularization of intelligent production has greatly accelerated the generation and collection of production data, and enterprises have more urgent needs to analyze and utilize this data in real time to improve production efficiency and product quality. However, existing data management systems often lack sufficient flexibility and intelligence, and it is difficult to meet the needs of users to directly query and analyze production data through natural language. Existing data queries still rely on users to analyze production data to obtain related production factors and query them separately.

综上所述,尽管数据库技术和人工智能的进步为生产数据管理带来了新机遇,但要实现对复杂生产数据的高效、直观和智能化管理,仍然需要新的技术解决方案。本发明正是在此背景下提出,旨在解决现有技术需要管理人员单独地查询每个生产要素不足,为智能生产环境中的数据管理提供一个更加高效、灵活和用户友好的解决方案。In summary, although the progress of database technology and artificial intelligence has brought new opportunities for production data management, new technical solutions are still needed to achieve efficient, intuitive and intelligent management of complex production data. It is in this context that the present invention is proposed to solve the problem that the existing technology requires managers to query each production factor separately, and to provide a more efficient, flexible and user-friendly solution for data management in intelligent production environments.

下面结合图1描述本发明提供的关系感知生产数据查询方法,如图1所示,该方法包括步骤:The following describes the relationship-aware production data query method provided by the present invention in conjunction with FIG1 . As shown in FIG1 , the method includes the steps of:

S110、获取待查询语句,将待查询语句转化为查询SQL;S110, obtaining a query statement to be queried, and converting the query statement to be queried into a query SQL;

S120、基于查询SQL在当前的生产数据库中进行查询,得到查询结果,查询结果包括生产数据关系图的子图;S120, querying the current production database based on the query SQL to obtain a query result, where the query result includes a subgraph of the production data relationship graph;

其中,生产数据关系图基于当前的生产数据库动态更新,生产数据关系图中的节点对应生产要素,生产数据关系图中的边对应生产要素之间的关系。Among them, the production data relationship graph is dynamically updated based on the current production database, the nodes in the production data relationship graph correspond to the production factors, and the edges in the production data relationship graph correspond to the relationships between the production factors.

本发明提供的方法,通过将待查询语句转化为查询SQL,基于查询SQL在生产数据库中进行查询之后,将查询结果以生产数据关系图的子图的方式输出,生产数据关系图基于生产数据库动态更新,其中的节点对应生产要素,边对应生产要素之间的关系,也就是说,查询结果可以直接反映各个生产要素之间的关系,不需要管理人员单独地查询每个生产要素,提高得到辅助生产决策的信息的效率。The method provided by the present invention converts the query statement into a query SQL, performs a query in the production database based on the query SQL, and then outputs the query result in the form of a subgraph of a production data relationship graph. The production data relationship graph is dynamically updated based on the production database, wherein the nodes correspond to production factors and the edges correspond to the relationships between the production factors. That is to say, the query result can directly reflect the relationship between the various production factors, and there is no need for management personnel to query each production factor individually, thereby improving the efficiency of obtaining information to assist production decisions.

如图2所示,待查询语句是管理人员通过前端输入的反映管理人员想要查询的信息的文本,将待查询语句转化为查询SQL可以是用过自然语言处理模型来实现。具体地,将待查询语句转化为查询SQL,包括:As shown in FIG2 , the query statement is a text input by the administrator through the front end that reflects the information that the administrator wants to query. The conversion of the query statement into the query SQL can be achieved by using a natural language processing model. Specifically, the conversion of the query statement into the query SQL includes:

将待查询语句输入至已训练的神经网络模型中,获取神经网络模型输出的查询SQL;Input the query statement to be queried into the trained neural network model, and obtain the query SQL output by the neural network model;

其中,神经网络模型包括特征提取层和转化层,如图2所示,特征提取层用于进行自然语言解析,提取待查询语句的中间语义表示,转化层用于将中间语义表示转化为查询SQL,其中,神经网络模型基于多组训练数据训练得到,每组训练数据包括样本待查询语句和样本待查询语句对应的查询SQL标签。Among them, the neural network model includes a feature extraction layer and a conversion layer, as shown in Figure 2, the feature extraction layer is used to perform natural language parsing and extract the intermediate semantic representation of the query statement, and the conversion layer is used to convert the intermediate semantic representation into query SQL. Among them, the neural network model is trained based on multiple groups of training data, and each group of training data includes sample query statements and query SQL labels corresponding to the sample query statements.

转化层可以基于现有的RAT-SQL算法实现,特征提取层和转化层的参数可以通过训练确定。在生产数据库中的数据出于存储效率的考虑,并不会按照自然语言的表达方式进行数据存储,在生产数据库中进行查询,需要采用SQL的方式进行查询,才能匹配得到准确结果。本发明通过采用神经网络模型将待查询语句直接转化为适用于数据库查询的查询SQL,可以提高查询准确性。The conversion layer can be implemented based on the existing RAT-SQL algorithm, and the parameters of the feature extraction layer and the conversion layer can be determined through training. For storage efficiency considerations, the data in the production database will not be stored in the form of natural language expressions. To query in the production database, it is necessary to use SQL to query in order to match and obtain accurate results. The present invention can improve query accuracy by using a neural network model to directly convert the query statement into a query SQL suitable for database query.

具体地,神经网络模型的训练过程包括:Specifically, the training process of the neural network model includes:

在训练数据中选取目标训练数据,将目标训练数据集中的样本待查询语句输入至特征提取层,获取特征提取层输出的样本中间语义表示;Select target training data from the training data, input the sample query statements in the target training data set into the feature extraction layer, and obtain the sample intermediate semantic representation output by the feature extraction layer;

基于样本中间语义表示更新特征提取层;Update the feature extraction layer based on the intermediate semantic representation of the sample;

重复执行在训练数据中选取目标训练数据的步骤,直至特征提取层的参数收敛,得到预训练后的特征提取层;Repeat the step of selecting target training data from the training data until the parameters of the feature extraction layer converge, thereby obtaining a pre-trained feature extraction layer;

将样本待查询语句输入至神经网络模型中,神经网络模型中包括预训练后的特征提取层;Inputting the sample query sentence into the neural network model, wherein the neural network model includes a pre-trained feature extraction layer;

获取神经网络模型输出的样本查询SQL;Get the sample query SQL output by the neural network model;

基于样本查询SQL和样本待查询语句对应的查询SQL标签确定目标训练损失;Determine the target training loss based on the query SQL labels corresponding to the sample query SQL and the sample query statements;

基于目标训练损失更新转化层和特征提取层的参数。Update the parameters of the conversion layer and feature extraction layer based on the target training loss.

本发明中,神经网络模型的训练分为两个阶段,第一阶段是对特征提取层进行训练,以使得特征提取层能够提取能够反映输入的语句的语义的语义表示,之后对转化层和特征提取层进行训练,使得预训练后的特征提取层与转化层能够更加适配,转化层能够将输入的语义表示转化为准确的SQL。In the present invention, the training of the neural network model is divided into two stages. The first stage is to train the feature extraction layer so that the feature extraction layer can extract semantic representations that can reflect the semantics of the input sentence. Then, the conversion layer and the feature extraction layer are trained so that the pre-trained feature extraction layer and the conversion layer can be more adapted, and the conversion layer can convert the input semantic representation into accurate SQL.

基于样本中间语义表示更新特征提取层,包括:Update the feature extraction layer based on the intermediate semantic representation of the sample, including:

将样本中间语义表示输入至重构模型中,获取重构模型输出的重构文本;Input the intermediate semantic representation of the sample into the reconstruction model to obtain the reconstructed text output by the reconstruction model;

基于重构文本和样本待查询语句更新特征提取层。Update the feature extraction layer based on the reconstructed text and sample query sentences.

由于样本中间语义表示并不具备对应的标签数据,无法基于特征提取层输出的数据与标签数据的差异来确定损失进而更新特征提取层,本发明提供的方法,利用语句重构模型来衡量样本中间语义表示是否能够准确反映语义。Since the intermediate semantic representation of the sample does not have corresponding label data, it is impossible to determine the loss based on the difference between the data output by the feature extraction layer and the label data and then update the feature extraction layer. The method provided by the present invention uses a sentence reconstruction model to measure whether the intermediate semantic representation of the sample can accurately reflect the semantics.

具体地,重构模型可以为transformer模型,重构模型基于输入的样本中间语义表示,输出重构文本,基于重构文本和样本待查询语句更新特征提取层,包括:Specifically, the reconstruction model may be a transformer model. The reconstruction model outputs a reconstructed text based on the intermediate semantic representation of the input sample, and updates the feature extraction layer based on the reconstructed text and the sample query sentence, including:

基于重构文本和样本待查询语句更新特征提取层和重构模型。Update the feature extraction layer and reconstruction model based on the reconstructed text and sample query sentences.

输出的重构文本与样本待查询语句越接近,训练损失越小,反之则越大。The closer the output reconstructed text is to the sample query sentence, the smaller the training loss is, and vice versa.

重构模型可以采用已经采用通用数据库训练得到的文本生成模型作为训练前的初始状态。The reconstruction model may use a text generation model that has been trained using a general database as an initial state before training.

目标训练损失反映样本查询SQL和样本待查询语句对应的查询SQL标签之间的差异,差异越大,目标训练损失越大。The target training loss reflects the difference between the query SQL label corresponding to the sample query SQL and the sample query statement. The greater the difference, the greater the target training loss.

基于目标训练损失更新转化层和特征提取层的参数,包括:Update the parameters of the conversion layer and feature extraction layer based on the target training loss, including:

基于目标训练损失更新转化层,并对特征提取层进行微调。The conversion layer is updated based on the target training loss, and the feature extraction layer is fine-tuned.

也就是说,在对神经网络模型进行第二阶段的训练时,对特征提取层只是进行微调,对转化层是按正常的训练损失进行更新。That is to say, during the second stage of training the neural network model, the feature extraction layer is only fine-tuned, and the conversion layer is updated according to the normal training loss.

在得到查询SQL后,基于查询SQL在当前的生产数据库中进行查询,得到查询结果,具体包括:After obtaining the query SQL, query the current production database based on the query SQL to obtain the query results, including:

基于查询SQL在生产数据库中进行查询,得到至少一个目标生产要素;Based on the query SQL, query is performed in the production database to obtain at least one target production factor;

将包括目标生产要素对应的节点的生产数据关系图的子图作为查询SQL对应的查询结果。The subgraph of the production data relationship graph including the nodes corresponding to the target production factors is used as the query result corresponding to the query SQL.

基于查询SQL在生产数据库中进行查询,可以得到生产数据库中的一条或多条数据,基于这些数据与生产要素的映射关系,可以得到查询SQL对应的至少一个目标生产要素。例如,用户输入的待查询语句为“查找A产线今天的任务安排情况”,将其转化为SQL进行查询之后,可以得到A产线在今天对应的生产产品的名称。生产产品的名称是目标生产要素,基于目标生产要素在生产数据关系图中查找包括目标生产要素的子图。生产一个产品与多个其他要素相关联,例如零部件、供应商、技术人员、生产标准、生产原料等,这些生产要素之间的关联事先在生产数据关系图中被表示,因此,查询得到的子图就可以直观地反映如果需要修改A产线今天的任务安排,需要对哪些生产要素进行相应的安排。Based on the query SQL, a query is performed in the production database to obtain one or more data in the production database. Based on the mapping relationship between these data and production factors, at least one target production factor corresponding to the query SQL can be obtained. For example, the query statement entered by the user is "find the task schedule of production line A today". After converting it into SQL for query, the name of the corresponding production product of production line A today can be obtained. The name of the production product is the target production factor. Based on the target production factor, the subgraph including the target production factor is searched in the production data relationship diagram. The production of a product is associated with multiple other factors, such as parts, suppliers, technicians, production standards, production raw materials, etc. The relationship between these production factors is represented in advance in the production data relationship diagram. Therefore, the subgraph obtained by the query can intuitively reflect which production factors need to be arranged accordingly if the task schedule of production line A today needs to be modified.

为了使得查询结果能够符合生产的实际情况,本发明提供的方法中,对生产数据关系图进行实时更新,也就是说,生产数据关系图基于当前的生产数据库动态更新。更新生产数据关系图的过程可以表示为:Rt+1=f(Rt,ΔS),其中,Rt+1和Rt分别表示在时间t+1和t的生产数据关系图,ΔS表示数据库模式的变化,f是关系图更新函数。本发明中使用了动态关系图构建与调整机制,使得系统能够实时适应数据库模式的变化,提高了数据管理系统的灵活性和适应性。In order to make the query results conform to the actual production situation, the method provided by the present invention updates the production data relationship diagram in real time, that is, the production data relationship diagram is dynamically updated based on the current production database. The process of updating the production data relationship diagram can be expressed as: R t+1 =f(R t ,ΔS), where R t+1 and R t represent the production data relationship diagram at time t+1 and t respectively, ΔS represents the change of the database model, and f is the relationship diagram update function. The present invention uses a dynamic relationship diagram construction and adjustment mechanism, which enables the system to adapt to the changes of the database model in real time, thereby improving the flexibility and adaptability of the data management system.

如图2所示,基于查询SQL进行查询之后,将查询结果反馈给用户前端,之后还可以接受用户的查询结果的反馈,基于反馈可以更新神经网络模型。As shown in FIG2 , after querying based on the query SQL, the query result is fed back to the user front end, and then the user's query result feedback can be received, and the neural network model can be updated based on the feedback.

进一步地,在得到查询结果之后,由于查询结果中可能包括多个子图,本发明提供的方法中,按照查询结果中的各个子图与待查询语句之间的关联程度对查询结果中的各个子图进行排序。Furthermore, after obtaining the query result, since the query result may include multiple subgraphs, in the method provided by the present invention, each subgraph in the query result is sorted according to the degree of association between each subgraph in the query result and the query statement.

具体地,按照查询结果中的各个子图与待查询语句之间的关联程序对查询结果中的各个子图进行排序,包括:Specifically, sorting each subgraph in the query result according to the association procedure between each subgraph in the query result and the query statement includes:

在历史查询结果中查找本次查询结果中各个子图分别对应的目标子图,子图对应的目标子图与该子图的相似性大于其他目标子图与该子图的相似性;Search the historical query results for the target subgraphs corresponding to the subgraphs in the current query results. The similarity between the target subgraph corresponding to the subgraph and the subgraph is greater than the similarity between other target subgraphs and the subgraph.

获取各个目标子图对应的历史待查询语句,基于目标子图对应的历史待查询语句与本次待查询语句之间的语义相似度对各个子图进行排序。The historical query statements corresponding to each target subgraph are obtained, and each subgraph is sorted based on the semantic similarity between the historical query statements corresponding to the target subgraph and the current query statement.

例如,本次查询结果中有ABC三个子图,分别对应的目标子图为abc,分别获取目标子图abc是基于甲乙丙三个历史待查询语句查询得到的,那么基于甲乙丙与本次查询的待查询语句之间的语义相似度对本次查询结果中的ABC三个子图排序,对应的语义相似度越高,排序越靠前。For example, there are three subgraphs ABC in this query result, and the corresponding target subgraphs are abc. The target subgraphs abc are obtained based on the three historical query statements A, B, and C. Then, based on the semantic similarity between A, B, and C and the query statements of this query, the three subgraphs ABC in this query result are sorted. The higher the corresponding semantic similarity, the higher the ranking.

本发明提供的方法,通过上下文感知的自然语言理解模块和交互式查询反馈循环,提供一个更直观、更灵活的用户界面,使用户能够以自然语言形式轻松查询和分析生产数据,从而大大提升用户体验。The method provided by the present invention provides a more intuitive and flexible user interface through a context-aware natural language understanding module and an interactive query feedback loop, allowing users to easily query and analyze production data in natural language form, thereby greatly improving the user experience.

下面对本发明提供的关系感知生产数据查询装置进行描述,下文描述的关系感知生产数据查询装置与上文描述的关系感知生产数据查询方法可相互对应参照。如图3所示,本发明提供的关系感知生产数据查询装置,包括:The following is a description of the relationship-aware production data query device provided by the present invention. The relationship-aware production data query device described below and the relationship-aware production data query method described above can be referred to each other. As shown in FIG3 , the relationship-aware production data query device provided by the present invention includes:

SQL转化模块310,用于获取待查询语句,将待查询语句转化为查询SQL;SQL conversion module 310, used to obtain the query statement to be queried and convert the query statement to be queried SQL;

查询模块320,用于基于查询SQL在当前的生产数据库中进行查询,得到查询结果,查询结果包括生产数据关系图的子图;A query module 320, configured to query the current production database based on the query SQL to obtain a query result, wherein the query result includes a subgraph of the production data relationship graph;

其中,生产数据关系图基于当前的生产数据库动态更新,生产数据关系图中的节点对应生产要素,生产数据关系图中的边对应生产要素之间的关系。Among them, the production data relationship graph is dynamically updated based on the current production database, the nodes in the production data relationship graph correspond to the production factors, and the edges in the production data relationship graph correspond to the relationships between the production factors.

图4示例了一种电子设备的实体结构示意图,如图4所示,该电子设备可以包括:处理器(processor)410、通信接口(Communications Interface)420、存储器(memory)430和通信总线440,其中,处理器410,通信接口420,存储器430通过通信总线440完成相互间的通信。处理器410可以调用存储器430中的逻辑指令,以执行关系感知生产数据查询方法,该方法包括:获取待查询语句,将待查询语句转化为查询SQL;基于查询SQL在当前的生产数据库中进行查询,得到查询结果,查询结果包括生产数据关系图的子图;其中,生产数据关系图基于当前的生产数据库动态更新,生产数据关系图中的节点对应生产要素,生产数据关系图中的边对应生产要素之间的关系。FIG4 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG4 , the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the relationship-aware production data query method, which includes: obtaining a statement to be queried, converting the statement to be queried into a query SQL; querying in the current production database based on the query SQL to obtain a query result, and the query result includes a subgraph of a production data relationship graph; wherein the production data relationship graph is dynamically updated based on the current production database, the nodes in the production data relationship graph correspond to production factors, and the edges in the production data relationship graph correspond to the relationship between production factors.

此外,上述的存储器430中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

另一方面,本发明还提供一种计算机程序产品,所述计算机程序产品包括计算机程序,计算机程序可存储在非暂态计算机可读存储介质上,所述计算机程序被处理器执行时,计算机能够执行上述各方法所提供的关系感知生产数据查询方法,该方法包括:获取待查询语句,将待查询语句转化为查询SQL;基于查询SQL在当前的生产数据库中进行查询,得到查询结果,查询结果包括生产数据关系图的子图;其中,生产数据关系图基于当前的生产数据库动态更新,生产数据关系图中的节点对应生产要素,生产数据关系图中的边对应生产要素之间的关系。On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the relationship-aware production data query method provided by the above methods, which includes: obtaining a statement to be queried, and converting the statement to be queried into a query SQL; querying the current production database based on the query SQL to obtain a query result, and the query result includes a subgraph of the production data relationship graph; wherein the production data relationship graph is dynamically updated based on the current production database, the nodes in the production data relationship graph correspond to production factors, and the edges in the production data relationship graph correspond to the relationship between production factors.

又一方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各方法提供的关系感知生产数据查询方法,该方法包括:获取待查询语句,将待查询语句转化为查询SQL;基于查询SQL在当前的生产数据库中进行查询,得到查询结果,查询结果包括生产数据关系图的子图;其中,生产数据关系图基于当前的生产数据库动态更新,生产数据关系图中的节点对应生产要素,生产数据关系图中的边对应生产要素之间的关系。On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the relationship-aware production data query method provided by the above-mentioned methods, the method comprising: obtaining a statement to be queried, converting the statement to be queried into a query SQL; querying in the current production database based on the query SQL to obtain a query result, the query result comprising a subgraph of a production data relationship graph; wherein the production data relationship graph is dynamically updated based on the current production database, the nodes in the production data relationship graph correspond to production factors, and the edges in the production data relationship graph correspond to the relationships between production factors.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1.一种关系感知生产数据查询方法,其特征在于,包括:1. A relationship-aware production data query method, characterized by comprising: 获取待查询语句,将所述待查询语句转化为查询SQL;Obtaining a query statement, and converting the query statement into a query SQL; 基于所述查询SQL在当前的生产数据库中进行查询,得到查询结果,所述查询结果包括生产数据关系图的子图;Based on the query SQL, a query is performed in the current production database to obtain a query result, wherein the query result includes a subgraph of the production data relationship graph; 其中,所述生产数据关系图基于当前的所述生产数据库动态更新,所述生产数据关系图中的节点对应生产要素,所述生产数据关系图中的边对应生产要素之间的关系。The production data relationship graph is dynamically updated based on the current production database, the nodes in the production data relationship graph correspond to production factors, and the edges in the production data relationship graph correspond to the relationships between production factors. 2.根据权利要求1所述的关系感知生产数据查询方法,其特征在于,所述将所述待查询语句转化为查询SQL,包括:2. The relationship-aware production data query method according to claim 1, characterized in that the step of converting the query statement to be queried into query SQL comprises: 将所述待查询语句输入至已训练的神经网络模型中,获取所述神经网络模型输出的所述查询SQL;Inputting the query statement to be queried into a trained neural network model, and obtaining the query SQL output by the neural network model; 其中,所述神经网络模型包括特征提取层和转化层,所述特征提取层用于提取所述待查询语句的中间语义表示,所述转化层用于将所述中间语义表示转化为所述查询SQL,其中,所述神经网络模型基于多组训练数据训练得到,每组训练数据包括样本待查询语句和所述样本待查询语句对应的查询SQL标签。The neural network model includes a feature extraction layer and a conversion layer, the feature extraction layer is used to extract the intermediate semantic representation of the statement to be queried, and the conversion layer is used to convert the intermediate semantic representation into the query SQL, wherein the neural network model is trained based on multiple groups of training data, and each group of training data includes a sample statement to be queried and a query SQL label corresponding to the sample statement to be queried. 3.根据权利要求2所述的关系感知生产数据查询方法,其特征在于,所述神经网络模型的训练过程包括:3. The relationship-aware production data query method according to claim 2, wherein the training process of the neural network model comprises: 在所述训练数据中选取目标训练数据,将所述目标训练数据集中的样本待查询语句输入至所述特征提取层,获取所述特征提取层输出的样本中间语义表示;Selecting target training data from the training data, inputting sample query statements in the target training data set into the feature extraction layer, and obtaining the sample intermediate semantic representation output by the feature extraction layer; 基于所述样本中间语义表示更新所述特征提取层;Updating the feature extraction layer based on the sample intermediate semantic representation; 重复执行所述在所述训练数据中选取目标训练数据的步骤,直至所述特征提取层的参数收敛,得到预训练后的所述特征提取层;Repeating the step of selecting target training data from the training data until the parameters of the feature extraction layer converge, thereby obtaining the pre-trained feature extraction layer; 将所述样本待查询语句输入至所述神经网络模型中,所述神经网络模型中包括所述预训练后的所述特征提取层;Inputting the sample query sentence into the neural network model, wherein the neural network model includes the pre-trained feature extraction layer; 获取所述神经网络模型输出的样本查询SQL;Obtaining a sample query SQL output by the neural network model; 基于所述样本查询SQL和所述样本待查询语句对应的查询SQL标签确定目标训练损失;Determine a target training loss based on the sample query SQL and the query SQL label corresponding to the sample query statement; 基于所述目标训练损失更新所述转化层和所述特征提取层。The conversion layer and the feature extraction layer are updated based on the target training loss. 4.根据权利要求3所述的关系感知生产数据查询方法,其特征在于,所述基于所述样本中间语义表示更新所述特征提取层,包括:4. The relationship-aware production data query method according to claim 3, characterized in that the updating of the feature extraction layer based on the sample intermediate semantic representation comprises: 将所述样本中间语义表示输入至重构模型中,获取所述重构模型输出的重构文本;Inputting the sample intermediate semantic representation into a reconstruction model to obtain a reconstructed text output by the reconstruction model; 基于所述重构文本和所述样本待查询语句更新所述特征提取层。The feature extraction layer is updated based on the reconstructed text and the sample query sentence. 5.根据权利要求1所述的关系感知生产数据查询方法,其特征在于,所述基于所述查询SQL在当前的生产数据库中进行查询,得到查询结果,包括:5. The relationship-aware production data query method according to claim 1, characterized in that the querying in the current production database based on the query SQL to obtain the query result comprises: 基于所述查询SQL在所述生产数据库中进行查询,得到至少一个目标生产要素;Performing a query in the production database based on the query SQL to obtain at least one target production factor; 将包括所述目标生产要素对应的节点的所述生产数据关系图的子图作为所述查询SQL对应的所述查询结果。The subgraph of the production data relationship graph including the node corresponding to the target production factor is used as the query result corresponding to the query SQL. 6.根据权利要求5所述的关系感知生产数据查询方法,其特征在于,所述基于所述查询SQL在当前的生产数据库中进行查询,得到查询结果之后,包括:6. The relationship-aware production data query method according to claim 5, characterized in that after querying the current production database based on the query SQL and obtaining the query result, the method comprises: 按照所述查询结果中的各个子图与所述待查询语句之间的关联程度对所述查询结果中的各个子图进行排序。The subgraphs in the query result are sorted according to the degree of association between the subgraphs in the query result and the query statement. 7.一种关系感知生产数据查询装置,其特征在于,包括:7. A relationship-aware production data query device, comprising: SQL转化模块,用于获取待查询语句,将所述待查询语句转化为查询SQL;An SQL conversion module is used to obtain a query statement and convert the query statement into a query SQL; 查询模块,用于基于所述查询SQL在当前的生产数据库中进行查询,得到查询结果,所述查询结果包括生产数据关系图的子图;A query module, used to query the current production database based on the query SQL to obtain a query result, wherein the query result includes a subgraph of the production data relationship graph; 其中,所述生产数据关系图基于当前的所述生产数据库动态更新,所述生产数据关系图中的节点对应生产要素,所述生产数据关系图中的边对应生产要素之间的关系。The production data relationship graph is dynamically updated based on the current production database, the nodes in the production data relationship graph correspond to production factors, and the edges in the production data relationship graph correspond to the relationships between production factors. 8.一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1至6任一项所述关系感知生产数据查询方法。8. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the relationship-aware production data query method as described in any one of claims 1 to 6 is implemented. 9.一种非暂态计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述关系感知生产数据查询方法。9. A non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the relationship-aware production data query method as described in any one of claims 1 to 6 is implemented. 10.一种计算机程序产品,包括计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述关系感知生产数据查询方法。10. A computer program product, comprising a computer program, characterized in that when the computer program is executed by a processor, the relationship-aware production data query method as described in any one of claims 1 to 6 is implemented.
CN202410337140.1A 2024-03-22 2024-03-22 Relationship-aware production data query method, device, equipment, medium and product Pending CN118349569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410337140.1A CN118349569A (en) 2024-03-22 2024-03-22 Relationship-aware production data query method, device, equipment, medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410337140.1A CN118349569A (en) 2024-03-22 2024-03-22 Relationship-aware production data query method, device, equipment, medium and product

Publications (1)

Publication Number Publication Date
CN118349569A true CN118349569A (en) 2024-07-16

Family

ID=91817817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410337140.1A Pending CN118349569A (en) 2024-03-22 2024-03-22 Relationship-aware production data query method, device, equipment, medium and product

Country Status (1)

Country Link
CN (1) CN118349569A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118916381A (en) * 2024-10-10 2024-11-08 浙商期货有限公司 Method and system for converting natural language into SQL (structured query language) sentence

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118916381A (en) * 2024-10-10 2024-11-08 浙商期货有限公司 Method and system for converting natural language into SQL (structured query language) sentence
CN118916381B (en) * 2024-10-10 2025-09-16 浙商期货有限公司 Method and system for converting natural language into SQL (structured query language) sentence

Similar Documents

Publication Publication Date Title
CN111414380B (en) Method, equipment and storage medium for generating SQL (structured query language) sentences of Chinese database
US11281864B2 (en) Dependency graph based natural language processing
EP3671526B1 (en) Dependency graph based natural language processing
CN101431573B (en) Method and equipment for implementing automatic customer service through human-machine interaction technology
US12254004B2 (en) Database query generation from natural language statements
CN111930912A (en) Dialogue management method, system, device and storage medium
CN109947921A (en) An Intelligent Question Answering System Based on Natural Language Processing
US20250013635A1 (en) System for Repairing LLM Results
CN111767334A (en) Information extraction method, device, electronic device and storage medium
CN111176656A (en) A complex data matching method and medium
CN118796869B (en) A structured query language processing method, device, equipment and medium
CN120371854A (en) Structured query language generation method, device, equipment and storage medium
CN112582073B (en) Medical information acquisition method, device, electronic equipment and medium
CN118349569A (en) Relationship-aware production data query method, device, equipment, medium and product
Seabra et al. Contrato360 2.0: a document and database-driven question-answer system using large language models and agents
CN117312643A (en) Data query method and device based on online analysis engine and electronic equipment
CN115063101A (en) Method, system, device and storage medium for generating structural data based on case library
CN104731597A (en) Method for applying SQL statements to engineering software compiling platform
CN120277091A (en) Intelligent question-answering system and intelligent question-answering method based on large model
CN119782370A (en) A rule engine positioning method combined with AI intelligence
CN119578554A (en) A composite knowledge reasoning method, device, equipment, medium and product
CN118797156A (en) Component recommendation method, system, device and medium
CN118689988A (en) A question-and-answer method based on the enterprise internal management manual
CN118656427A (en) Signal intelligent operation and maintenance fault retrieval system and method
CN118133207A (en) Cross-domain log anomaly detection model construction method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination