Production data processing method, device, storage medium and program product
By extracting entity information and recalling production indicator data through large models, the problem of low efficiency in generating complex production data reports is solved, and automated and high-speed report generation is achieved.
Patent Information
- Application Number
- CN202411909451.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2044-12-24
AI Technical Summary
Generating complex production data reports is inefficient and requires professionals to summarize, analyze, and plot a variety of data.
By extracting entity information through large models, recalling target report information, and generating reports based on production indicator data, the direct analysis and processing of large amounts of production data can be reduced.
It improves the efficiency of generating complex reports, reduces the amount of data and calculations, improves the convenience and accuracy of data acquisition, and realizes automated report generation.
Smart Images

Figure CN119357334B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a production data processing method, device, storage medium and program product. Background Art
[0002] The report includes charts and tables. The report can include production data from all aspects, and the production situation can be reflected comprehensively and intuitively through the report.
[0003] In related technologies, professionals are required to summarize, analyze, and calculate various data involved in production, and then draw them to obtain a report, resulting in low efficiency in generating reports. Summary of the Invention
[0004] The present application provides a production data processing method, device, storage medium and program product to achieve the technical effect of improving the efficiency of generating complex production data reports.
[0005] In a first aspect, the present application provides a production data processing method, comprising:
[0006] Based on the obtained questions to be answered, the big model is called to obtain the target report information; the big model is used to extract entity information from the questions to be answered, recall based on the entity information, obtain the recall results, and search for the target report information based on the recall results; obtain the target production indicator information associated with the target report information; determine the target production indicator data corresponding to the target production indicator information based on the production indicator data; the production indicator data is obtained by processing the production data from multiple data sources; generate a production data report based on the target report information and the target production indicator data, and output the production data report as a response to the questions to be answered.
[0007] In a second aspect, the present application provides a production data processing device, comprising:
[0008] The recall module is used to call the large model to obtain target report information based on the obtained questions to be answered. The large model is used to extract entity information from the questions to be answered, perform recall based on the entity information, obtain recall results, and search for target report information based on the recall results.
[0009] An acquisition module, used for acquiring target production indicator information associated with target report information;
[0010] A determination module, configured to determine target production index data corresponding to target production index information based on production index data; the production index data is obtained by processing production data from multiple data sources;
[0011] The output module is used to generate a production data report based on the target report information and the target production indicator data, and output the production data report as a response to the question to be answered.
[0012] In a third aspect, the present application further provides a computer device, the computer comprising: a processor, and a memory communicatively connected to the processor;
[0013] The memory stores computer-executable instructions;
[0014] The above method is implemented when the processor executes the computer-executable instructions stored in the memory.
[0015] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to implement the above method when executed by a processor.
[0016] In a fifth aspect, the present application also provides a computer program product, comprising computer-executable instructions, which implement the above method when executed by a processor.
[0017] The present application provides a production data processing method, device, computer equipment, storage medium and program product. The method includes: extracting entities from questions to be answered through the powerful processing capability of a large model, and recalling based on the extracted entity information, so as to obtain target report information that matches the questions to be answered, thereby improving the quality of the target report information; since the target report information is associated with the target production indicator information, the target production indicator information required for generating the report can be obtained based on the target report information, and the target production indicator data corresponding to the target production indicator information can be obtained from the production indicator data, that is, the target report information is recalled through the large model, the associated target production indicator information is subsequently determined, and the target production indicator data is obtained based on the target production indicator information. In this way, the large model does not need to directly process a large number of The production data is analyzed and processed, which reduces the amount of data and calculation involved in obtaining the target production index data, and greatly improves the efficiency of obtaining the target production index data; since the production index data is obtained by processing the production data of multiple data sources, the target production index data can come from different data sources, and there is no need to obtain the production data required for generating reports from different data sources respectively, which improves the convenience of obtaining data from different data sources and the efficiency of finding the target production index data; in addition, the above process does not require human participation, and can automatically process the questions to be answered and output reports that are consistent with the questions to be answered, effectively improving the efficiency of generating complex reports. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] 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.
[0019] Figure 1 A schematic diagram of an application scenario of a production data processing method provided in one embodiment;
[0020] Figure 2 A flowchart of a production data processing method provided in one embodiment;
[0021] Figure 3 A flowchart for constructing a report template in one embodiment;
[0022] Figure 4 A flowchart of an embodiment of saving production indicator information, production indicator data, and indicator generation rules to an indicator service platform;
[0023] Figure 5 A schematic diagram of a process for querying a production data report through an intelligent question-and-answer task in one embodiment;
[0024] Figure 6 A schematic structural diagram of a production data processing device provided in one embodiment;
[0025] Figure 7 A hardware structure diagram of a computer device provided in one embodiment.
[0026] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION
[0027] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0028] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature specified as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, "plurality" means two or more, unless otherwise specifically specified.
[0029] The production data processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 via a network. The data storage system can store data that the server 104 needs to process. The data storage system can be integrated on the server 104 or placed on the cloud or other network servers.
[0030] Terminal 102 can call the big model to obtain target report information based on the obtained questions to be answered; the big model is used to extract entity information from the questions to be answered, recall based on the entity information, obtain recall results, and search for target report information based on the recall results. Terminal 102 can obtain target production indicator information associated with the target report information; Terminal 102 can determine the target production indicator data corresponding to the target production indicator information based on the indicator data; the indicator data is obtained by processing production data from multiple data sources; Terminal 102 can generate a report based on the target report information and the target production indicator data, and output the report as a reply to the questions to be answered.
[0031] Terminal 102 may include, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices may include smart speakers, smart TVs, smart air conditioners, and smart car devices. Portable wearable devices may include smart watches, smart bracelets, and head-mounted devices. Server 104 may be implemented as a standalone server or a server cluster consisting of multiple servers.
[0032] In some embodiments, as Figure 2 As shown, a production data processing method is provided, which can be applied to a system composed of a terminal and a server, or to a terminal. Figure 1 The following example illustrates the terminal in the example, including:
[0033] S202, based on the obtained questions to be answered, call the big model to obtain the target report information; the big model is used to extract entity information from the questions to be answered, recall based on the entity information, obtain the recall result, and search for the target report information based on the recall result.
[0034] Among them, the questions to be answered are questions input by the user; in actual applications, the terminal can display an intelligent question and answer page, which includes a question input control. The user can input the questions to be answered through the question input control, and the terminal obtains the questions to be answered in the question input control; in an embodiment of the present application, the questions to be answered can be questions used for query reports.
[0035] The big model is a machine learning model with a large number of parameters and computing resources. The big model demonstrates strong processing capabilities in processing large-scale data and complex tasks. In the embodiment of the present application, the big model can be used to process complex question-and-answer tasks related to report generation. In actual applications, the big model can be implemented based on the GPT model. After fine-tuning the GPT model according to the report generation task, the big model for processing complex question-and-answer tasks related to report generation in the embodiment of the present application can be obtained. GPT (Generative Pre-trained Transformer) is a natural language processing model based on deep learning. The big model can also be implemented based on the Zhimei Master big model. After fine-tuning the Zhimei Master big model according to the report generation task, the big model for processing complex question-and-answer tasks related to report generation in the embodiment of the present application can be obtained.
[0036] Entity information may include but is not limited to: reporting entity, indicator entity and time period entity; for example, the question to be answered is: please output the production report of commodity A in month M, then the entity information may include: commodity A, production report and month M, among which commodity A belongs to the indicator entity, the production report is the reporting entity, and month M is the time period entity.
[0037] The target report information is information used to reply to a report of a question to be replied; the target report information may include a name of the report and a description of the report; recall refers to an information retrieval operation.
[0038] The recall result may include the first report information, or the recall result may be empty (ie, no information is recalled); the first report information may be the report information related to the question to be answered.
[0039] In some embodiments, extracting entity information from the question to be answered includes: segmenting the question to be answered based on a production terminology vocabulary to obtain segmented words to be processed; and extracting entities based on the segmented words to be processed to obtain entity information.
[0040] The production terminology lexicon is pre-set, and the production terms in the production terminology lexicon may include proper nouns related to production data, and may also include industry jargon.
[0041] Specifically, the big model segments the questions to be answered based on the production terminology vocabulary to obtain the segmented words to be processed; when the questions to be answered include production terms, the production terms can be identified, and then the segmented words to be processed include production terms; when the questions to be answered do not include production terms, the segmented words to be processed are obtained by segmenting based on general domain knowledge; the big model extracts entities based on the segmented words to be processed to obtain entity information; when the segmented words to be processed include production terms, the entity information can be the corresponding entity information of production.
[0042] It should be noted that if the questions to be answered are not segmented based on the production terminology lexicon, the production terms related to the report in the questions to be answered may be divided into different words based on the general knowledge segmentation, resulting in a low correlation between the recall results and the meaning of the questions to be answered; for example, the questions to be answered include the daily production report of product A, where "production daily report" is a production term, and the entity information corresponding to "production daily report" can be recalled subsequently; if the words are not segmented based on the production terminology lexicon, two segmentations of "production" and "daily report" may be obtained, and the recall will be performed based on the entity information corresponding to "production" and "daily report", resulting in the recall results being inconsistent with the questions to be answered.
[0043] In the above embodiment, the question to be answered is segmented based on the production terminology vocabulary, so that the extracted entity information meets the user's intention, thereby improving the relevance between the subsequently determined recall result and the question to be answered.
[0044] Specifically, the terminal can obtain the questions to be answered input by the user. For example, the terminal displays an intelligent question and answer page, and intelligently obtains the questions to be answered input by the user through the intelligent question and answer page. After obtaining the questions to be answered, the big model is called, and the questions to be answered are input into the big model. The big model is used to extract entities from the questions to be answered, and at least one entity information among the report entity, indicator entity or time period entity is obtained. The big model is used to recall based on the extracted entity information to obtain the recall result.
[0045] In one possible implementation, when the recall result includes the first report information and the first report information does not meet the report generation conditions, the large model can further search for the target report information based on the first report information; in this implementation, the relevance of the target report information to the question to be answered is higher than the relevance of the first report information to the question to be answered; it should be noted that searching for the target report information based on the recall result is also a recall process.
[0046] In another possible implementation, the recall result includes the first report information, and when the first report information meets the report generation condition, the first report information can be used as the target report information.
[0047] In another possible implementation, the recall result is empty, and the large model can perform a vector-level search based on the question to be answered to obtain the target report information.
[0048] It should be noted that the large model recalls based on the extracted entity information, which is a recall process; searching for target report information based on the recall results may not require a recall process, or may include at least one recall process. Therefore, the process of determining the target report information based on the questions to be answered includes at least one recall.
[0049] S204: Acquire target production indicator information associated with the target report information.
[0050] Among them, the target production indicator information includes the name of the production indicator and may also include a description of the production indicator; the production indicator corresponding to the target production indicator information may be a component of the report corresponding to the target report information; for example, if the report corresponding to the target report information is a report form, then the production indicator corresponding to the target production indicator information may be an attribute in the report form.
[0051] Specifically, after obtaining the target report information, the terminal may search the relational database for target production indicator information associated with the target report information.
[0052] S206 , determining target production index data corresponding to the target production index information based on the production index data; the production index data is obtained by processing production data from multiple data sources.
[0053] Among them, the production index data is used to reflect the data of various production indicators; for example, various production indicators can be raw material costs, output, yield, yield rate, sales volume, etc.
[0054] Multiple data sources are different data sources. In actual applications, in order to meet production needs, it is often necessary to set up multiple different data sources to collect data on multiple aspects of production. For example, in the production of a certain product, the raw material data source collects relevant data on the generation of the required raw materials, the output data source collects the output data of the production of a certain product, and the order data source collects relevant data on the sales of a certain product.
[0055] Production indicator data is obtained by integrating, cleaning and converting production data from multiple data sources. That is, production indicator data is integrated and standardized production data. When querying production-related data, you can directly conduct a comprehensive query through the production indicator data without having to enter different data sources for query separately; when analyzing production-related data, you can also directly conduct in-depth analysis of production data from different data sources through production indicator data, without having to pull production data from different data sources and then analyze it through complex analysis rules; therefore, processing production data from different data sources into indicator data breaks the data silos formed by multiple different data sources, making it more convenient to query and analyze production data, and improving the accuracy and efficiency of querying and analyzing production data.
[0056] Specifically, the production index data can be stored in the index service platform; the terminal can obtain the target production index data from the index service platform based on the target production index information, and the terminal can also obtain the production index data corresponding to the target production index information from the index service platform, and then calculate the production index data to obtain the target production index data.
[0057] S208: Generate a production data report based on the target report information and the target production indicator data, and output the production data report as a response to the question to be answered.
[0058] Specifically, the terminal can obtain a target report template corresponding to the target report information. The target report template includes at least one production indicator attribute. For each production indicator attribute, the terminal obtains the target production indicator sub-data corresponding to the production indicator attribute in the target production indicator data, generates a production data report based on the target report template, indicator attribute and corresponding target production indicator sub-data, and outputs the production data report as a response to the question to be answered.
[0059] In some embodiments, after obtaining the input question to be answered, it also includes: displaying a report type selection window; obtaining the report type based on the report type selection window; the report type includes a report type or a chart type; generating a production data report based on the target report information and the target production indicator data, including: when the report type is a report type, generating a production data report based on the target report and target production indicator data corresponding to the target report information; when the report type is a chart type, generating a production data chart based on the target report and target production indicator data corresponding to the target report information.
[0060] Specifically, when the terminal obtains the questions to be answered input by the user through the smart question and answer page, the terminal can display a report type selection window in the smart question and answer page, and the report type selection window can be displayed in the smart question and answer page in the form of a floating page.
[0061] The user selects a report type in the report type selection window. When the terminal generates a production data report, it can obtain a target report template belonging to the report type based on the target report information. For example, if the report type is a report type, the target report template corresponding to the target report information can be obtained. For another example, if the report type is a chart type, the target chart template corresponding to the target report information can be obtained.
[0062] When the report type is a report type, the terminal generates a production data report according to the target report template, indicator attributes and corresponding target production indicator sub-data of the report type, and outputs the production data report as a response to the question to be answered.
[0063] When the report type is a chart type, the terminal generates a production data chart according to the target report template, indicator attributes and corresponding target production indicator sub-data of the chart type, and outputs the production data chart as a response to the question to be answered.
[0064] In some embodiments, as Figure 3 As shown, the production data processing method also includes: obtaining preset report information, obtaining preset production indicator information corresponding to the preset report information, and for each report type in multiple report types, constructing a report template under the report type based on the preset report information and the preset production indicator information.
[0065] Among them, based on the preset report information and preset production indicator information, constructing report templates under different report types may include constructing report templates under the report type based on the preset report information and preset production indicator information, and may also include: constructing report templates under the chart type based on the preset report information and preset production indicator information.
[0066] The above-mentioned production data processing method, through the powerful processing ability of the big model, extracts entities from the questions to be answered, and recalls them based on the extracted entity information, so as to obtain target report information that matches the questions to be answered, thereby improving the quality of the target report information; since the target report information is associated with the target production indicator information, the target production indicator information required for generating the report can be obtained based on the target report information, and the target production indicator data corresponding to the target production indicator information can be obtained from the production indicator data, that is, the target report information is recalled through the big model, and the associated target production indicator information is subsequently determined, and then the target production indicator data is obtained based on the target production indicator information. In this way, the big model does not need to directly A large amount of production data is analyzed and processed, which reduces the amount of data and calculation involved in obtaining the target production indicator data, and greatly improves the efficiency of obtaining the target production indicator data; since the production indicator data is obtained by processing the production data of multiple data sources, the target production indicator data can come from different data sources, and there is no need to obtain the production data required for generating reports from different data sources respectively, which improves the convenience of obtaining data from different data sources and also improves the efficiency of finding the target production indicator data; in addition, the above process does not require human participation, and can automatically process the questions to be answered and output reports that are consistent with the questions to be answered, effectively improving the efficiency of generating complex reports.
[0067] In some embodiments, searching for target report information based on the recall result includes: when the first report information included in the recall result meets the report generation condition, using the first report information as the target report information; when the first report information does not meet the report generation condition, performing at least one recall based on the first report information and the question to be answered to obtain the target report information; when the recall result is empty, extracting the question feature vector of the question to be answered, and performing at least one recall based on the question feature vector to obtain the target report information.
[0068] Among them, the first report information meets the report generation conditions, which may indicate that the number of first report information is small and the differences between the first report information are small; the first report information meets the report generation conditions, which may reflect that the first recall has achieved better results.
[0069] The first report information does not meet the report generation condition, which may indicate that the amount of first report information is large or the differences between the first report information are large.
[0070] The recall result is empty, which means that the first recall performed by the large model did not obtain any results.
[0071] Specifically, when the recall result includes the first report information, it is determined whether the first report information meets the report generation conditions. If the first report information meets the report generation conditions, the first report information is used as the target report information, that is, the target report information that matches the question to be answered is obtained through one recall.
[0072] If the first report information does not meet the report generation conditions, the first report information and the question to be answered will be recalled at least once through the big model to obtain the target report information; in this way, the big model can use more information for in-depth information retrieval based on the previous recall to obtain the target report information that matches the question to be answered.
[0073] When the recall result is empty, the question feature vector of the question to be answered is extracted through the large model, and feature-level recall is performed based on the question feature vector to obtain the target report information; when the recall result is empty, it means that the report information matching the question to be answered cannot be recalled based on the entity information of the question to be answered. A deep feature-level search can be performed on the question to be answered, and the target report information matching the question to be answered can be recalled at the semantic feature level.
[0074] In the above embodiment, depending on whether the first report information included in the recall result meets the report generation conditions, the first report information can be used as the target report information, or a deep recall can be performed based on the first report information and the question to be answered to obtain the target report information. When the recall result is empty, a deep recall at the feature level can be performed based on the question to be answered to obtain the target report information, so that the target report information is consistent with the question to be answered, thereby improving the correlation between the target report information and the question to be answered, and thereby improving the quality of subsequently generated reports.
[0075] In some embodiments, the report generation conditions include a preset quantity condition and a preset difference condition; when the first report information included in the recall result meets the report generation conditions, the first report information is used as the target report information, including: when the quantity of the first report information included in the recall result meets the preset quantity condition, based on the first similarity between the first report information and the question to be answered, determining the first similarity difference value; when the first similarity difference value meets the preset difference condition, the first report information is used as the target report information.
[0076] Specifically, the number of first report information satisfies the preset quantity condition, which may be that the number of first report information falls within a preset quantity interval; the number within the preset quantity interval is smaller than the number not within the preset quantity interval, so the number of first report information satisfies the preset quantity condition, which means that the number of first report information is smaller. The specific value of the preset quantity interval can be set according to actual needs and is not limited in this embodiment of the present application.
[0077] The first report feature vector of the first report information and the question feature vector of the question to be answered can be extracted through the large model, and a first similarity can be calculated based on the first report feature vector and the question feature vector. When the number of first reports is at least two, the variance is calculated based on the at least two first similarities to obtain a first similarity difference value. When the first similarity difference value falls within a preset difference interval, it is determined that the first similarity difference value meets the preset difference condition. When the first similarity difference value does not fall within the preset difference interval, it is determined that the first similarity difference value does not meet the preset difference condition. The preset difference interval can be [0, 1.5]. The specific value of the preset difference interval can be set according to actual needs and is not limited in this embodiment of the present application.
[0078] In some cases, when there is only one first report information, a determination is made as to whether the first similarity falls within a preset similarity interval. If so, the first report information is used as the target report information. The preset similarity interval may be [0.75, 1]. The specific value of the preset similarity interval may also be set based on actual needs and is not limited in this embodiment of the present application.
[0079] In practical applications, ElasticSearch can be used to extract the first report feature vector of the first report information, extract the question feature vector of the question to be answered, and calculate the first similarity; ElasticSearch is an open source distributed search engine and analysis engine, and Elasticsearch can perform retrieval based on the similarity between feature vectors.
[0080] It should be noted that the first similarity belongs to the preset similarity range, indicating that the similarity between the first report information and the question to be answered is high; the first similarity variance belongs to the preset difference range, indicating that the difference between multiple first report information is small, that is, the difference between multiple first report information obtained by the large model is small, and the recall result is relatively stable.
[0081] When the first similarity satisfies a preset difference condition, the first report information is used as target report information.
[0082] In some embodiments, when the first similarity does not meet the preset difference condition, at least one recall is performed based on the first report information and the question to be answered to obtain the target report information; that is, when the similarity between the first report information and the question to be answered is small, or the difference between multiple first report information is large, it means that the correlation between the first report information and the question to be answered is low, and deep recall can be performed through the question to be answered and the first report information to obtain the target report information that is consistent with the question to be answered.
[0083] In the above embodiment, the first report information that meets the preset quantity condition and the preset difference condition is used as the target report information, so that the target report information is consistent with the question to be answered, thereby improving the quality of the target report information.
[0084] In some embodiments, the report generation conditions include a preset quantity condition and a preset difference condition; when the first report information does not meet the report generation conditions, at least one recall is performed based on the first report information and the questions to be answered to obtain the target report information, including: when the quantity of the first report information does not meet the preset quantity condition, the first report information is divided into batches to obtain multiple report information batches; recall is performed based on the questions to be answered and multiple report information batches to obtain second report information; and the target report information is determined based on the second report information and the questions to be answered.
[0085] Specifically, the number of first report information does not meet the preset quantity condition, indicating that the number of first report information is large; in order to ensure the quality and efficiency of the output report, it is necessary to limit the number of target report information. When the number of first report information is large, the first report information needs to be further screened.
[0086] The number of batches can be selected in the preset quantity range, and the first report information can be divided into batches according to the batch number, that is, the number of multiple report information batches obtained is the batch number; for example, the number of first report information is 6 and the batch number is 2, then the multiple report information batches are 2 report information batches, and each report information batch includes 3 first report information.
[0087] An agent can be used to submit report information batches to the big model for recall. For each report information batch, the first report information and questions to be answered of the report information batch are recalled through the big model to obtain the second report information corresponding to the report information batch. The big model determines the target report information based on the second report information and questions to be answered corresponding to multiple report information batches. The agent is an intelligent entity built based on the big model that can handle tasks such as natural language understanding, dialogue generation, and information retrieval.
[0088] In the above embodiment, when the first report information does not meet the preset quantity condition, the first report information is divided into batches, and the batches of report information are recalled to quickly reduce the quantity and obtain the second report information that meets the preset quantity condition. The target report information is then determined based on the second report information, so that the target report information is consistent with the question to be answered, thereby improving the quality of the target report information.
[0089] In some embodiments, target report information is determined based on the second report information and the question to be answered, including: determining a second similarity difference value based on the second similarity between the second report information and the question to be answered; if the second similarity difference value meets the preset difference condition, using the second report information as the target report information; if the second similarity difference value does not meet the preset difference condition, recalling based on the question to be answered and the second report information to obtain the target report information.
[0090] Specifically, the number of second report information is the same as the number of report information batches, that is, the number of second report information is multiple; corresponding to each second report information, the second report feature vector of the second report information is extracted through the large model, and the second similarity is calculated based on the second report feature vector and the problem feature vector; based on the second similarities corresponding to each of the multiple second report information, the second similarity variance is calculated, and the second similarity variance is the second similarity difference value.
[0091] In a case where the second similarity difference value belongs to the preset difference range, it is determined that the second similarity difference value meets the preset difference condition, and the second report information is used as the target report information.
[0092] When the second similarity difference value belongs to the preset difference interval, it is determined that the second similarity difference value meets the preset difference condition, and the second report information is used as the target report information; when the second similarity difference value does not belong to the preset difference interval, it is determined that the second similarity difference value does not meet the preset difference condition, and the second report information and the questions to be answered are recalled through the large model to obtain the target report information.
[0093] In practical applications, the second report feature vector of the second report information can be obtained through ElasticSearch, and the second similarity can be calculated.
[0094] In the above embodiment, when the second report information meets the preset difference condition, the second report information is used as the target report information. When the second report information does not meet the preset difference condition, questions to be answered are added for deep recall to obtain the target report information, so that the target report information is consistent with the questions to be answered, thereby improving the quality of the target report information.
[0095] In some embodiments, at least one recall is performed based on the problem feature vector to obtain target report information, including: obtaining a candidate report feature vector in a vector library; performing a recall based on the problem feature vector and the candidate report feature vector to obtain a target report feature vector; obtaining third report information corresponding to the target report feature vector; and determining the target report information based on the third report information.
[0096] Among them, the vector library stores the candidate report feature vectors of all candidate report information; it should be noted that the first report information and the second report information recalled in the above text can be retrieved from the candidate report information.
[0097] The vector library also stores candidate report information corresponding to the candidate report feature vector.
[0098] Specifically, when the recall result is empty, the candidate report feature vector in the vector library is obtained, the candidate report feature vector and the question feature vector are input into the large model, the target report feature vector is obtained through the large model recall, and the third report information corresponding to the target report feature vector is obtained in the vector library; when the third report information meets the report generation conditions, the third report information is used as the target report information; when the third report information does not meet the report generation conditions, the recall is performed based on the third report information and the question to be answered to obtain the target report information.
[0099] In some embodiments, determining target report information based on the third report information includes: selecting fourth report information that meets a preset difference condition in the third report information based on a third similarity between the third report information and the question to be answered; and recalling based on the fourth report information and the question to be answered to obtain target report information that meets a preset quantity condition.
[0100] Specifically, when the third report information does not meet the report generation conditions (the preset quantity condition and the preset difference condition), the third similarity between each third report information and the question to be answered is calculated, and the third report information is arranged in descending order of the third similarity to obtain a report information sequence, and the first N third report information arranged in the report information sequence are selected, and the third similarity variance is determined based on the third similarities corresponding to the N third report information. If the third similarity variance meets the preset difference condition, the N third report information is used as the fourth report information; wherein N is a positive integer, and the value of N can be set according to actual needs; if the third similarity variance does not meet the preset difference condition, N is reduced, for example, the value of N is updated by N=N-1, and the step of selecting the first N third report information arranged in the report information sequence is continued until the fourth report information that meets the preset difference condition is obtained.
[0101] When the number of the fourth report information does not meet the preset quantity conditions, a recall is performed based on the fourth report information and the questions to be answered. If the number of the recalled report information meets the preset quantity conditions, the recalled report information is used as the target report information. If the number of the recalled report information does not meet the preset quantity conditions, the target report information that meets the preset quantity is selected from the recalled report information.
[0102] When the quantity of the fourth report information meets a preset quantity condition, the fourth report information may be used as the target report information.
[0103] In the above embodiment, when the recall result is empty, feature-level recall can be performed in the candidate report feature vectors stored in the vector library based on the question feature vector of the question to be answered. Through semantic-level recall, the target report information related to the question to be answered can be effectively recalled, thereby improving the quality of the target report information.
[0104] In some embodiments, searching for target report information based on the recall results includes: when the recall results include candidate production indicator information, searching for recall production indicator information based on the candidate production indicator information, and using the default report information corresponding to the recall production indicator information as the target report information; obtaining target production indicator information associated with the target report information includes: using the recall production indicator information as the target production indicator information.
[0105] Specifically, in actual applications, the questions to be answered may be used to query some production indicator information instead of generating a specific report. As a result, the large model fails to retrieve the report information related to the questions to be answered, but retrieves the production indicator information related to the questions to be answered.
[0106] When the recall result includes candidate production indicator information, the indicator similarity between the candidate production indicator information and the question to be answered can be calculated. If the variance between the indicator similarities meets the preset difference condition, the candidate production indicator information will be used as the recall indicator information. If the variance between the indicator similarities does not meet the preset difference condition, the large model can recall based on the candidate production indicator information and the question to be answered to obtain the recalled production indicator information.
[0107] The default report information corresponding to the recalled production index information may be, based on the quantity of the recalled production index information, the default report information whose number of indicators is the number of the recalled production index information, that is, the number of indicators included in the default report information, that is, the number of recalled production index information.
[0108] The default report information is used as the target report information, and the recalled production indicator information is used as the target production indicator information. The target production indicator data corresponding to the recalled indicator information can then be obtained, and a production data report can be generated based on the target production indicator data corresponding to the default report information (target report information) and the recalled indicator information (target production indicator information). In this way, when the user intention corresponding to the question to be answered is a query indicator, a production data report can be generated based on the recall indicator information and the default report information, so that the generated production data report is consistent with the question to be answered, thereby improving the quality of the production data report.
[0109] In some embodiments, the target production indicator information includes at least one target sub-information; determining the target production indicator data corresponding to the target production indicator information based on the production indicator data includes: for each target sub-information, obtaining the target production indicator data corresponding to the target sub-information in the production indicator data of the indicator service platform; if the target production indicator data corresponding to the target sub-information is not obtained, obtaining the target generation rule corresponding to the target sub-information in the indicator generation rule; obtaining the indicator sub-data corresponding to the target generation rule in the production indicator data, and generating the target production indicator data corresponding to the target sub-information based on the target generation rule and the indicator sub-data.
[0110] Among them, the indicator service platform includes production indicator data obtained by processing production data from multiple data sources; it can be understood that the indicator service platform is connected to multiple data sources, and the production data from multiple data sources are integrated and converted to the indicator service platform. The indicator service platform can be used to search for production data from multiple data sources without having to enter different data sources separately, and data on all aspects involved in production can be found.
[0111] The target generation rule includes a mapping relationship between the initial production index information and the preset production index information. The target generation rule can be used to process the production index data corresponding to the initial production index information to generate production index data corresponding to the preset production index information.
[0112] Specifically, for each target sub-information, the target production indicator data corresponding to the target sub-information is obtained from all production indicator data on the indicator service platform. If the target production indicator data corresponding to the target sub-information is not obtained in the production indicator data, the target generation rule corresponding to the target sub-information is searched, and the target sub-information is the preset indicator information corresponding to the found target generation rule; the indicator sub-data corresponding to the initial production indicator information in the target generation rule is obtained in the production indicator data, and the indicator sub-data corresponding to the initial production indicator information is calculated according to the target generation rule to obtain the target production indicator data corresponding to the target sub-information.
[0113] In the above embodiment, the target production indicator data can be obtained in the indicator service platform, and the required target production indicator data can also be generated through the indicator generation rules; the indicator service platform can be used to search for production data from multiple data sources without having to enter different data sources separately. Data on all aspects of production can be found, which improves the efficiency of obtaining target production indicator data.
[0114] In some embodiments, based on the obtained questions to be answered, before calling the big model to obtain the target report information, it also includes: obtaining the preset first production indicator information; searching for production data that matches the first production indicator information; performing indicator processing on the production data that matches the first production indicator information to obtain production indicator data corresponding to the first production indicator information; associating the first production indicator information and the production indicator data and saving them to the indicator service platform; obtaining the preset second production indicator information and the indicator generation rules corresponding to the second production indicator information; associating the second production indicator information and the indicator generation rules and saving them to the indicator service platform.
[0115] The production index data corresponding to the first production index information can be obtained by converting the production data, and the production index data corresponding to the second production index information can be obtained by processing the production data according to the index generation rule.
[0116] Specifically, exemplarily, Figure 4As shown, after obtaining the preset first production indicator information, the production data matching the first production indicator information is searched in the data source, and the production data matching the first production indicator information is indexed to obtain the production indicator data corresponding to the first production indicator information; wherein, the indexing processing may include: data cleaning and data format conversion processing; the first production indicator information and the production indicator data are associated and saved to the indicator service platform, so that the production indicator data required to generate the production data report can be obtained based on the association relationship; after obtaining the preset second production indicator information and the indicator generation rule corresponding to the second production indicator information, the second production indicator information and the indicator generation rule are saved to the indicator service platform.
[0117] In some embodiments, the production data update status of the data source can be detected. When the production data corresponding to the first production indicator information in the data source is updated, the indicator service platform can pull the updated production data and perform indicator processing on the updated production data to synchronously update the production indicator data corresponding to the first production indicator information.
[0118] In actual applications, the first production indicator information, the second production indicator information and the indicator generation rules can be implemented respectively through scripting languages, and the association relationship between the report information and the production indicator information can also be implemented through scripting languages. When it is necessary to modify the first production indicator information, the second production indicator information, the indicator generation rules, the report information and the association relationship between the production indicator information, the modification can be achieved by modifying the script language. Then, when the user's production situation is updated, the script language involved in this update can be modified to achieve synchronous updates of production indicators, reports and production situations. There is no need to rewrite the report generation logic according to the updated production situation. When the production situation is updated, the efficiency of synchronously updating production indicators and reports is improved.
[0119] In some embodiments, searching for production data that matches the first production indicator information includes: integrating data from multiple data sources to obtain integrated production data; and searching for production data that matches the first production indicator information in the integrated production data.
[0120] Specifically, data integration of multiple data sources can be performed by integrating the production data of multiple data sources according to time periods to obtain unified integrated production data on a time scale. The integrated production data can be stored in a database, and production data matching the first production indicator information can be subsequently searched in the database.
[0121] By integrating data from multiple data sources, the integrated production data can reflect data from all aspects of production. Subsequently, the required production data can be found based on the integrated production data and processed into production indicator data. Through data integration, the data silos formed by multiple different data sources are broken, and production data can be queried and analyzed more conveniently, improving the accuracy and efficiency of querying and analyzing production data.
[0122] It should be noted that the production indicator data corresponding to the first production indicator information may be the production data that is not frequently updated and is required to generate a production data report; the indicator data corresponding to the second production indicator information may be the production data that is frequently updated and is required to generate a production data report, such as production indicator data that needs to be statistically updated every day. If such production data is directly stored on the indicator service platform, it may cause greater data processing pressure on the indicator service platform; associating the first production indicator information and the corresponding production indicator data and saving them on the indicator service platform, and associating the second production indicator information and the corresponding indicator generation rules and saving them on the indicator service platform can reduce the load of the indicator service platform on data conversion and storage, and ensure the query efficiency of the indicator service platform.
[0123] In some embodiments, the production data processing method can be applied to scenarios where reports are queried through intelligent question-answering tasks, such as Figure 5 shown.
[0124] The user enters the question to be answered on the displayed question-and-answer page. The terminal obtains the entered question to be answered on the question-and-answer page, calls the big model, and segmentes the question to be answered based on the production terminology vocabulary to obtain the segmented words to be processed. Entities are extracted based on the segmented words to be processed to obtain entity information. The big model is used to recall the question based on the entity information to obtain the recall result.
[0125] When the first report information included in the recall result satisfies the report generation condition, the first report information is used as the target report information.
[0126] In the case where the recall result includes the first report information, the quantity of the first report information is obtained, and whether the preset quantity condition is met is determined based on the quantity of the first report information; if the preset quantity condition is not met, the first report information is divided into batches to obtain multiple report information batches, and a recall is performed based on the questions to be answered and the multiple report information batches to obtain the second report information; if the preset quantity condition is met, the first report information is used as the second report information; based on the second report information, it is determined whether the preset difference condition is met; if it is met, the second report information is used as the target report information; if it is not met, a recall is performed based on the second report information and the questions to be answered to obtain the target report information.
[0127] When the recall result is empty, the question feature vector of the question to be answered is extracted, the candidate report feature vector in the vector library is obtained, and the recall is performed based on the question feature vector and the report feature vector. The third report information is obtained through feature-level recall; based on the similarity between the third report information and the question to be answered, the fourth report information that meets the preset difference condition is selected from the third report information; the target report information that meets the preset quantity condition is obtained through selective recall through the fourth report information and the question to be answered.
[0128] Obtain target production indicator information associated with the target report information, determine the target production indicator data corresponding to the target production indicator information based on the production indicator data, generate a production data report based on the target report information and the target production indicator data, and output the production data report as a response to the question to be answered.
[0129] Through the above-mentioned production data processing method, through the powerful processing ability of the big model, the entity extraction of the question to be answered is carried out, and the target report information that matches the question to be answered is recalled based on the extracted entity information, thereby improving the quality of the target report information; since the target report information is associated with the target production indicator information, the target production indicator information required for generating the report can be obtained based on the target report information, and the target production indicator data corresponding to the target production indicator information can be obtained from the production indicator data, that is, the target report information is recalled through the big model, and the associated target production indicator information is subsequently determined, and then the target production indicator data is obtained based on the target production indicator information. In this way, the big model does not need to directly Analyzing and processing a large amount of production data reduces the amount of data and calculations involved in obtaining the target production indicator data, greatly improving the efficiency of obtaining the target production indicator data; since the production indicator data is obtained by processing the production data of multiple data sources, the target production indicator data can come from different data sources, and there is no need to obtain the production data required for generating reports from different data sources separately, which improves the convenience of obtaining data from different data sources and also improves the efficiency of finding the target production indicator data; in addition, the above process does not require human participation, can automatically process questions to be answered, and output reports that are consistent with the questions to be answered, effectively improving the efficiency of generating complex reports.
[0130] It should be understood that, although the steps in the flowcharts of the above embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flowcharts of the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0131] Based on the same inventive concept, an embodiment of the present application also provides a production data processing device. The implementation solution for solving the problem provided by the device is similar to the implementation solution recorded in the above method. Therefore, the specific limitations in one or more production data processing device embodiments provided below can refer to the limitations on the production data processing method above and will not be repeated here.
[0132] In one embodiment, Figure 6 As shown, a production data processing device is provided, comprising:
[0133] The recall module 601 is used to call the large model to obtain target report information based on the obtained questions to be answered. The large model is used to extract entity information from the questions to be answered, perform recall based on the entity information, obtain recall results, and search for target report information based on the recall results.
[0134] An acquisition module 602 is configured to acquire target production indicator information associated with target report information;
[0135] Determination module 603, for determining target production index data corresponding to target production index information based on production index data; the production index data is obtained by processing production data from multiple data sources;
[0136] The output module 604 is used to generate a production data report based on the target report information and the target production indicator data, and output the report as a response to the question to be answered.
[0137] In some embodiments, the recall module 601 is also used to use the first report information as the target report information when the first report information included in the recall result meets the report generation conditions; when the first report information does not meet the report generation conditions, perform at least one recall based on the first report information and the question to be answered to obtain the target report information; when the recall result is empty, extract the question feature vector of the question to be answered, perform at least one recall based on the question feature vector to obtain the target report information.
[0138] In some embodiments, the report generation conditions include a preset quantity condition; the recall module 601 is also used to batch the first report information to obtain multiple batches of report information when the quantity of the first report information does not meet the preset quantity condition; recall based on the questions to be answered and the multiple batches of report information to obtain second report information; determine the target report information based on the second report information and the questions to be answered.
[0139] In some embodiments, the recall module 601 is also used to obtain candidate report feature vectors in the vector library; perform recall based on the problem feature vector and the candidate report feature vector to obtain a target report feature vector; obtain third report information corresponding to the target report feature vector; and determine the target report information based on the third report information.
[0140] In some embodiments, the target production indicator information includes at least one target sub-information, and the acquisition module 602 is further used to obtain, for each target sub-information, the target production indicator data corresponding to the target sub-information in the production indicator data of the indicator service platform; if the target production indicator data corresponding to the target sub-information is not obtained, obtain the target generation rule corresponding to the target sub-information in the indicator generation rule; obtain the indicator sub-data corresponding to the target generation rule in the production indicator data, and generate the target production indicator data corresponding to the target sub-information based on the target generation rule and the indicator sub-data.
[0141] In some embodiments, the production data processing device also includes: an indicator service platform processing module, which is used to obtain preset first production indicator information; search for production data that matches the first production indicator information; perform indicator processing on the production data that matches the first production indicator information to obtain production indicator data corresponding to the first production indicator information; associate the first production indicator information and the production indicator data and save them to the indicator service platform; obtain the preset second production indicator information and the indicator generation rules corresponding to the second production indicator information; associate the second production indicator information and the indicator generation rules and save them to the indicator service platform.
[0142] Each module in the above-mentioned production data processing device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0143] Figure 7 This is a schematic diagram of the structure of the (device subject) provided in this application. Figure 7As shown, the computer device 70 provided in this embodiment includes: at least one processor 701 and a memory 702. Optionally, the device 70 also includes a communication component 703. The processor 701, the memory 702, and the communication component 703 are connected via a bus 704.
[0144] During the specific implementation process, at least one processor 701 executes the computer-executable instructions stored in the memory 702, so that the at least one processor 701 performs the above method.
[0145] The specific implementation process of the processor 701 can be found in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here in this embodiment.
[0146] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASICs), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly executed by a hardware processor or by a combination of hardware and software modules within the processor.
[0147] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage.
[0148] A bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be categorized as address buses, data buses, and control buses. For ease of illustration, the buses in the drawings of this application are not limited to just one bus or just one type of bus.
[0149] An embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, each step of the method in the above embodiment is implemented.
[0150] An embodiment of the present application further provides a computer program product, including computer-executable instructions, which implement the various steps of the method in the above embodiment when executed by a processor.
[0151] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0152] The readable storage medium may be implemented by any type of volatile or non-volatile memory device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0153] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0154] The division of units is merely a logical functional division; actual implementations may employ alternative divisions, such as combining or integrating multiple units or components into another system, or omitting or disabling certain features. Furthermore, any direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or units, either through an interface, electrical, mechanical, or other means.
[0155] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0156] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0157] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the method of the present invention. The aforementioned storage medium includes various media that can store program code, such as USB flash drives, mobile hard drives, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.
[0158] Those skilled in the art will appreciate that all or part of the steps in the above-described method embodiments can be implemented using hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0159] Finally, it should be noted that those skilled in the art will readily identify other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art not disclosed herein. The present invention is not limited to the precise structure described above and illustrated in the accompanying drawings, and various modifications and variations may be made without departing from the scope thereof. The scope of the present invention is limited solely by the appended claims.
Claims
1. A production data processing method, characterized in that: include: Based on the questions to be answered, the large model is called to obtain target report information; The large model is used to extract entity information from the question to be answered, perform recall based on the entity information, obtain a recall result, and search for the target report information based on the recall result; Acquiring target production indicator information associated with the target report information; Determining target production index data corresponding to the target production index information based on production index data; the production index data is obtained by processing production data from multiple data sources; generating a production data report based on the target report information and the target production indicator data, and outputting the production data report as a response to the question to be answered; The searching for the target report information based on the recall result includes: In the case where the recall result includes candidate production indicator information, searching for recalled production indicator information based on the candidate production indicator information, and using the default report information corresponding to the recalled production indicator information as the target report information; the number of indicators included in the default report information is the number of the recalled production indicator information; If the recall result is empty, extract the question feature vector of the question to be answered and obtain the candidate report feature vector in the vector library; perform recall based on the question feature vector and the candidate report feature vector to obtain the target report feature vector; obtain third report information corresponding to the target report feature vector; and determine the target report information based on the third report information; In a case where the first report information included in the recall result does not meet the report generation condition, at least one recall is performed based on the first report information and the question to be answered to obtain the target report information.
2. The method according to claim 1, characterized in that The searching for the target report information based on the recall result includes: In a case where the first report information included in the recall result meets the report generation condition, the first report information is used as the target report information.
3. The method according to claim 2, characterized in that The report generation conditions include a preset quantity condition; When the first report information included in the recall result does not meet the report generation condition, performing at least one recall based on the first report information and the question to be answered to obtain the target report information includes: If the quantity of the first report information does not meet the preset quantity condition, dividing the first report information into batches to obtain multiple report information batches; Performing a recall based on the question to be answered and the multiple report information batches to obtain second report information; The target report information is determined based on the second report information and the question to be answered.
4. The method according to claim 1, wherein The acquiring target production indicator information associated with the target report information includes: When the target report information is default report information, the recalled production index information is used as target production index information.
5. The method according to any one of claims 1 to 4, characterized in that The target production index information includes at least one target sub-information; and determining the target production index data corresponding to the target production index information based on the production index data includes: For each target sub-information, obtain the target production indicator data corresponding to the target sub-information from the production indicator data of the indicator service platform; In the case where the target production indicator data corresponding to the target sub-information is not obtained, obtaining the target generation rule corresponding to the target sub-information in the indicator generation rule; Indicator sub-data corresponding to the target generation rule is obtained from the production indicator data, and target production indicator data corresponding to the target sub-information is generated based on the target generation rule and the indicator sub-data.
6. The method according to claim 5, characterized in that Before calling the large model to obtain target report information based on the obtained questions to be answered, the following steps are also included: Obtaining preset first production indicator information; Searching for production data that matches the first production indicator information; performing index processing on the production data matching the first production index information to obtain production index data corresponding to the first production index information; Associating the first production indicator information with the production indicator data and saving them to the indicator service platform; Obtaining preset second production index information and an index generation rule corresponding to the second production index information; The second production indicator information and the indicator generation rule are associated and saved in the indicator service platform.
7. A production data processing device, characterized in that: The device comprises: A recall module is used to call the large model to obtain target report information based on the obtained questions to be answered; the large model is used to extract entity information from the questions to be answered, perform a recall based on the entity information, obtain a recall result, and search for the target report information based on the recall result; An acquisition module, configured to acquire target production indicator information associated with the target report information; a determination module, configured to determine target production index data corresponding to the target production index information based on production index data; the production index data is obtained by processing production data from multiple data sources; an output module, configured to generate a production data report based on the target report information and the target production indicator data, and output the production data report as a response to the question to be answered; The searching for the target report information based on the recall result includes: In the case where the recall result includes candidate production indicator information, searching for recalled production indicator information based on the candidate production indicator information, and using the default report information corresponding to the recalled production indicator information as the target report information; the number of indicators included in the default report information is the number of the recalled production indicator information; If the recall result is empty, extract the question feature vector of the question to be answered and obtain the candidate report feature vector in the vector library; perform recall based on the question feature vector and the candidate report feature vector to obtain the target report feature vector; obtain third report information corresponding to the target report feature vector; and determine the target report information based on the third report information; In a case where the first report information included in the recall result does not meet the report generation condition, at least one recall is performed based on the first report information and the question to be answered to obtain the target report information.
8. A computer device, characterized in that: include: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.
10. A computer program product, characterized in that The method comprises computer-executable instructions, which implement the method according to any one of claims 1 to 6 when the computer-executable instructions are executed by a processor.
Citation Information
Patent Citations
Notification report generation method, device, equipment and program product
CN116050371A