Data query method, device, electronic device and storage medium

By matching business indicators and database data of user query intentions in the field of business intelligence, the amount and complexity of data are reduced, the problem of large machine learning model analysis errors is solved, and the accuracy and efficiency of analysis results are improved.

CN118331992BActive Publication Date: 2024-09-06BEIJING DIPEAK TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410749295.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-09-06
Estimated Expiration
2044-06-11

AI Technical Summary

Technical Problem

Large machine learning models in the field of business intelligence may suffer from "illusion phenomena" due to the large amount of data and data complexity, which affects the accuracy and efficiency of analysis results.

Method used

By obtaining the query description information input by the user, we perform feature and sequence similarity matching based on preset business indicators, determine the target business indicators, and search for target business data from the database, reducing the amount and complexity of data and the possibility of model error analysis. .

Benefits of technology

It improves the accuracy and efficiency of data analysis, reduces the probability of model error analysis, and improves the reliability and user experience of analysis results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118331992B
    Figure CN118331992B
Patent Text Reader

Abstract

The present disclosure provides a data query method, device, electronic device and storage medium, the method comprising: obtaining query description information input by a user; the query description information is used to characterize at least one query dimension information of the user's query intention; based on the query description information, determining at least one target business indicator matching the query description information from multiple preset business indicators, and searching for target business data corresponding to the at least one target business indicator from a database; based on a preset large-scale machine learning model, performing data dimension analysis on the target business data according to at least one query dimension information characterized by the query description information, and obtaining a data analysis result corresponding to the query description information. The embodiments of the present disclosure can reduce the amount of business data processed by the large-scale machine learning model, thereby improving the accuracy of the analysis results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of data query, and in particular to a data query method, a data query device, an electronic device, and a computer-readable storage medium. Background Art

[0002] Business Intelligence (BI) refers to the use of modern data warehouse technology, online analytical processing technology, data mining and data presentation technology to analyze data in order to realize business value.

[0003] Large machine learning models are widely used in the field of business intelligence due to their data analysis capabilities. They can be used for trend analysis, behavior prediction, or resource allocation, etc. However, due to factors such as the large amount of data and the complexity of the data, the model may experience "hallucination phenomenon", that is, the model may make incorrect analysis during data analysis, thus affecting the accuracy of the analysis results. Summary of the invention

[0004] The embodiments of the present disclosure at least provide a data query method, a data query device, an electronic device and a computer-readable storage medium, which can reduce the data range, improve the accuracy of the model, and thus improve the accuracy of the analysis results.

[0005] The present disclosure provides a data query method, including:

[0006] Acquire query description information input by a user; the query description information is used to characterize at least one query dimension information of the query intention of the user;

[0007] Based on the query description information, determining at least one target business indicator matching the query description information from a plurality of preset business indicators, and searching a database for target business data corresponding to the at least one target business indicator;

[0008] Based on a preset large-scale machine learning model, data dimension analysis is performed on the target business data according to the at least one query dimension information represented by the query description information to obtain a data analysis result corresponding to the query description information.

[0009] In the embodiment of the present disclosure, by determining at least one target business indicator that matches the query description information from multiple preset business indicators, and searching the database for target business data corresponding to the at least one target business indicator, the amount of data can be reduced and the complexity of the data can be reduced, thereby reducing the possibility of "hallucination phenomenon" in large machine learning models, which is beneficial to improving the accuracy of the analysis results.

[0010] In addition, at least one target business indicator is determined by matching, so that target business data corresponding to the at least one target business indicator can be searched from the database, thereby improving the efficiency of data search.

[0011] In an optional implementation, the determining, based on the query description information, at least one target business indicator matching the query description information from a plurality of preset business indicators includes:

[0012] Perform feature similarity matching on the query description information and each of the preset business indicators, and determine the preset business indicator whose feature similarity is greater than a first preset threshold as the first business indicator;

[0013] Performing sequence similarity matching on the query description information and each of the preset business indicators, and determining the preset business indicator whose sequence similarity is greater than a second preset threshold as the second business indicator; the sequence similarity matching refers to the matching between the sequence characters corresponding to the query description information and the preset business indicators respectively;

[0014] A preset business indicator formed by the union of the first business indicator and the second business indicator is determined as the target business indicator.

[0015] In the disclosed embodiment, feature similarity matching and sequence similarity matching are performed on the query description information and each preset business indicator, that is, the business indicators are matched by different matching methods, which can improve the accuracy and completeness of the determined target business indicators.

[0016] In an optional implementation manner, performing sequence similarity matching on the query description information and each of the preset business indicators respectively includes:

[0017] For any of the preset business indicators, determine the longest common subsequence between the query description information and the preset business indicator, and determine the sequence similarity between the query description information and the preset business indicator according to the length of the longest common subsequence.

[0018] In the disclosed embodiment, the sequence similarity is determined according to the length of the longest common subsequence between the query description information and the preset business indicator, so that the accuracy of the sequence similarity can be improved.

[0019] In an optional implementation manner, before determining at least one target business indicator matching the query description information from a plurality of preset business indicators based on the query description information, the method further includes:

[0020] In response to the query trigger operation, displaying a business query interface, the business query interface including a business confirmation option;

[0021] In response to a selection operation for the business determination option, determining a target business from a plurality of preset businesses; different preset businesses correspond to different plurality of preset business indicators;

[0022] The determining, based on the query description information, at least one target business indicator matching the query description information from a plurality of preset business indicators comprises:

[0023] Based on the query description information, at least one target business indicator matching the query description information is determined from a plurality of preset business indicators corresponding to the target business.

[0024] In the disclosed embodiment, a target business is determined from a plurality of preset businesses, so that at least one target business indicator can be determined from a plurality of preset business indicators corresponding to the target business, that is, the business scope can be further narrowed through the target business, and since different preset businesses correspond to different plurality of preset business indicators, the scope of the preset business indicators can be further narrowed, thereby improving the efficiency of data search.

[0025] In an optional implementation manner, any of the target business indicators corresponds to a confidence level; and searching the database for target business data corresponding to the at least one target business indicator includes:

[0026] According to the order of the confidences respectively corresponding to the at least one target business indicator, the target business data corresponding to the plurality of target business indicators are searched from the database in sequence.

[0027] In the disclosed embodiment, the target business data is searched from the database in order of confidence, so that the reliability of the found target business data can be improved.

[0028] In an optional implementation manner, after obtaining the data analysis result corresponding to the query description information, the method further includes:

[0029] The data analysis results are displayed through a result display interface; the result display interface also includes a preset query dimension, and the preset query dimension at least includes a data query option and an adjustment option, wherein the adjustment option refers to an editing switch of the data query option, and the data query option is used to edit the data query condition.

[0030] In the disclosed embodiment, the data analysis results are displayed through the result display interface, so that the intuitiveness of the data analysis results can be improved, which is convenient for users to view and understand, thereby improving the user experience. In addition, the result display interface also includes preset query dimensions, so that users can also adjust and set the preset query dimensions according to their own needs after viewing the data analysis results, which is conducive to improving the user's interactive experience.

[0031] In an optional implementation manner, after displaying the data analysis result through the result display interface, the method further includes:

[0032] Obtaining result feedback information input by a target user for the data analysis result; the result feedback information is used to indicate whether the data analysis result meets preset requirements;

[0033] Based on the result feedback information respectively input by different target users, the model parameters of the large-scale machine learning model are adjusted to obtain a new large-scale machine learning model.

[0034] In the disclosed embodiment, since the result feedback information is used to characterize whether the data analysis results meet the preset requirements, the model parameters of the large machine learning model can be adjusted based on the result feedback information input by different target users, thereby improving the accuracy of the model.

[0035] In an optional implementation manner, the method further includes:

[0036] Based on the result feedback information respectively input by different target users and the corresponding query description information, the corresponding target business indicators are adjusted, and multiple new preset business indicators are generated based on the adjusted target business indicators.

[0037] In the disclosed embodiment, the corresponding target business indicators are adjusted based on the result feedback information and corresponding query description information respectively input by different target users. In this way, the new multiple preset business indicators can be more in line with the description of each user, thereby improving the accuracy of business indicator matching.

[0038] In an optional implementation manner, the result display page further includes a query statement display item; and the method further includes:

[0039] In response to a triggering operation on the query statement display item, a query statement corresponding to the query description information is displayed.

[0040] In the disclosed embodiment, by displaying the query statement corresponding to the query description information, the user can view the query statement intuitively and can also verify the accuracy of the query statement.

[0041] The present disclosure also provides a data query device, including:

[0042] An acquisition module, used to acquire query description information input by a user; the query description information is used to characterize at least one query dimension information of the query intention of the user;

[0043] A search module, configured to determine, based on the query description information, at least one target business indicator matching the query description information from a plurality of preset business indicators, and search a database for target business data corresponding to the at least one target business indicator;

[0044] The analysis module is used to perform data dimension analysis on the target business data based on a preset large-scale machine learning model according to the at least one query dimension information represented by the query description information, and obtain a data analysis result corresponding to the query description information.

[0045] In an optional implementation manner, the search module is specifically used to:

[0046] Perform feature similarity matching on the query description information and each of the preset business indicators, and determine the preset business indicator whose feature similarity is greater than a first preset threshold as the first business indicator;

[0047] Performing sequence similarity matching on the query description information and each of the preset business indicators, and determining the preset business indicator whose sequence similarity is greater than a second preset threshold as the second business indicator; the sequence similarity matching refers to the matching between the sequence characters corresponding to the query description information and the preset business indicators respectively;

[0048] A preset business indicator formed by the union of the first business indicator and the second business indicator is determined as the target business indicator.

[0049] In an optional implementation manner, the search module is specifically used to:

[0050] For any of the preset business indicators, determine the longest common subsequence between the query description information and the preset business indicator, and determine the sequence similarity between the query description information and the preset business indicator according to the length of the longest common subsequence.

[0051] Another data query device provided in the embodiment of the present disclosure further includes:

[0052] A display module, used to display a business query interface in response to a query trigger operation, wherein the business query interface includes a business confirmation option;

[0053] A determination module, configured to determine a target business from a plurality of preset businesses in response to a selection operation for the business determination option; different preset businesses correspond to different plurality of preset business indicators;

[0054] The search module is specifically used for:

[0055] Based on the query description information, at least one target business indicator matching the query description information is determined from a plurality of preset business indicators corresponding to the target business.

[0056] In an optional implementation manner, any of the target business indicators corresponds to a confidence level; and the search module is specifically configured to:

[0057] According to the order of the confidences respectively corresponding to the at least one target business indicator, the target business data corresponding to the plurality of target business indicators are searched from the database in sequence.

[0058] In an optional implementation manner, the display module is further used for:

[0059] The data analysis results are displayed through a result display interface; the result display interface includes preset query dimensions, and the preset query dimensions include at least data query options and adjustment options, wherein the adjustment options refer to editing switches of the data query options, and the data query options are used to edit data query conditions.

[0060] In an optional implementation, the device further includes an adjustment module;

[0061] The acquisition module is also used for:

[0062] Obtaining result feedback information input by a target user for the data analysis result; the result feedback information is used to indicate whether the data analysis result meets preset requirements;

[0063] The adjustment module is used for:

[0064] Based on the result feedback information respectively input by different target users, the model parameters of the large-scale machine learning model are adjusted to obtain a new large-scale machine learning model.

[0065] In an optional implementation manner, the adjustment module is further used to:

[0066] Based on the result feedback information respectively input by different target users and the corresponding query description information, the corresponding target business indicators are adjusted, and multiple new preset business indicators are generated based on the adjusted target business indicators.

[0067] In an optional implementation manner, the result display page also includes a query statement display item; and the display module is further used to:

[0068] In response to a triggering operation on the query statement display item, a query statement corresponding to the query description information is displayed.

[0069] An embodiment of the present disclosure also provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of any possible data query method described above are performed.

[0070] The embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of any possible data query method described above are executed.

[0071] For a description of the effects of the above-mentioned data query device and computer-readable storage medium, please refer to the description of the above-mentioned data query method, which will not be repeated here.

[0072] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present disclosure.

[0073] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.

[0075] Figure 1 A flow chart of a data query method provided by an embodiment of the present disclosure is shown;

[0076] Figure 2 A schematic diagram of an interface of a result display interface provided by an embodiment of the present disclosure is shown;

[0077] Figure 3A schematic diagram of another result display interface provided by an embodiment of the present disclosure is shown;

[0078] Figure 4 A schematic diagram of a data query device provided by an embodiment of the present disclosure is shown;

[0079] Figure 5 A schematic diagram showing another data query device provided by an embodiment of the present disclosure is shown;

[0080] Figure 6 A schematic structural diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0081] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0082] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0083] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.

[0084] Large machine learning models are widely used in the field of business intelligence because of their data analysis capabilities. They can be used for trend analysis, behavior prediction, or resource allocation, etc. Business intelligence (BI), also known as business intelligence or business intelligence, refers to the use of modern data warehouse technology, online analysis and processing technology, data mining and data presentation technology to analyze data to achieve business value. Business intelligence technology provides technologies and methods for enterprises to quickly analyze data, including collecting, managing and analyzing data, and converting these data into useful information.

[0085] Research has found that factors such as the large amount of data and the complexity of the data cause the model to experience "hallucination phenomenon", that is, the model makes analytical errors when performing data analysis, which affects the accuracy of the analysis results and leads to incorrect business decisions.

[0086] In addition, the analysis accuracy of large machine learning models for different business data will fluctuate, thereby reducing the reliability of the analysis results.

[0087] Based on the above research, the present disclosure provides a data query method, which first obtains query description information input by a user; the query description information is used to characterize at least one query dimension information of the user's query intention; then, based on the query description information, at least one target business indicator matching the query description information is determined from multiple preset business indicators, and target business data corresponding to the at least one target business indicator is searched from a database; finally, based on a preset large-scale machine learning model, data dimension analysis is performed on the target business data according to the query description information to obtain a data analysis result corresponding to the query description information.

[0088] In the embodiment of the present disclosure, by determining at least one target business indicator that matches the query description information from multiple preset business indicators, and searching the database for target business data corresponding to the at least one target business indicator, the amount of data can be reduced and the complexity of the data can be reduced, thereby reducing the possibility of "hallucination phenomenon" in large machine learning models, which is beneficial to improving the accuracy of the analysis results.

[0089] In addition, by reducing the amount of data, the efficiency of data analysis for large machine learning models can also be improved.

[0090] To facilitate understanding of this embodiment, a data query method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the data query method provided in the embodiment of the present disclosure is generally an electronic device, and the electronic device can be a server, which can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, big data and artificial intelligence platforms. In other embodiments, the electronic device can also be a terminal device, wherein the terminal device can be a mobile device, a user terminal, a terminal, a handheld device, a computing device, a vehicle-mounted device, a wearable device, and the like.

[0091] In other implementations, the method can also be applied to an implementation environment consisting of a terminal device and a server. In addition, the data query method can also be implemented by a processor calling a computer-readable instruction stored in a memory.

[0092] A data query method provided by an embodiment of the present disclosure is described below.

[0093] See also Figure 1 As shown, it is a flow chart of a data query method provided by an embodiment of the present disclosure, such as Figure 1 As shown in , the method includes steps S101 to S103, wherein:

[0094] S101: Acquire query description information input by a user; the query description information is used to characterize at least one query dimension information of the user's query intention.

[0095] Here, the query description information may refer to natural language information, and the query description information may be in text form or in audio form, which is not limited here.

[0096] The at least one query dimension information may include the business indicator to be queried, and may also include query condition information (such as time information, region information, department information), etc., which is not limited here.

[0097] Specifically, a business query interface can be displayed in response to a query trigger operation. The business query interface includes an information editing area, and the user can enter query description information in the information editing area. For example, the query description information entered by the user can be "sales volume of sales departments in various regions in the past year", or "profits of each store in the first half of the year", or "investment income trends of each branch in the past three years".

[0098] It should be noted that due to the different query intentions of different users, there will be significant differences between the content of the query description information entered by different users. For example, for different industries (such as finance, catering, automobiles, etc.), the query description information entered by users will be different. Of course, for different businesses in the same industry (such as catering) (such as online catering, offline catering, etc.), the query description information entered by users will also be different. In addition, due to the different language description habits of different users, the query description information entered for the same query intention is also different, such as investment profit, investment profit, investment income, etc.

[0099] S102: Based on the query description information, determine at least one target business indicator matching the query description information from a plurality of preset business indicators, and search a database for target business data corresponding to the at least one target business indicator.

[0100] For example, for insurance business, multiple preset business indicators may include premium income, number of policies, premium growth rate, insurance loss ratio, etc., which are not limited here. For offline catering business, multiple preset business indicators may include business performance, store customer flow growth rate, dish sales trend, etc., which are not listed one by one here.

[0101] In the disclosed embodiment, the database includes business data corresponding to each preset business indicator, and different preset business indicators correspond to different business data.

[0102] Based on the foregoing, it can be known that the query description information is natural language information. Therefore, it is necessary to match the query description information with each preset business indicator, so as to determine at least one target business indicator that matches the query description information from multiple preset business indicators. In this way, after determining at least one target business indicator, the target business data corresponding to the at least one target business indicator can be searched from the database.

[0103] In some embodiments, the business query interface also includes a business determination option. Before determining at least one target business indicator that matches the query description information from multiple preset business indicators based on the query description information, the target business can also be determined from multiple preset businesses in response to a selection operation on the business determination option in the business query interface, wherein different preset businesses correspond to different multiple preset business indicators.

[0104] For example, the preset businesses include investment business, insurance business, financial management business, securities business, etc. Users can select the above preset businesses and determine the target business (such as insurance business). It can be understood that due to the differences in business, there will be differences between the multiple preset business indicators corresponding to the investment business and the multiple preset business indicators corresponding to the insurance business.

[0105] After determining the target business, when determining at least one target business indicator that matches the query description information from multiple preset business indicators based on the query description information, at least one target business indicator that matches the query description information can be determined from multiple preset business indicators corresponding to the target business based on the query description information.

[0106] In this implementation, by determining the target business from the preset businesses, and then determining at least one target business indicator from multiple preset business indicators corresponding to the target business, the matching range of the business indicators can be indirectly reduced, thereby improving the matching efficiency and accuracy.

[0107] In some implementations, when determining at least one target business indicator matching the query description information from a plurality of preset business indicators based on the query description information, the following steps (1) to (3) may be included:

[0108] (1) Matching the query description information with each of the preset business indicators based on feature similarity, and determining the preset business indicator whose feature similarity is greater than a first preset threshold as the first business indicator.

[0109] The first preset threshold can be set according to demand, for example, it can be 0.6, 0.7, etc., which is not limited here.

[0110] Specifically, the query description information can be feature-converted to obtain a first vector corresponding to the query description information, and each preset business indicator can be feature-converted to obtain a second vector corresponding to each preset business indicator. Then, the first vector and each second vector can be similarity-matched to obtain multiple feature similarities, and the preset business indicator whose feature similarity is greater than a first preset threshold is determined as the first business indicator.

[0111] Here, the number of the first business indicators may be one or more, and is not limited here.

[0112] (2) performing sequence similarity matching on the query description information and each of the preset business indicators, and determining the preset business indicator whose sequence similarity is greater than a second preset threshold as the second business indicator; the sequence similarity matching refers to matching between sequence characters corresponding to the query description information and the preset business indicators respectively.

[0113] The second preset threshold can be set according to demand, for example, it can be 0.5 or 0.55, etc., which is not limited here.

[0114] Optionally, when performing sequence similarity matching on the query description information and each of the preset service indicators, a longest common subsequence (LCS) algorithm may be used to perform sequence similarity matching, and the specific contents are as follows:

[0115] For any of the preset business indicators, determine the longest common subsequence between the query description information and the preset business indicator, and determine the sequence similarity between the query description information and the preset business indicator according to the length of the longest common subsequence.

[0116] Specifically, the query description information may be first serialized to obtain a first sequence corresponding to the query description information, and each preset business indicator may be serialized to obtain a second sequence corresponding to each preset business indicator, and then the longest common subsequence between the first sequence and each second sequence may be determined, and then the sequence similarity between the first sequence and the second sequence may be determined based on the length of the longest common subsequence.

[0117] The longer the length of the longest common subsequence is, the greater the sequence similarity between the first sequence and the second sequence is.

[0118] (3) Determine a preset business indicator formed by the union of the first business indicator and the second business indicator as the target business indicator.

[0119] Here, since the first business indicator and the second business indicator are determined by different methods, the first business indicator and the second business indicator may be different. In order to avoid missing business indicators, in this implementation, the union of the first business indicator and the second business indicator is determined, and the preset business indicator in the union is determined as the target business indicator.

[0120] For example, the first business indicators include A preset business indicators, B preset business indicators, C preset business indicators, D preset business indicators, and E preset business indicators, and the second business indicators include A preset business indicators, B preset business indicators, C preset business indicators, E preset business indicators, F preset business indicators, and G preset business indicators. Then the target business indicators include A preset business indicators, B preset business indicators, C preset business indicators, D preset business indicators, E preset business indicators, F preset business indicators, and G preset business indicators.

[0121] In the disclosed embodiment, since the target business indicator is obtained by matching, the confidence level corresponding to any target business indicator can also be determined while determining the target business indicator. In this way, when searching for target business data corresponding to the at least one target business indicator from a database, the target business data corresponding to multiple target business indicators can be searched for in the database in order of the confidence levels corresponding to the at least one target business indicator.

[0122] Here, the confidences corresponding to at least one target business indicator may be sorted in advance, for example, from large to small or from small to large. In this embodiment, the confidences corresponding to at least one target business indicator may be sorted from large to small.

[0123] It should be understood that since confidence can characterize the quality and credibility of the target business indicator, searching for target business data corresponding to multiple target business indicators in the database in order of the confidence of the target business indicator can improve the accuracy and reliability of the target business data.

[0124] S103: Based on a preset large-scale machine learning model, perform data dimension analysis on the target business data according to the query description information to obtain a data analysis result corresponding to the query description information.

[0125] Here, after finding the target business data, the target business data can be input into a preset large-scale machine learning model. The large-scale machine learning model will perform data dimension analysis on the target business data according to the query description information to obtain data analysis results corresponding to the query description information.

[0126] As can be seen from the foregoing, since the query description information is used to characterize at least one query dimension information of the query intent, when performing data dimension analysis on the target business data, the target business data can be analyzed based on at least one query dimension information.

[0127] For example, if the query description information is "investment income trend of each branch in the past three years", the model will perform data dimension analysis on the target business data, that is, it can analyze from the three query dimensions of time (past three years), target business indicators (investment income trend) and grouping (each branch) to obtain data analysis results. Among them, the data analysis results will include the changing trend of investment income of each branch in the past three years.

[0128] In the disclosed embodiment, by determining at least one target business indicator that matches the query description information from multiple preset business indicators, and then searching the database for target business data corresponding to the at least one target business indicator, the amount of data can be reduced, so that the large-scale machine learning model can analyze the target business data after the data volume is reduced, thereby reducing the probability of "hallucination phenomenon" occurring in the large-scale machine learning model, which is conducive to improving the accuracy of data analysis.

[0129] In some implementations, after the data analysis results are obtained, the data analysis results may also be displayed through a result display interface.

[0130] For example, see Figure 2 , is a schematic diagram of a result display interface provided by an embodiment of the present disclosure. Figure 2 As shown in , the result display interface 20 includes an information display area 21 and a result content display area 22, wherein the information display area 21 is used to display the query description information, and the result content display area 22 is used to display the data analysis results. For example, if the query description information is "the investment income trend of each branch in the past year", the data analysis results will include the investment income trend of Branch A, Branch B, Branch C, and Branch D within one year.

[0131] Here, the result content display area 22 only schematically displays the investment income trend for four months.

[0132] Optionally, the result display interface may further include a query dimension display area, wherein the query dimension display area displays preset query dimensions, wherein the preset query dimensions include data query options and adjustment options.

[0133] The adjustment option refers to an editing switch of the data query option, and the data query option is used to edit data query conditions. Here, the data query conditions may include business indicators, grouping, time intervals, filtering conditions, data sorting, etc.

[0134] For example, please also see Figure 2 and Figure 3 , Figure 3 Schematic diagram of another result display interface provided by an embodiment of the present disclosure. The result display interface 20 also includes a query dimension display area 23, wherein the query dimension display area 23 includes adjustment options and data query options. Here, the data query options may include business indicator items and time interval items. The user can trigger the adjustment options in the query dimension display area 23, so that the user can edit the data query options (such as Figure 3 That is, users can edit data query conditions. For example, users can Figure 3Reselect a business indicator from the drop-down menu of the business indicator item shown in Figure 3 You can re-edit the time interval in the drop-down menu of the time interval item shown in , etc., and examples are not given here one by one.

[0135] Here, after adjusting the data query conditions, users can also Figure 3 The query options shown in are triggered, so as to perform data dimension analysis on the business data based on the adjusted data query conditions to obtain new data analysis results.

[0136] In other implementations, the result display interface 20 may further include a result management display area 24, which includes a query statement display item, and displays a query statement corresponding to the query description information in response to a trigger operation on the query statement display item.

[0137] It can be understood that the query description information is natural language information input by the user. When a large machine learning model performs data dimension analysis on the target business data according to the query description information, it needs to first convert the query description information into a corresponding query statement.

[0138] The query statement is in the form of Structured Query Language (SQL).

[0139] For example, please see Figure 3 If the user triggers the query statement display item, the query statement can be displayed in the result display interface, so that the user can determine whether the query statement corresponds to the query description information or whether it is accurate.

[0140] In addition, the result management display area 24 may also include a follow-up question item, a chart switching item, an analysis report item, a download item, a copy item, an export item, and a save item.

[0141] Among them, the follow-up question item is used to provide a follow-up question function, that is, by triggering the follow-up question item, the user can display the follow-up question edit box in the result display interface, and can enter question information into the follow-up question edit box, such as "Which branch has the most stable investment income?" In this way, the large-scale machine learning model will output feedback information based on the question information and data analysis results, and display the feedback information to the user. Here, the feedback information can be displayed in the form of charts or text, which is not limited here.

[0142] The chart switching item is used to switch the display style of the chart, wherein the display style of the chart may include a line chart, a column chart, a bar chart, a histogram, a pie chart, a scatter chart, etc., which are not limited here. In a specific implementation, the user triggers the chart switching item, and multiple chart styles can be displayed for the user to choose.

[0143] In this embodiment, when displaying the data analysis results, the target chart style that matches the query description information can be determined in advance based on the query description information, and the data analysis results can be displayed based on the target chart style. This is convenient for users to view. For example, if the query description information involves changing trends, a line chart can be used as the target chart style. If the query description information involves percentages, a pie chart can be used as the target chart style.

[0144] The analysis report item is used to display a text report corresponding to the data analysis results. In this way, various types of data analysis results can be provided to users, which is conducive to improving the user experience.

[0145] The Download item is used to download data analysis results, the Copy item is used to copy data analysis results, and the Export item is used to export data analysis results in the export format selected by the user. The export format can include image format, table format, or comma-separated values ​​(CSV) file format, etc., which is not limited here.

[0146] In the disclosed embodiment, the data analysis results can be intuitively understood through the result display interface, and the content of the data query can be adjusted according to actual needs, which is conducive to improving the user experience and satisfaction.

[0147] Optionally, after displaying the data analysis results through the result display interface, result feedback information input by the user for the data analysis results can also be obtained; the result feedback information is used to characterize whether the data analysis results meet preset requirements; then based on the result feedback information input by different users, the model parameters of the large-scale machine learning model are adjusted to obtain a new large-scale machine learning model.

[0148] Here, after viewing the data analysis results through the result display interface, the user can also determine whether the data analysis results meet the preset requirements, for example, whether the content in the data analysis results is related or corresponding to the query description information, or whether there are errors and error points in the content of the data analysis results. The user can then enter the result feedback information in the feedback area (not shown) in the result display interface. In this way, the result feedback information entered by different target users can be obtained, and based on the result feedback information entered by different target users, the model parameters of the large machine learning model can be adjusted to obtain a new large machine learning model, and data dimension analysis can be performed based on the new large machine learning model.

[0149] Specifically, since the business data corresponding to different industries, different businesses, and different business indicators are different, there are also differences between the result feedback information input by different target users. Therefore, when adjusting the model parameters of the large machine learning model based on the result feedback information input by different target users, the result feedback information input by different target users can be first classified, and the model parameters can be adjusted according to the classified result feedback information. In this way, the accuracy of the model can be improved.

[0150] Here, when classifying the result feedback information input by different target users, the classification can be performed according to preset business indicators. For example, the result feedback information related to "investment income" can be classified into one category. Examples are not given here one by one.

[0151] Optionally, after obtaining the result feedback information input by the target user regarding the data analysis result, the corresponding target business indicators can be adjusted based on the result feedback information input by different target users and the corresponding query description information, and new multiple preset business indicators can be generated based on the adjusted target business indicators.

[0152] Here, according to the foregoing, the result feedback information may include whether the content in the data analysis result is related or corresponding to the query description information, or may include whether there is an error in the content in the data analysis result and the error point.

[0153] In this way, it can be determined whether the matching degree between the matched target business indicator and the query description information meets the user requirements according to the result feedback information input by different target users and the corresponding query description information. If not, the target business indicator can be adjusted (the target business indicator can be modified or deleted, or other business indicators other than the target business indicator can be added). For example, there may be a large difference between the name of the target business indicator and the description method of each user. In this way, multiple new preset business indicators can be generated based on the adjusted target business indicator, so that the multiple new preset business indicators can be more in line with the description methods of many users, thereby improving the accuracy of business indicator matching.

[0154] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0155] Based on the same inventive concept, a data query device corresponding to the above-mentioned data query method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned data query method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0156] See also Figure 4 , Figure 4 Schematic diagram of a data query device provided by an embodiment of the present disclosure. Figure 4 As shown in , the data query device 400 provided in the embodiment of the present disclosure includes:

[0157] The acquisition module 410 is used to acquire the query description information input by the user; the query description information is used to represent at least one query dimension information of the query intention of the user;

[0158] A search module 420 is used to determine at least one target business indicator matching the query description information from a plurality of preset business indicators based on the query description information, and search for target business data corresponding to the at least one target business indicator from a database;

[0159] The analysis module 430 is used to perform data dimension analysis on the target business data according to the query description information based on a preset large-scale machine learning model, and obtain data analysis results corresponding to the query description information.

[0160] In an optional implementation manner, the search module 420 is specifically used to:

[0161] Perform feature similarity matching on the query description information and each of the preset business indicators, and determine the preset business indicator whose feature similarity is greater than a first preset threshold as the first business indicator;

[0162] Performing sequence similarity matching on the query description information and each of the preset business indicators, and determining the preset business indicator whose sequence similarity is greater than a second preset threshold as the second business indicator; the sequence similarity matching refers to the matching between the sequence characters corresponding to the query description information and the preset business indicators respectively;

[0163] A preset business indicator formed by the union of the first business indicator and the second business indicator is determined as the target business indicator.

[0164] In an optional implementation manner, the search module 420 is specifically used to:

[0165] For any of the preset business indicators, determine the longest common subsequence between the query description information and the preset business indicator, and determine the sequence similarity between the query description information and the preset business indicator according to the length of the longest common subsequence.

[0166] See also Figure 5 , Figure 5 Schematic diagram of another data query device provided by an embodiment of the present disclosure. Figure 5 As shown in , the data query device 400 provided in the embodiment of the present disclosure further includes:

[0167] A display module 440, configured to display a business query interface in response to a query trigger operation, wherein the business query interface includes a business confirmation option;

[0168] A determination module 450, configured to determine a target business from a plurality of preset businesses in response to a selection operation on the business determination option; different preset businesses correspond to different plurality of preset business indicators;

[0169] The search module 420 is specifically used for:

[0170] Based on the query description information, at least one target business indicator matching the query description information is determined from a plurality of preset business indicators corresponding to the target business.

[0171] In an optional implementation manner, any of the target business indicators corresponds to a confidence level; the search module 420 is specifically configured to:

[0172] According to the order of the confidences respectively corresponding to the at least one target business indicator, the target business data corresponding to the plurality of target business indicators are searched from the database in sequence.

[0173] In an optional implementation manner, the display module 440 is further used for:

[0174] The data analysis results are displayed through a result display interface; the result display interface includes preset query dimensions, and the preset query dimensions include at least data query options and adjustment options, wherein the adjustment options refer to editing switches of the data query options, and the data query options are used to edit data query conditions.

[0175] In an optional implementation, the data query device 400 further includes an adjustment module 460;

[0176] The acquisition module 410 is also used for:

[0177] Obtaining result feedback information input by a target user for the data analysis result; the result feedback information is used to indicate whether the data analysis result meets preset requirements;

[0178] The adjustment module 460 is used for:

[0179] Based on the result feedback information respectively input by different target users, the model parameters of the large-scale machine learning model are adjusted to obtain a new large-scale machine learning model.

[0180] In an optional implementation manner, the adjustment module 460 is further configured to:

[0181] Based on the result feedback information respectively input by different target users and the corresponding query description information, the corresponding target business indicators are adjusted, and multiple new preset business indicators are generated based on the adjusted target business indicators.

[0182] In an optional implementation, the result display page further includes a query statement display item; the display module 440 is further used to:

[0183] In response to a triggering operation on the query statement display item, a query statement corresponding to the query description information is displayed.

[0184] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0185] Corresponding to the above data query method, the embodiment of the present disclosure further provides an electronic device 600, such as Figure 6 FIG. 6 is a schematic diagram of the structure of an electronic device 600 provided in an embodiment of the present disclosure, including:

[0186] Processor 610, memory 620, and bus 630. The memory 620 is used to store execution instructions, including internal memory 621 and external memory 622; the internal memory 621 is also called internal memory, which is used to temporarily store the operation data in the processor 610 and the data exchanged with the external memory 622 such as a hard disk. The processor 610 exchanges data with the external memory 622 through the internal memory 621.

[0187] In the embodiment of the present application, the memory 620 is specifically used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 610. That is, when the electronic device 600 is running, the processor 610 communicates with the memory 620 through the bus 630, so that the processor 610 executes the application code stored in the memory 620, and then executes the data query method described in the above method embodiment.

[0188] Among them, the memory 620 can be, but is not limited to, random access memory (Random Access Memory, RAM), read only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable read-only memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.

[0189] The processor 610 may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present invention may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0190] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 600. In other embodiments of the present application, the electronic device 600 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0191] The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, any one of the data query methods described in the above method embodiments is executed. The storage medium may be a volatile or non-volatile computer-readable storage medium.

[0192] The method in the embodiments of the present disclosure may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the present application is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, a core network device, an OAM or other programmable device.

[0193] The computer program or instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.

[0194] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A data query method, characterized in that: include: Get the query description information entered by the user; The query description information is used to characterize at least one query dimension information of the user's query intention; Based on the query description information, determining at least one target business indicator matching the query description information from a plurality of preset business indicators, and searching a database for target business data corresponding to the at least one target business indicator; Based on a preset large-scale machine learning model, data dimension analysis is performed on the target business data according to the at least one query dimension information represented by the query description information to obtain a data analysis result corresponding to the query description information; Wherein, determining at least one target business indicator matching the query description information from a plurality of preset business indicators based on the query description information includes: Perform feature similarity matching on the query description information and each of the preset business indicators, and determine the preset business indicator whose feature similarity is greater than a first preset threshold as the first business indicator; Performing sequence similarity matching on the query description information and each of the preset business indicators, and determining the preset business indicator whose sequence similarity is greater than a second preset threshold as the second business indicator; the sequence similarity matching refers to the matching between the sequence characters corresponding to the query description information and the preset business indicators respectively; Determine a preset business indicator formed by a union of the first business indicator and the second business indicator as the target business indicator; The performing sequence similarity matching on the query description information and each of the preset business indicators respectively includes: For any of the preset business indicators, determine the longest common subsequence between the query description information and the preset business indicator, and determine the sequence similarity between the query description information and the preset business indicator according to the length of the longest common subsequence.

2. The method according to claim 1, characterized in that Before determining at least one target business indicator matching the query description information from a plurality of preset business indicators based on the query description information, the method further includes: In response to the query trigger operation, displaying a business query interface, the business query interface including a business confirmation option; In response to a selection operation for the business determination option, a target business is determined from a plurality of preset businesses; different preset businesses correspond to different plurality of preset business indicators; The determining, based on the query description information, at least one target business indicator matching the query description information from a plurality of preset business indicators comprises: Based on the query description information, at least one target business indicator matching the query description information is determined from a plurality of preset business indicators corresponding to the target business.

3. The method according to claim 1, characterized in that Any of the target business indicators corresponds to a confidence level; searching the database for target business data corresponding to the at least one target business indicator includes: According to the order of the confidences respectively corresponding to the at least one target business indicator, the target business data corresponding to the plurality of target business indicators are searched from the database in sequence.

4. The method according to claim 1, characterized in that: After obtaining the data analysis result corresponding to the query description information, the method further includes: The data analysis results are displayed through a result display interface; the result display interface also includes a preset query dimension, and the preset query dimension at least includes a data query option and an adjustment option, wherein the adjustment option refers to an editing switch of the data query option, and the data query option is used to edit the data query condition.

5. The method according to claim 4, characterized in that The method further comprises: Obtaining result feedback information input by a target user for the data analysis result; the result feedback information is used to indicate whether the data analysis result meets preset requirements; Based on the result feedback information respectively input by different target users, the model parameters of the large-scale machine learning model are adjusted to obtain a new large-scale machine learning model.

6. The method according to claim 5, characterized in that The method further comprises: Based on the result feedback information respectively input by different target users and the corresponding query description information, the corresponding target business indicators are adjusted, and multiple new preset business indicators are generated based on the adjusted target business indicators.

7. The method according to claim 4, characterized in that The result display page also includes a query statement display item; the method also includes: In response to a triggering operation on the query statement display item, a query statement corresponding to the query description information is displayed.

8. A data query device, characterized in that: include: An acquisition module is used to obtain the query description information input by the user; The query description information is used to characterize at least one query dimension information of the user's query intention; A search module, configured to determine, based on the query description information, at least one target business indicator matching the query description information from a plurality of preset business indicators, and search a database for target business data corresponding to the at least one target business indicator; An analysis module, configured to perform data dimension analysis on the target business data based on a preset large-scale machine learning model according to the at least one query dimension information represented by the query description information, and obtain a data analysis result corresponding to the query description information; When the search module determines at least one target business indicator matching the query description information from a plurality of preset business indicators based on the query description information, it is specifically used to: Perform feature similarity matching on the query description information and each of the preset business indicators, and determine the preset business indicator whose feature similarity is greater than a first preset threshold as the first business indicator; Performing sequence similarity matching on the query description information and each of the preset business indicators, and determining the preset business indicator whose sequence similarity is greater than a second preset threshold as the second business indicator; the sequence similarity matching refers to the matching between the sequence characters corresponding to the query description information and the preset business indicators respectively; Determine a preset business indicator formed by a union of the first business indicator and the second business indicator as the target business indicator; When the search module performs sequence similarity matching on the query description information and each of the preset business indicators, the search module is specifically used to: For any of the preset business indicators, determine the longest common subsequence between the query description information and the preset business indicator, and determine the sequence similarity between the query description information and the preset business indicator according to the length of the longest common subsequence.

9. An electronic device, characterized in that: It includes a processor, a memory and a bus, the memory stores machine-readable instructions executable by the processor, when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, a data query method as described in any one of claims 1 to 7 is performed.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data query method according to any one of claims 1 to 7 is executed.