A data integration task construction device based on artificial intelligence interaction

Through the data integration task construction device based on artificial intelligence interaction and the text discriminator and similarity matcher fine-tuned by the pre-trained model, the problem of high complexity of traditional data integration methods is solved, and the intelligent construction and execution of data integration tasks are realized. , improving data utilization and information sharing between systems.

CN118193854BActive Publication Date: 2024-08-30INSPUR SOFTWARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410605493.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-08-30
Estimated Expiration
2044-05-16

AI Technical Summary

Technical Problem

Traditional data integration methods have high implementation complexity and high maintenance costs, and fail to effectively solve the data island phenomenon, making it difficult to circulate and share data between systems.

Method used

A data integration task construction device based on artificial intelligence interaction is adopted, including a web-side dialogue page, a task construction engine and a task execution engine. Intelligent tasks are realized through the text discriminator, constraint checker and similarity matcher fine-tuned by the pre-trained model. Automated construction and execution of parameter configuration and data integration tasks.

Benefits of technology

It reduces the complexity and maintenance costs of data integration tasks, improves data utilization, enables efficient construction and execution of data integration tasks, and adapts to the personalized needs of different business scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118193854B
    Figure CN118193854B
Patent Text Reader

Abstract

The present invention discloses a data integration task construction device based on artificial intelligence interaction, and relates to the field of intelligent question-answering technology. In order to solve the problems of high complexity and high maintenance cost of traditional data integration implementation work, the adopted scheme includes: a web-side dialogue page, a task construction engine and a task execution engine, wherein: the web-side dialogue page provides a visualization page, and the user inputs the data integration requirements through the visualization page, interacts with subsequent inquiries, and views the data integration tasks finally constructed; the task construction engine intelligently identifies the user dialogue information, extracts the task configuration items, verifies the legality of the configuration items and provides similarity options for illegal configuration items, and guides the user to correctly construct the data integration task; the task execution engine executes the constructed data integration task. The present invention can conduct a goal-oriented interactive dialogue on the personalized needs of users, guide users to construct tasks step by step, and improve the utilization rate of data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent question answering technology, and in particular to a data integration task construction device based on artificial intelligence interaction. Background Art

[0002] In an enterprise environment, due to differences in development stages or responsible departments, there are often multiple different information systems operating in parallel. These systems are often built on different software and hardware platforms, and their data sources are independent and disconnected, making the circulation, sharing and integration of data between systems difficult, which in turn gave rise to the so-called "data island" phenomenon. With the continuous advancement of the informatization process, the demand for information exchange both within the enterprise and between the enterprise and the outside world is becoming increasingly urgent. Therefore, it has become a top priority to unify and integrate existing information, break the "data island" and realize information sharing. However, traditional data integration methods generally use data integration tools such as DataX to extract data. Its task configuration items are complex, readability is poor, and the learning cost is high. In the specific implementation work, it often requires a lot of manpower to maintain data integration tasks.

[0003] Language pre-training models have been trained on large-scale corpora and have acquired certain general language capabilities, but different natural language processing tasks have their own specific characteristics and requirements. Pre-trained models that have not been fine-tuned cannot be well adapted to specific natural language processing tasks. Summary of the invention

[0004] In view of the needs and shortcomings of current technological development, the present invention provides a data integration task construction device based on artificial intelligence interaction to solve the problems of high complexity and high maintenance cost of traditional data integration implementation work.

[0005] The present invention provides a data integration task construction device based on artificial intelligence interaction, and the technical solution adopted to solve the above technical problems is as follows:

[0006] A data integration task construction device based on artificial intelligence interaction, comprising a web-side dialogue page, a task construction engine and a task execution engine, wherein:

[0007] The web-based dialogue page provides a visualization page, through which users can input data integration requirements, interact with subsequent inquiries, and view the final constructed data integration tasks;

[0008] The task building engine is responsible for intelligently identifying user conversation information, extracting task configuration items, verifying the legitimacy of configuration items, and providing similarity options for illegal configuration items, guiding users to correctly build data integration tasks;

[0009] The task execution engine is responsible for executing the constructed data integration tasks.

[0010] Optionally, the task construction engine involved includes a text discriminator, a constraint checker, a similarity matcher and a task builder, wherein:

[0011] The text discriminator recognizes the intent of user input information based on the pre-trained artificial intelligence dialogue recognition model and obtains the recognized task configuration items;

[0012] The constraint checker verifies the legitimacy of the task configuration items identified by the text discriminator.

[0013] During the verification process, the similarity matcher is called to obtain options with higher similarity for the user to choose;

[0014] After all task configuration verification items are legal, the task builder is called. The task builder builds the task template according to the data integration task of the business system and accepts the configuration item information passed by the constraint verifier to build the data integration task.

[0015] Optionally, the pre-trained model based on the transformer architecture is fine-tuned to obtain an artificial intelligence dialogue recognition model. The specific steps are as follows:

[0016] (1) Construct a configuration item set based on the configuration items of the data integration task and configure the natural language text of the task;

[0017] (2) Perform data cleaning on natural language texts and annotate the natural language texts using configuration item sets, that is, associate the natural language texts with their corresponding configuration items;

[0018] (3) Train the intent recognition model. Use the labeled data set constructed in step (2) to learn the parameters of the pre-trained model of the transformer architecture. Fine-tune the weight parameters of the pre-trained model until the model has the ability to recognize intent, thus obtaining an artificial intelligence dialogue recognition model.

[0019] Further optionally, the specific process of the artificial intelligence dialogue recognition model performing the information extraction task and the intent classification task is as follows:

[0020] (1) Input text T;

[0021] (2) Configure the pre-instruction template p 信息抽取 and p 意图分类 ;

[0022] (3) Set the preceding instruction template P = {p 信息抽取 , p 意图分类} are concatenated with the input text T to form the model input I = {i 信息抽取 ,i 意图分类};

[0023] (4) Model input I = {i 信息抽取 ,i 意图分类} is converted into a text vector representation through the encoder, and the text vector representation passes through the feature layer and output layer of the trained model to finally obtain the output result R of the information extraction task 信息抽取 And the intention recognition task output result R 意图分类 .

[0024] Optionally, the verification contents include the legality of the table structure, the legality of the parameter type, and the legality of the parameter value, among which:

[0025] The legality of the table structure means that the data source, database table, and field information should be authentic and valid;

[0026] Legal parameter types refer to the fact that some configuration item parameters are determined by business logic to be numeric values, strings, or types other than numeric values ​​and strings.

[0027] Legal parameter values ​​mean that the values ​​of certain configuration item parameters are restricted to specified fixed options.

[0028] Further optional, during the verification process:

[0029] For configuration items that are not verified to be legal, the user is questioned through the visualization page;

[0030] For configuration items with selectable option values, call the similarity matcher to obtain options with higher similarity for the user to choose.

[0031] Optionally, a similarity matcher is called to obtain options with higher similarity for the user to choose. In this process, for each configuration item T, the similarity matcher calculates the edit distance similarity Lev(T,ti) and word vector similarity Lcos(T,ti) between it and each configuration option ti. The word vector similarity refers to the conversion of the configuration item text and the configuration option text into vectors V and v by the word embedding model. i , calculate the cosine similarity of the text in the vector space, and the cosine similarity calculation formula is shown in formula (a):

[0032]

[0033] The edit distance similarity is obtained from the edit distance. The edit distance LevenshteinDistance (T, ti) refers to the minimum number of edit operations required to convert one string into another. The calculation formula of the edit distance similarity is shown in formula (b):

[0034]

[0035] Finally, the similar configuration items obtained by the similarity matcher are shown in formula (c):

[0036]

[0037] Optionally, the task execution engine involved includes a task scheduler and a task executor, wherein:

[0038] The task scheduler is responsible for scheduling distributed task executors to start working when the user triggers an execution operation or sets a scheduled execution.

[0039] The task executor is responsible for executing the specific operations of the data integration task, including data extraction, data cleaning, data encryption, and logging.

[0040] Compared with the prior art, the data integration task construction device based on artificial intelligence interaction of the present invention has the following beneficial effects:

[0041] 1. The present invention recognizes intentions through dialogue with users, configures intelligent task parameters, responds according to dialogue processes and dialogue templates adapted to the business scenarios of data integration, guides users' answers, and ultimately realizes the construction of data integration tasks, thereby solving the problems of high complexity and high maintenance costs in traditional data integration implementation and improving data utilization.

[0042] 2. The present invention can conduct a goal-oriented interactive dialogue on the personalized needs of users and guide users to construct tasks step by step, thus having a wide range of application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Attached Figure 1 is a schematic diagram of the execution flow of the first embodiment of the present invention;

[0044] Attached Figure 2 It is a schematic diagram of the execution flow of the task construction engine in the first embodiment of the present invention. DETAILED DESCRIPTION

[0045] In order to make the technical solution, the technical problem solved and the technical effect of the present invention more clearly understood, the technical solution of the present invention is clearly and completely described below in conjunction with specific embodiments.

[0046] Embodiment 1:

[0047] Combined with Figure 1 This embodiment proposes a data integration task construction device based on artificial intelligence interaction, which includes a web-side dialogue page, a task construction engine and a task execution engine, wherein:

[0048] The web-based dialogue page provides a visualization page, through which users can input data integration requirements, interact with subsequent inquiries, and view the final constructed data integration tasks;

[0049] The task building engine is responsible for intelligently identifying user conversation information, extracting task configuration items, verifying the legitimacy of configuration items, and providing similarity options for illegal configuration items, guiding users to correctly build data integration tasks;

[0050] The task execution engine is responsible for executing the constructed data integration tasks.

[0051] Please refer to the attached Figure 2 In this embodiment, the task construction engine involved includes a text discriminator, a constraint checker, a similarity matcher and a task builder, wherein:

[0052] (1) The text discriminator recognizes the intent of user input information based on a pre-trained artificial intelligence dialogue recognition model and obtains the recognized task configuration items.

[0053] In this process, the pre-trained model based on the transformer architecture is fine-tuned to obtain the artificial intelligence dialogue recognition model. The specific steps are as follows:

[0054] (1.1) Build a configuration item set based on the configuration items of the data integration task and configure the natural language text of the task;

[0055] (1.2) Perform data cleaning on natural language texts and annotate the natural language texts using configuration item sets, that is, associate the natural language texts with their corresponding configuration items;

[0056] (1.3) Train the intent recognition model. Use the labeled data set constructed in step (1.2) to learn the parameters of the pre-trained model of the transformer architecture. Fine-tune the weight parameters of the pre-trained model until the model has the ability to recognize intent, thus obtaining an artificial intelligence dialogue recognition model.

[0057] The specific process of the artificial intelligence dialogue recognition model performing information extraction tasks and intent classification tasks is as follows:

[0058] (i) Input text T, assuming that T = "I want to create a data synchronization task to extract all account table data in the user information database to the account history table in the history database";

[0059] (ii) Configure the pre-instruction template p 信息抽取 and p 意图分类 , assuming p 信息抽取 = "I want to perform an information extraction task to help me extract the information of the source database, source table, target database, and target table in the text", p 意图分类 = "I want to perform an intent classification task. Please help me determine whether the task purpose is to extract all the data from the source table or only part of the data";

[0060] (iii) Set the preceding instruction template P = {p 信息抽取 , p 意图分类} are concatenated with the input text T to form the model input I = {i 信息抽取 ,i 意图分类};

[0061] (iv) Model input I = {i 信息抽取 ,i 意图分类} is converted into a text vector representation through the encoder, and the text vector representation passes through the feature layer and output layer of the trained model to finally obtain the output result R of the information extraction task 信息抽取 And the intention recognition task output result R 意图分类 , specifically, R 信息抽取 ={"Source database":"User information database","Source table":"Account table","Target database":"History database","Target table":"History table"} and the output result of the intent recognition task: R 意图分类 =[{“Intent Type”: “Full Data Extraction”, “Probability”: 0.92},{“Intent Type”: “Partial Data Extraction”, “Probability”: 0.08}];

[0062] (2) The constraint verifier performs a validity check on the task configuration items identified by the text discriminator.

[0063] The verification content includes the legality of the table structure, the legality of the parameter type, and the legality of the parameter value, among which: the legality of the table structure means that the data source, library table, and field information should be true and valid; the legality of the parameter type means that some configuration item parameters are determined by the business logic as numbers, strings, or types other than numbers and strings; the legality of the parameter value means that the values ​​of some configuration item parameters are restricted to the specified fixed options. Specifically, in this process, the constraint verifier verifies the legality of the task configuration items "user information library", "account table", "historical library", and "historical table" identified by the text discriminator, and executes step (3). If the "historical table" does not exist in the "historical library", the constraint verifier will query all data tables under the "historical library" and call the similarity matcher to query the three options with the highest similarity, and initiate a query to the user on the web dialogue page "The target table [historical table] was not found, and the following similar options are [historical personnel table] [historical account table] [historical operation table]" and wait for user input; after the user enters, repeat the above operation until all task configuration items are obtained;

[0064] (3) During the verification process:

[0065] For configuration items that are not verified to be legal, the user is questioned through the visualization page;

[0066] For configuration items with selectable option values, the similarity matcher is called to obtain options with higher similarity for the user to choose. In this process, for each configuration item T, the similarity matcher calculates the edit distance similarity Lev(T,ti) and word vector similarity Lcos(T,ti) between it and each configuration option ti. The word vector similarity refers to the word embedding model converting the configuration item text and the configuration option text into vectors V and v i , calculate the cosine similarity of the text in the vector space, and the cosine similarity calculation formula is shown in formula (a):

[0067]

[0068] The edit distance similarity is obtained from the edit distance. The edit distance LevenshteinDistance (T, ti) refers to the minimum number of edit operations (replacing one character with another, inserting a character, deleting a character) required to convert two strings from one to another. The calculation formula of the edit distance similarity is shown in formula (b):

[0069]

[0070] Finally, the similar configuration items obtained by the similarity matcher are shown in formula (c):

[0071]

[0072] Based on the above assumptions, further assume that the identified task configuration item is "user information table", the text set to be compared is {"user table", "use_info", "history table", "user basic information table", "project information table"}, and the edit distance similarity set is calculated to be {0.75, 0, 0.25, 0.83, 0.6}. Then, the task configuration item text is converted from the word vector space mapping to The same transformation is performed on each element in the text set to be compared to obtain the comparison text word vector set {v 用户表 ,v use_info ,v 历史表 ,v 用户基础信息表 ,v 项目信息表}, the word vector similarity set {0.874, 0.891, 0.312, 0.897, 0.437} is calculated, and the union of the configuration items with edit distance similarity greater than 0.8 and the configuration items with word vector similarity greater than 0.8 is taken as the final output result, that is, {"user table", "use_info", "user basic information table"}.

[0073] (4) After all task configuration verification items are legal, the task builder is called. The task builder builds the task template according to the data integration task of the business system and accepts the configuration item information passed by the constraint verifier to build the data integration task.

[0074] In this embodiment, the task execution engine includes a task scheduler and a task executor, wherein:

[0075] The task scheduler is responsible for scheduling distributed task executors to start working when the user triggers an execution operation or sets a scheduled execution.

[0076] The task executor is responsible for executing the specific operations of the data integration task, including data extraction, data cleaning, data encryption, and logging.

[0077] In summary, the data integration task construction device based on artificial intelligence interaction of the present invention can conduct goal-oriented interactive dialogue on the personalized needs of users, guide users to construct tasks step by step, solve the problems of high complexity and high maintenance cost of traditional data integration implementation work, and improve data utilization.

[0078] The above specific examples are used to explain the principles and implementation methods of the present invention in detail. These examples are only used to help understand the core technical content of the present invention. Based on the above specific embodiments of the present invention, any improvements and modifications made by technicians in this technical field without departing from the principles of the present invention should fall within the scope of patent protection of the present invention.

Claims

1. A data integration task construction device based on artificial intelligence interaction, characterized in that: It includes a web-side dialogue page, a task building engine, and a task execution engine, among which: The web-based dialogue page provides a visualization page, through which users can input data integration requirements, interact with subsequent inquiries, and view the final constructed data integration tasks; The task building engine includes a text discriminator, a constraint checker, a similarity matcher and a task builder, among which: The text discriminator recognizes the intent of user input information based on the pre-trained artificial intelligence dialogue recognition model and obtains the recognized task configuration items; The constraint checker verifies the legitimacy of the task configuration items identified by the text discriminator. During the verification process, the similarity matcher is called to obtain options with higher similarity for the user to choose. In this process, for each configuration item T, the similarity matcher calculates the edit distance similarity Lev(T,ti) and word vector similarity Lcos(T,ti) between it and each configuration option ti. The word vector similarity refers to the word embedding model converting the configuration item text and the configuration option text into vectors V and v i , calculate the cosine similarity of the text in the vector space, and the cosine similarity calculation formula is shown in formula (a): The edit distance similarity is obtained from the edit distance. The edit distance LevenshteinDistance (T, ti) refers to the minimum number of edit operations required to convert one string into another. The calculation formula of the edit distance similarity is shown in formula (b): Finally, the similar configuration items obtained by the similarity matcher are shown in formula (c): After all task configuration verification items are legal, the task builder is called. The task builder builds the task template according to the data integration task of the business system and accepts the configuration item information passed by the constraint verifier to build the data integration task. The task execution engine is responsible for executing the constructed data integration tasks.

2. According to claim 1, a data integration task construction device based on artificial intelligence interaction is characterized in that: Fine-tune the pre-trained model based on the transformer architecture to obtain the artificial intelligence dialogue recognition model. The specific steps are as follows: (1) Construct a configuration item set based on the configuration items of the data integration task and configure the natural language text of the task; (2) Perform data cleaning on natural language texts and annotate the natural language texts using configuration item sets, that is, associate the natural language texts with their corresponding configuration items; (3) Train the intent recognition model. Use the labeled data set constructed in step (2) to learn the parameters of the pre-trained model of the transformer architecture. Fine-tune the weight parameters of the pre-trained model until the model has the ability to recognize intent, thus obtaining an artificial intelligence dialogue recognition model.

3. The data integration task construction device based on artificial intelligence interaction according to claim 2 is characterized in that: The specific process of the artificial intelligence dialogue recognition model performing information extraction tasks and intent classification tasks is as follows: (1) Input text T; (2) Configure the pre-instruction template p 信息抽取 and p 意图分类 ; (3) Set the preceding instruction template P = {p 信息抽取 , p 意图分类 } are concatenated with the input text T to form the model input I = {i 信息抽取 ,i 意图分类 }; (4) Model input I = {i 信息抽取 ,i 意图分类 } is converted into a text vector representation through the encoder, and the text vector representation passes through the feature layer and output layer of the trained model to finally obtain the output result R of the information extraction task 信息抽取 And the intention recognition task output result R 意图分类 .

4. The data integration task construction device based on artificial intelligence interaction according to claim 1 is characterized in that: The verification content includes the legality of the table structure, the legality of the parameter type, and the legality of the parameter value, among which: The legality of the table structure means that the data source, database table, and field information should be authentic and valid; Legal parameter types refer to the fact that some configuration item parameters are determined by business logic to be numeric values, strings, or types other than numeric values ​​and strings. Legal parameter values ​​mean that the values ​​of certain configuration item parameters are restricted to specified fixed options.

5. The data integration task construction device based on artificial intelligence interaction according to claim 4 is characterized in that: During the verification process: For configuration items that are not verified to be legal, the user is questioned through the visualization page; For configuration items with selectable option values, call the similarity matcher to obtain options with higher similarity for the user to choose.

6. The data integration task construction device based on artificial intelligence interaction according to claim 1 is characterized in that: The task execution engine includes a task scheduler and a task executor, where: The task scheduler is responsible for scheduling distributed task executors to start working when the user triggers an execution operation or sets a scheduled execution. The task executor is responsible for executing the specific operations of the data integration task, including data extraction, data cleaning, data encryption, and logging.

Citation Information

Patent Citations

  • Task type intelligent multi-round dialogue method based on RASA and related equipment

    CN115392264A