Multi-type data query verification method and device, equipment and storage medium
Query instructions are converted and processed through the query generation model to generate query expressions corresponding to the storage database, which solves the problems of natural language query intent conversion and multi-type query expression consistency problems in the existing technology, and improves data query efficiency and consistency. Check accuracy.
Patent Information
- Application Number
- CN202310344461.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing technology, when performing consistency verification on data in different storage databases, it is difficult to convert natural language query intentions into query expressions, and the consistency of multiple types of query expressions cannot be guaranteed, resulting in manual understanding deviation and query Low efficiency.
By obtaining query instructions and inputting them into the query generation model, query expressions corresponding to each storage database are generated, and query processing and consistency verification are performed on the data based on these expressions, and the query generation model is used to automatically convert natural language descriptions or queries. Expressions enable intelligent verification of multi-type data across storage types.
It avoids manual understanding bias, improves the efficiency of query data and the consistency verification accuracy of query results fed back by different storage databases, and realizes automatic and fast intelligent verification across storage types.
Smart Images

Figure CN118733622A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and specifically relates to a query and verification method, device, equipment and storage medium for multiple types of data. Background Art
[0002] With the continuous improvement of production technology and the continuous increase in business needs, more and more attention is paid to the multi-type data verification method of washing equipment. At present, after the server aggregates the washing data of the network device, it will classify the washing data according to business needs and store different types of data in the corresponding storage database. After the washing data is stored in different storage databases, it is necessary to perform consistency verification on the data stored in each storage database.
[0003] In the prior art, when consistency verification is performed on data in different storage databases, verification personnel are usually required to write corresponding query expressions for different storage methods to perform query verification, or manually analyze the grammatical structure of each query expression, and convert query languages to each other through grammatical analysis and lexical analysis, so as to obtain different query expressions.
[0004] However, the above method is difficult to achieve the conversion of natural language query intent into query expressions, and cannot guarantee the consistency of multiple types of query expressions. Summary of the invention
[0005] The present application provides a query verification method, device, equipment and storage medium for multi-type data, which are used to solve the defects of query inconsistency and low efficiency of data query and analysis caused by human understanding deviation in the prior art.
[0001] In a first aspect, the present application provides a method for querying and verifying multiple types of data, including:
[0002] Obtaining a query instruction, wherein the query instruction is used to instruct to query data in multiple types of storage databases;
[0003] Inputting the query instruction into the query generation model to obtain a query expression corresponding to each storage database;
[0004] According to the query expression corresponding to each storage database, query processing is performed on each storage database to obtain query results; and consistency verification is performed on the query results.
[0005] Optionally, the query instruction includes: querying a natural language description input by a user, and the obtaining query instruction includes:
[0006] Obtaining a natural language description of the query user input;
[0007] The step of inputting the query instruction into the query generation model to obtain a query expression corresponding to each storage database includes:
[0008] The natural language description is input into a query generation model, so that the query generation model generates a query expression corresponding to each storage database according to the natural language description.
[0009] Optionally, the query instruction includes: a query expression of the first type, and the acquisition query instruction includes:
[0010] Obtaining the query expression of the first type;
[0011] The step of inputting the query instruction into the query generation model to obtain a query expression corresponding to each storage database includes:
[0012] The query expression of the first type is input into the query generation model, so that the query generation model translates the query expression of the first type to obtain a query expression corresponding to each storage database.
[0013] Optionally, the query result includes: data information corresponding to the query instruction, and the query processing is performed on each storage database according to the query expression corresponding to each storage database to obtain the query result, including:
[0014] According to the query expression corresponding to each storage database, data information corresponding to the query instruction is obtained from each storage database.
[0015] Optionally, performing a consistency check on the query result includes:
[0016] Determine whether the data information obtained from each storage database is consistent;
[0017] If yes, then the verification is confirmed to be normal;
[0018] If not, it is determined that the verification is abnormal.
[0019] Optionally, the method further includes:
[0020] When it is determined that the verification is normal, the verification procedure is ended;
[0021] When a verification abnormality is determined, an alarm message is generated and sent to the query terminal.
[0022] Optionally, before obtaining the query instruction, the method further includes:
[0023] Get user data uploaded by smart home appliances;
[0024] According to the business requirements of the storage database corresponding to the multiple storage types, the type of the user data is converted to obtain multiple types of data;
[0025] The multiple types of data are stored in corresponding storage databases respectively.
[0026] In a second aspect, the present application provides a query and verification device for multiple types of data, including:
[0027] An acquisition module, used for acquiring a query instruction, wherein the query instruction is used for instructing to query data in multiple types of storage databases;
[0028] A processing module, used for inputting the query instruction into a query generation model to obtain a query expression corresponding to each storage database;
[0029] A query module is used to perform query processing on each storage database according to the query expression corresponding to each storage database to obtain the query result;
[0030] A verification module is used to perform consistency verification on the query result.
[0031] Optionally, the query instruction includes: querying a natural language description input by a user;
[0032] The acquisition module is specifically used to acquire the natural language description input by the query user;
[0033] The processing model is specifically used to input the natural language description into a query generation model, so that the query generation model generates a query expression corresponding to each storage database according to the natural language description.
[0034] Optionally, the query instruction includes: a first type of query expression;
[0035] The acquisition module is specifically used to acquire the query expression of the first type;
[0036] The processing module is specifically used to input the query expression of the first type into the query generation model, so that the query generation model translates the query expression of the first type to obtain the query expression corresponding to each storage database.
[0037] Optionally, the query result includes: data information corresponding to the query instruction, and the query module is specifically used to obtain the data information corresponding to the query instruction from each storage database according to the query expression corresponding to each storage database.
[0038] Optionally, the order processing device further includes: a judgment module;
[0039] The judgment module is used to judge whether the data information obtained from each storage database is consistent;
[0040] The processing module is further used to determine that the verification is normal and end the verification procedure when the data information obtained in each storage database is consistent;
[0041] The processing module is further used to determine verification anomalies when the data information obtained in each storage database is inconsistent, generate alarm information, and send the alarm information to the query terminal.
[0042] Optionally, the device further includes: a storage module;
[0043] The acquisition module is also used to acquire user data uploaded by the smart home appliance;
[0044] The processing module is further used to convert the type of the user data according to the business requirements of the storage database corresponding to the multiple storage types to obtain multiple types of data;
[0045] The storage module is used to store the multiple types of data in corresponding storage databases respectively.
[0046] In a third aspect, the present application provides a query and verification device for multiple types of data, including:
[0047] Memory;
[0048] processor;
[0049] Wherein, the memory stores computer-executable instructions;
[0050] The processor executes the computer-executable instructions stored in the memory to implement the query and verification method for multiple types of data as described in the first aspect and various possible implementations of the first aspect.
[0051] In a fourth aspect, the present application provides a computer storage medium having computer execution instructions stored thereon, wherein the computer execution instructions are executed by a processor to implement the query and verification method for multiple types of data as described in the first aspect and various possible implementations of the first aspect.
[0052] The query verification method for multiple types of data provided by the present application obtains a query instruction, the query instruction is used to instruct to query data in multiple types of storage databases; the query instruction is input into the query generation model to obtain the query expression corresponding to each storage database; according to the query expression corresponding to each storage database, query processing is performed on each storage database to obtain the query result; and the query result is consistency verified. This method avoids the defect of inconsistent query results caused by human understanding deviation, improves the efficiency of querying data; and at the same time improves the accuracy of consistency verification of query results fed back by different storage databases. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0054] Figure 1 It is a scenario diagram of the query and verification method of multiple types of data provided by this application;
[0055] Figure 2 This is the process of the query and verification method for multiple types of data provided by this application Figure 1 ;
[0056] Figure 3 This is the process of the query and verification method for multiple types of data provided by this application Figure 2 ;
[0057] Figure 4 A schematic diagram of the structure of a query and verification device for multiple types of data provided by this application;
[0058] Figure 5 A schematic diagram of the structure of the query and verification device for multiple types of data provided in this application.
[0059] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0061] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein, for example.
[0062] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0063] With the continuous improvement of production technology and the continuous increase in business needs, more and more attention is paid to the multi-type data verification method of washing equipment. At present, after the server aggregates the washing data of the network device, it will classify the washing data according to business needs and store different types of data in the corresponding storage database. After the washing data is stored in different storage databases, it is necessary to perform consistency verification on the data stored in each storage database.
[0064] In the prior art, when consistency verification is performed on data in different storage databases, verification personnel are usually required to write corresponding query expressions for different storage methods to perform query verification, or manually analyze the grammatical structure of each query expression, and convert query languages to each other through grammatical analysis and lexical analysis, so as to obtain different query expressions.
[0065] However, the above method is difficult to achieve the conversion of natural language query intent into query expressions, and cannot guarantee the consistency of multiple types of query expressions.
[0066] In view of the above problems, this application provides a query and verification method for multi-type data. Figure 1 Schematic diagram of the scenario of the query and verification method of multiple types of data provided by this application. Figure 1 As shown, multiple laundry machines 1 are connected to a server 2 in communication, and the server 2 is connected to a query terminal 3 in communication. The server 2 can receive washing behavior data sent from the laundry machines 11, 12, and 13, and send the received washing behavior data to the query terminal 3, so that the query terminal 3 displays the washing behavior data.
[0067] The query verification method for multi-type data provided in the present application converts query instructions through a query generation model to obtain query expressions corresponding to all storage databases, and performs query processing on the corresponding storage databases according to the query expressions, and then performs consistency verification on the query results of all storage databases; the method realizes automatic and fast intelligent verification of multi-type data across storage types, and solves the problems of time-consuming and labor-intensive manual writing of various queries, poor accuracy, and inconsistent translation of query intent.
[0068] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0069] Figure 2 This is the process of the query and verification method for multiple types of data provided by this application Figure 1 The execution subject of this embodiment can be, for example, Figure 1 The server shown in the embodiment. Figure 1 As shown, the query and verification method for multiple types of data provided by this embodiment includes:
[0070] S101: Obtain a query instruction, where the query instruction is used to instruct to query data in multiple types of storage databases.
[0071] The query instruction may be a natural language description input by the query user and / or a query expression of the first type. The multi-type storage database includes: streaming data, relational data, document data, key-value data, and graph data.
[0072] When a query user needs to verify multiple types of data, a natural language description and / or a first type query expression input by the user may be obtained.
[0073] For example, a querying user may obtain the washing behavior data of the laundry device by inputting the laundry device number; in this case, the laundry device number is used to distinguish each laundry device.
[0074] S102: Input the query instruction into a query generation model to obtain a query expression corresponding to each storage database.
[0075] Among them, the query generation model can, for example, adopt pre-trained models such as GPT-3 and LLaMA to build an AIGC-based query generation model, so that the model can directly convert natural language into query expressions, or translate a certain type of query expression into other sentences.
[0076] In this step, after obtaining the query instruction, the query instruction is input into the above-mentioned query generation model. The query generation model will generate multiple types of query instructions or translate them into other types of query instructions based on the query instruction; that is, the query generation model can obtain query expressions for data types corresponding to all storage databases based on the query instruction.
[0077] Optionally, when the query instruction is a query expression of the first type, the specific implementation method of inputting the query instruction into the query generation model to obtain the query expression corresponding to each storage database may be, for example: inputting the first type of query expression into the query generation model so that the query generation model translates the first type of query expression to obtain the query expression corresponding to each storage database.
[0078] The query expression of the first type may be a query expression corresponding to a certain type in the multi-type data repository. After the query expression of the first type is input, the query expression of the first type is translated into query expressions of other types through the query generation model.
[0079] S103: performing query processing on each storage database according to the query expression corresponding to each storage database to obtain a query result; and performing consistency check on the query result.
[0080] It is understandable that after obtaining the query expressions corresponding to all storage databases, different query expressions are used to query the corresponding storage databases, thereby obtaining the query results fed back by each storage database. At this time, the obtained query results can be summarized, compared and consistency checked.
[0081] The specific implementation method of the consistency check described in this step can be, for example, to compare the query results fed back by different storage databases, and determine whether the data in each storage database is consistent based on the comparison results; thereby quickly implementing data consistency, data volume, data correlation and other checks in different storage databases.
[0082] The query verification method for multiple types of data provided in this embodiment obtains a query instruction, wherein the query instruction is used to instruct to query data in multiple types of storage databases; the query instruction is input into a query generation model to obtain a query expression corresponding to each storage database; query processing is performed on each storage database according to the query expression corresponding to each storage database to obtain a query result, and the query result is verified for consistency. This method uses a query generation model to process query instructions to obtain query expressions of different storage types, avoids the defect of inconsistent query results caused by human understanding deviation, and improves the efficiency of querying data; at the same time, it improves the accuracy of consistency verification of query results fed back by different storage databases.
[0083] Figure 3 This is the query and verification process of multiple types of data provided by this application Figure 2 The execution subject of this embodiment may be, for example, Figure 1 The server shown in the embodiment. Figure 3 As shown, in this embodiment Figure 2 Based on the embodiment, a query and verification method for multiple types of data is described in detail. The query and verification method for multiple types of data shown in this embodiment includes:
[0084] S201: Acquire user data uploaded by smart home appliances.
[0085] The user data may be washing behavior data corresponding to the laundry device. Smart home appliances can report massive amounts of user data through the Internet of Things, and the server obtains the massive amounts of user data and aggregates them to the cloud big data platform.
[0086] S202: According to the business requirements of the storage database corresponding to the multiple storage types, the type of the user data is converted to obtain multiple types of data.
[0087] Among them, business needs are needs oriented towards user-friendly services. For example, some users need to be guided by charts, while others need to be guided by real-time data. Therefore, based on user needs, the above massive data needs to be stored in different storage types.
[0088] It is understandable that the user washing behavior data is collected and classified and stored through business logic conversion, as well as the specific needs of back-end applications such as data mining, analysis, prediction, and knowledge graphs.
[0089] S203: Store the multiple types of data in corresponding storage databases respectively.
[0090] Among them, multiple types of data are stored in the database platform according to classification, and the database platform has been classified in advance and has different storage databases. Therefore, the acquired data can be classified and stored according to the original storage method of the database.
[0091] S204: Obtaining the natural language description input by the query user.
[0092] Among them, natural language refers to the instructions issued by the query user through spoken language, which can be used to search for information after being input into the query terminal.
[0093] For example, the query user inputs "generate structured query language, digital query language, streaming query language to sort by monthly aggregate totals of devices" in the query terminal.
[0094] S205: Input the natural language description into a query generation model, so that the query generation model generates a query expression corresponding to each storage database according to the natural language description.
[0095] The query generation model processes the input natural language and generates query expressions corresponding to storage databases of all storage types.
[0096] For example: the query instruction is: "Generate a structured query language, a digital query language, and a streaming query language for sorting the monthly aggregate totals by device", then the query generation model generates query expressions for streaming data, query expressions for relational data, query expressions for document data, query expressions for key-value pair data, and query expressions for graph data based on the query instruction.
[0097] S206: According to the query expression corresponding to each storage database, obtain data information corresponding to the query instruction from each storage database.
[0098] After the query expressions corresponding to all storage databases are obtained, based on the corresponding relationship between the query expressions and the storage databases, the query expressions are used to perform query processing on all storage databases, thereby obtaining data information.
[0099] S207: Determine whether the data information is consistent; if so, execute step S208, if not, execute step S210.
[0100] The query is executed on multiple types of data storage platforms to obtain query results of corresponding types, and then the obtained query results are summarized, compared and verified to determine whether the results are correct.
[0101] Among them, it can be determined whether the multiple data information obtained from all storage databases are consistent. If they are consistent, it means that the data stored in all storage databases are consistent, and the verification is determined to be normal at this time; if they are inconsistent, it indicates that there is a storage database storage error, that is, the data stored in multiple storage databases are inconsistent, and the verification is determined to be abnormal at this time.
[0102] S208: Determine whether the verification is normal.
[0103] S209: End the verification procedure.
[0104] After determining that the verification is normal, the verification procedure is ended.
[0105] S210: Determine that the verification is abnormal.
[0106] S211: Generate alarm information, and send the alarm information to the query terminal.
[0107] The warning information is used to remind the query user of the abnormal verification. The warning information can be, for example, a warning sign and text, or a warning audio.
[0108] If it is determined that the verification is abnormal, an alarm message for prompting the querying user may be generated and sent to the query terminal of the querying user, so that the querying user can handle the verification abnormality.
[0109] The query verification method for multi-type data provided in this embodiment, after obtaining the natural language description input by the user, processes the natural language description through the query generation model to obtain query expressions of different storage types, and then performs query processing on the corresponding storage database according to the query expressions of different storage types to obtain multiple query results; and then performs consistency verification on the query results. This method avoids the defect of inconsistent query results caused by human understanding bias, improves the efficiency of querying data; and at the same time improves the accuracy of consistency verification of query results fed back by different storage databases.
[0110] Figure 4 This is a schematic diagram of the structure of the query and verification device for multiple types of data provided by this application. Figure 4 As shown, the present application provides a query and verification device for multi-type data, and the query and verification device 300 for multi-type data includes:
[0111] An acquisition module 301 is used to acquire a query instruction, where the query instruction is used to instruct to query data in multiple types of storage databases;
[0112] The processing module 302 is used to input the query instruction into the query generation model to obtain the query expression corresponding to each storage database;
[0113] A query module 303 is used to perform query processing on each storage database according to the query expression corresponding to each storage database to obtain a query result;
[0114] The verification module 304 is used to perform consistency verification on the query result.
[0115] Optionally, the query instruction includes: querying a natural language description input by a user;
[0116] The acquisition module 301 is specifically used to acquire the natural language description input by the query user;
[0117] The processing model 302 is specifically used to input the natural language description into a query generation model, so that the query generation model generates a query expression corresponding to each storage database according to the natural language description.
[0118] Optionally, the query instruction includes: a first type of query expression;
[0119] The acquisition module 301 is specifically used to acquire the query expression of the first type;
[0120] The processing module 302 is specifically configured to input the query expression of the first type into a query generation model, so that the query generation model translates the query expression of the first type to obtain a query expression corresponding to each storage database.
[0121] Optionally, the query result includes: data information corresponding to the query instruction, and the query module 303 is specifically used to obtain data information corresponding to the query instruction from each storage database according to the query expression corresponding to each storage database.
[0122] Optionally, the order processing device further includes: a judgment module 305;
[0123] The judgment module 305 is used to judge whether the data information obtained from each storage database is consistent;
[0124] The processing module 302 is further used to determine that the verification is normal and end the verification procedure when the data information obtained in each storage database is consistent;
[0125] The processing module 302 is further configured to determine a verification anomaly when the data information obtained in each storage database is inconsistent, generate an alarm message, and send the alarm message to the query terminal.
[0126] Optionally, the device further includes: a storage module 306;
[0127] The acquisition module 301 is also used to acquire user data uploaded by the smart home appliance;
[0128] The processing module 302 is further used to convert the type of the user data according to the business requirements of the storage database corresponding to the multiple storage types to obtain multiple types of data;
[0129] The storage module 306 is used to store the multiple types of data in corresponding storage databases respectively.
[0130] Figure 5 This is a schematic diagram of the structure of the query and verification device for multiple types of data provided by this application. Figure 5 As shown, the present application provides a query and verification device for multiple types of data. The query and verification device 400 for multiple types of data includes: a receiver 401 , a transmitter 402 , a processor 403 and a memory 404 .
[0131] Receiver 401, used for receiving instructions and data;
[0132] A transmitter 402, used for sending instructions and data;
[0133] Memory 404, for storing computer-executable instructions;
[0134] The processor 403 is used to execute the computer-executable instructions stored in the memory 404 to implement the various steps performed by the query and verification method for multiple types of data in the above embodiment. For details, please refer to the relevant description in the above embodiment of the query and verification method for multiple types of data.
[0135] Optionally, the memory 404 may be independent or integrated with the processor 403 .
[0136] When the memory 404 is independently provided, the electronic device further includes a bus for connecting the memory 404 and the processor 403 .
[0137] The present application also provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, a query and verification method for multiple types of data as performed by the query and verification device for multiple types of data as described above is implemented. It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0138] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments, and the above embodiments are only used to illustrate the technical solution of the present application rather than to limit it. Although the present application 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 replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A query and verification method for multi-type data, characterized in that: The method comprises: Obtaining a query instruction, wherein the query instruction is used to instruct to query data in multiple types of storage databases; Inputting the query instruction into the query generation model to obtain a query expression corresponding to each storage database; According to the query expression corresponding to each storage database, query processing is performed on each storage database to obtain query results; and consistency verification is performed on the query results.
2. The method according to claim 1, characterized in that: The query instruction includes: querying the natural language description input by the user, and the acquisition query instruction includes: Obtaining a natural language description of the query user input; The step of inputting the query instruction into the query generation model to obtain a query expression corresponding to each storage database includes: The natural language description is input into a query generation model, so that the query generation model generates a query expression corresponding to each storage database according to the natural language description.
3. The method according to claim 1, characterized in that The query instruction includes: a first type of query expression, and the acquisition query instruction includes: Obtaining the query expression of the first type; The step of inputting the query instruction into the query generation model to obtain a query expression corresponding to each storage database includes: The query expression of the first type is input into the query generation model, so that the query generation model translates the query expression of the first type to obtain a query expression corresponding to each storage database.
4. The method according to claim 1, characterized in that The query result includes: data information corresponding to the query instruction, and the query processing is performed on each storage database according to the query expression corresponding to each storage database to obtain the query result, including: According to the query expression corresponding to each storage database, data information corresponding to the query instruction is obtained from each storage database.
5. The method according to claim 2, characterized in that: The performing consistency check on the query result includes: Determine whether the data information obtained from each storage database is consistent; If yes, then the verification is confirmed to be normal; If not, it is determined that the verification is abnormal.
6. The method according to claim 5, characterized in that The method further comprises: When it is determined that the verification is normal, the verification procedure is ended; When a verification abnormality is determined, an alarm message is generated and sent to the query terminal.
7. The method according to claim 1, characterized in that Before obtaining the query instruction, the method further includes: Get user data uploaded by smart home appliances; According to the business requirements of the storage database corresponding to the multiple storage types, the type of the user data is converted to obtain multiple types of data; The multiple types of data are stored in corresponding storage databases respectively.
8. A query and verification device for multi-type data, characterized in that: include: An acquisition module, used for acquiring a query instruction, wherein the query instruction is used for instructing to query data in multiple types of storage databases; A processing module, used for inputting the query instruction into a query generation model to obtain a query expression corresponding to each storage database; A query module is used to perform query processing on each storage database according to the query expression corresponding to each storage database to obtain the query result; A verification module is used to perform consistency verification on the query result.
9. A query and verification device for multiple types of data, characterized in that: include: Memory; processor; Wherein, the memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the query and verification method for multi-type data according to any one of claims 1-7.
10. A computer storage medium, characterized in that: The computer storage medium stores computer execution instructions, which, when executed by a processor, are used to implement the query and verification method for multi-type data as described in any one of claims 1 to 7.
