Method and system for generating data report based on configuration file

By obtaining the key data of enterprise users, generating a list of questions, obtaining answers to questions, writing configuration files to generate standardized reports, it solves the problem that enterprises find it difficult to obtain real and effective answers, and realizes efficient and convenient enterprise information query.

CN119441323AInactive Publication Date: 2025-02-14GONGXIN HUMANISTIC (BEIJING) MANAGEMENT CONSULTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411241522.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2025-02-14
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When facing problems, it is difficult for enterprises to obtain real and effective answers because the data on the Internet lacks standardization, resulting in the inability to form a unified standard for the questions and answers of enterprises from all walks of life.

Method used

By obtaining key data from enterprise users, extracting keyword information, generating a question list, and obtaining question answers through a multi-task listening queue, writing them into pre-configured configuration files, and generating standardized data reports.

Benefits of technology

It realizes the unified handling of problems of different enterprises and generates standardized reports, which facilitates enterprises to obtain answers to questions through enterprise information, improves efficiency and convenience, and saves manpower and material resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119441323A_ABST
    Figure CN119441323A_ABST
Patent Text Reader

Abstract

The invention discloses a method and system for generating a data report based on a configuration file, and belongs to the technical field of data processing. The method comprises the following steps: acquiring key data of an enterprise user, and extracting keyword information in the key data; based on the keyword information, generating a question list corresponding to an enterprise user generation report, and setting a flag bit for the question list; creating a multi-task monitoring queue, reading the question list through the monitoring queue according to a flag bit set by the question list, and obtaining a question answer corresponding to the question list; and writing the answer to the question into a pre-configured configuration file to generate a data report. According to the method, the problem reports can be generated for the problems of different enterprises, so that the enterprises can conveniently obtain the answers to the problems through the enterprise information, the method is efficient and convenient, and manpower and material resources are saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and more particularly, to a method and system for generating a data report based on a configuration file. Background Art

[0002] There are many problems and answers to the problems faced by enterprises. As a result, the data on problems and answers of enterprises in various industries on the Internet are large in quantity and have no standards. It is difficult to form standard questions and answers, making it difficult for enterprises to obtain real and effective answers when facing problems. Summary of the invention

[0003] The present invention proposes a method for generating a data report based on a configuration file in order to uniformly process the problems that may exist in the enterprises themselves and the answers to the problems so as to form a standardized report for the enterprises in various industries, including:

[0004] Obtain key data of enterprise users and extract keyword information from the key data;

[0005] Based on the keyword information, a list of questions corresponding to the enterprise user generating a report is generated, and a flag is set for the list of questions;

[0006] Creating a multi-task listening queue, reading the question list through the listening queue according to the flag bit set in the question list, and obtaining the answers to the questions corresponding to the question list;

[0007] The answers to the questions are written into a pre-configured configuration file to generate a data report.

[0008] Optional, key data, including enterprise information data.

[0009] Optional, keyword information, including: company name, industry, and segment.

[0010] Optionally, the method further includes:

[0011] A first database is set up, and the question list is stored in the first database.

[0012] Optionally, a flag is set for the question list, specifically:

[0013] Set the processed and unprocessed flags for the issues in the issue list.

[0014] Optionally, the answer to the question is obtained by calling the ERNIE4.0 interface, and the answer to the question is written in the question answer table of the database;

[0015] When writing the answer to the question into the pre-configured configuration file, the answer to the question in the question answer table is retrieved and written into the pre-configured configuration file.

[0016] Optionally, the ERNIE4.0 interface enterprise information knowledge base performs RAG enhancement processing to answer the question list and obtain answers to the questions corresponding to the question list.

[0017] Optionally, the enterprise information knowledge base includes: basic information of the enterprise and data related to the enterprise.

[0018] Optional, configuration file, including: Question list template table.

[0019] Optionally, when setting the question list template table, while setting the question list in the template table, placeholders for the answers to the questions corresponding to the question list are set to generate the question list template table;

[0020] The questions in the question list are configurable in the template table, and each question has blank placeholders for different enterprises, industries, sub-sectors, and plans that need to be implemented.

[0021] Optionally, the method further includes: generating a download link based on the generated data report, and the enterprise user can download the data report through the download link.

[0022] In another aspect, the present invention further provides a system for generating a data report based on a configuration file, comprising:

[0023] A data acquisition unit, used to acquire key data of enterprise users and extract keyword information from the key data;

[0024] A list acquisition unit, used to generate a list of questions corresponding to the enterprise user's report generation based on the keyword information, and set a flag bit for the list of questions;

[0025] An answer acquisition unit is used to create a multi-task listening queue, read the question list through the listening queue according to the flag bit set in the question list, and obtain the answers to the questions corresponding to the question list;

[0026] The report generating unit is used to write the answers to the questions into a pre-configured configuration file to generate a data report.

[0027] Optional, key data, including enterprise information data.

[0028] Optional, keyword information, including: company name, industry, and segment.

[0029] Optionally, the list acquisition unit is further used to:

[0030] A first database is set up, and the question list is stored in the first database.

[0031] Optionally, a flag is set for the question list, specifically:

[0032] Set the processed and unprocessed flags for the issues in the issue list.

[0033] Optionally, the answer to the question is obtained by calling the ERNIE4.0 interface, and the answer to the question is written in the question answer table of the database;

[0034] When writing the answer to the question into the pre-configured configuration file, the answer to the question in the question answer table is retrieved and written into the pre-configured configuration file.

[0035] Optionally, the ERNIE4.0 interface enterprise information knowledge base performs RAG enhancement processing to answer the question list and obtain answers to the questions corresponding to the question list.

[0036] Optionally, the enterprise information knowledge base includes: basic information of the enterprise and data related to the enterprise.

[0037] Optional, configuration file, including: Question list template table.

[0038] Optionally, when setting the question list template table, while setting the question list in the template table, placeholders for the answers to the questions corresponding to the question list are set to generate the question list template table;

[0039] The questions in the question list are configurable in the template table, and each question has blank placeholders for different enterprises, industries, sub-sectors, and plans that need to be implemented.

[0040] Optionally, the report generating unit is further used to: generate a download link based on the generated data report, and the enterprise user can download the data report through the download link.

[0041] In yet another aspect, the present invention further provides a computing device, comprising: one or more processors;

[0042] a processor for executing one or more programs;

[0043] When the one or more programs are executed by the one or more processors, the above-described method is implemented.

[0044] In yet another aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed, the method described above is implemented.

[0045] Compared with the prior art, the present invention has the following beneficial effects:

[0046] The present invention provides a method for generating a data report based on a configuration file, comprising: obtaining key data of enterprise users and extracting keyword information from the key data; based on the keyword information, generating a list of questions corresponding to the enterprise user generating a report, and setting a flag for the list of questions; creating a multi-task listening queue, reading the list of questions through the listening queue according to the flag set for the list of questions, and obtaining answers to the questions corresponding to the list of questions; writing the answers to the questions into a pre-configured configuration file to generate a data report. The present invention can generate problem reports for different enterprise problems, so that enterprises can obtain answers to questions through enterprise information, which is efficient and convenient, and saves manpower and material resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 is a flow chart of the method of the present invention;

[0048] Figure 2 It is a structural diagram of the system of the present invention. DETAILED DESCRIPTION

[0049] Now, exemplary embodiments of the present invention are described with reference to the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are provided to disclose the present invention in detail and completely and to fully convey the scope of the present invention to those skilled in the art. The terms used in the exemplary embodiments shown in the accompanying drawings are not intended to limit the present invention. In the accompanying drawings, the same units / elements are marked with the same reference numerals.

[0050] Unless otherwise specified, the terms (including technical terms) used herein have the commonly understood meanings to those skilled in the art. In addition, it is understood that the terms defined in commonly used dictionaries should be understood to have the same meanings as those in the context of the relevant fields, and should not be understood as idealized or overly formal meanings.

[0051] Embodiment 1:

[0052] The present invention proposes a method for generating a data report based on a configuration file, such as Figure 1 As shown, including:

[0053] Step 1: Obtain key data of enterprise users and extract keyword information from the key data;

[0054] Step 2: Based on the keyword information, a list of questions corresponding to the enterprise user's generated report is generated, and a flag is set for the list of questions;

[0055] Step 3: Create a multi-task listening queue, read the question list through the listening queue according to the flag set in the question list, and obtain the answers to the questions corresponding to the question list;

[0056] Step 4: Write the answers to the questions into a pre-configured configuration file to generate a data report.

[0057] Among them, key data includes enterprise information data.

[0058] Among them, keyword information includes: company name, industry and sub-sectors.

[0059] The method further includes:

[0060] A first database is set up, and the question list is stored in the first database.

[0061] The flag bit is set for the question list, specifically:

[0062] Set the processed and unprocessed flags for the issues in the issue list.

[0063] The answer to the question is obtained by calling the ERNIE4.0 interface, and the answer to the question is written in the question answer table of the database;

[0064] When writing the answer to the question into the pre-configured configuration file, the answer to the question in the question answer table is retrieved and written into the pre-configured configuration file.

[0065] Among them, the ERNIE4.0 interface enterprise information knowledge base performs RAG enhancement processing to answer the question list and obtain the answers to the questions corresponding to the question list.

[0066] The enterprise information knowledge base includes: basic information of the enterprise and data related to the enterprise.

[0067] Among them, the configuration file includes: question list template table.

[0068] Wherein, when setting the question list template table, while setting the question list in the template table, placeholders for the answers to the questions corresponding to the question list are set to generate the question list template table;

[0069] The questions in the question list are configurable in the template table, and each question has blank placeholders for different enterprises, industries, sub-sectors, and plans that need to be implemented.

[0070] The method further includes: generating a download link based on the generated data report, and the enterprise user can download the data report through the download link.

[0071] The present invention will be further described below in conjunction with embodiments:

[0072] 1. By configuring the question list template table, set the questions and the answer placeholders. The set questions are configurable in the table. In each question, blank placeholders are left for different companies, industries, sub-sectors, and plans that need to be implemented.

[0073] 2. Through the page report interactive input system, the input parameters include the company name, industry, sub-sectors and other relevant parameters of the report.

[0074] 3. After the background receives the keyword information such as different company names, industries, sub-sectors, etc. entered in 2, it will generate a list of questions corresponding to the specific company to generate a report. After receiving the list of questions for the specific company, it will be stored in the corresponding database table and the flag will be set to determine whether it has been processed.

[0075] 4. Create a multi-task listening queue. The queue will read the question list entered in 3. After obtaining the question list, it will call the ERNIE4.0 interface one by one to obtain the answers to the questions. The obtained answer list will be put into another table in the database. Then, according to the question template in 1, the corresponding answers will be filled into the configured report template.

[0076] 5. The ERNIE4.0 interface mentioned in step 4 will perform RAG enhancement processing and provide answers in combination with the enterprise information knowledge base, which mainly contains the basic information of the enterprise and its related patent data.

[0077] 6. The final report will be uploaded to OSS and a download link will be generated. Then it will be notified to the page report system and users. Users can download the complete report through the link.

[0078] Embodiment 2:

[0079] The present invention also proposes a system 200 for generating data reports based on a configuration file, such as Figure 2 As shown, including:

[0080] The data acquisition unit 201 is used to acquire key data of enterprise users and extract keyword information from the key data;

[0081] A list acquisition unit 202 is used to generate a list of questions corresponding to the enterprise user's report generation based on the keyword information, and set a flag bit for the list of questions;

[0082] The answer acquisition unit 203 is used to create a multi-task listening queue, read the question list through the listening queue according to the flag bit set in the question list, and obtain the answers to the questions corresponding to the question list;

[0083] The report generating unit 204 is used to write the answers to the questions into a pre-configured configuration file to generate a data report.

[0084] Among them, key data includes enterprise information data.

[0085] Among them, keyword information includes: company name, industry and sub-sectors.

[0086] The list acquisition unit 202 is further used for:

[0087] A first database is set up, and the question list is stored in the first database.

[0088] The flag bit is set for the question list, specifically:

[0089] Set the processed and unprocessed flags for the issues in the issue list.

[0090] The answer to the question is obtained by calling the ERNIE4.0 interface, and the answer to the question is written in the question answer table of the database;

[0091] When writing the answer to the question into the pre-configured configuration file, the answer to the question in the question answer table is retrieved and written into the pre-configured configuration file.

[0092] Among them, the ERNIE4.0 interface enterprise information knowledge base performs RAG enhancement processing to answer the question list and obtain the answers to the questions corresponding to the question list.

[0093] The enterprise information knowledge base includes: basic information of the enterprise and data related to the enterprise.

[0094] Among them, the configuration file includes: question list template table.

[0095] Wherein, when setting the question list template table, while setting the question list in the template table, placeholders for the answers to the questions corresponding to the question list are set to generate the question list template table;

[0096] The questions in the question list are configurable in the template table, and each question has blank placeholders for different enterprises, industries, sub-sectors, and plans that need to be implemented.

[0097] The report generating unit 204 is further configured to generate a download link based on the generated data report, and the enterprise user can download the data report through the download link.

[0098] The present invention can generate problem reports for different enterprises' problems, so that enterprises can get answers to their problems through enterprise information, which is efficient and convenient, and saves manpower and material resources.

[0099] Embodiment 3:

[0100] Based on the same inventive concept, the present invention also provides a computer device, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions in the computer storage medium to implement the corresponding method flow or corresponding functions, so as to implement the steps of the method in the above embodiment.

[0101] Embodiment 4:

[0102] Based on the same inventive concept, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both a built-in storage medium in a computer device and an extended storage medium supported by the computer device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the steps of the method in the above embodiment.

[0103] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The schemes in the embodiments of the present invention may be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.

[0104] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0105] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0106] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0107] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0108] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for generating a data report based on a configuration file, characterized in that: include: Obtain key data of enterprise users and extract keyword information from the key data; Based on the keyword information, a list of questions corresponding to the enterprise user generating a report is generated, and a flag is set for the list of questions; Creating a multi-task listening queue, reading the question list through the listening queue according to the flag bit set in the question list, and obtaining the answers to the questions corresponding to the question list; The answers to the questions are written into a pre-configured configuration file to generate a data report.

2. The method according to claim 1, characterized in that The key data include enterprise information data; The keyword information includes: company name, industry and sub-sectors; The setting of the flag bit for the question list is specifically: Set the processed and unprocessed flags for the issues in the issue list.

3. The method according to claim 1, characterized in that The method further comprises: Setting a first database, storing the question list in the first database; Based on the generated data report, a download link is generated, and the enterprise user can download the data report through the download link.

4. The method according to claim 1, characterized in that: Get the answer to the question by calling the ERNIE4.0 interface and write the answer to the question in the question answer table of the database; When writing the answer to the question into the pre-configured configuration file, the answer to the question in the question answer table is retrieved and written into the pre-configured configuration file; The ERNIE4.0 interface enterprise information knowledge base performs RAG enhancement processing to answer the question list and obtain the answers to the questions corresponding to the question list; The enterprise information knowledge base includes: basic information of the enterprise and data related to the enterprise; The configuration file includes: a question list template table; Wherein, when setting the question list template table, while setting the question list in the template table, placeholders for the answers to the questions corresponding to the question list are set to generate the question list template table; The questions in the question list are configurable in the template table, and each question has blank placeholders for different enterprises, industries, sub-sectors, and plans that need to be implemented.

5. A system for generating data reports based on a configuration file, characterized in that: include: A data acquisition unit, used to acquire key data of enterprise users and extract keyword information from the key data; A list acquisition unit, used to generate a list of questions corresponding to the enterprise user's report generation based on the keyword information, and set a flag bit for the list of questions; An answer acquisition unit is used to create a multi-task listening queue, read the question list through the listening queue according to the flag bit set in the question list, and obtain the answers to the questions corresponding to the question list; The report generating unit is used to write the answers to the questions into a pre-configured configuration file to generate a data report.

6. The system according to claim 5, characterized in that The key data include enterprise information data; The keyword information includes: company name, industry and sub-sectors; The setting of the flag bit for the question list is specifically: Set the processed and unprocessed flags for the issues in the issue list.

7. The system according to claim 5, characterized in that The list acquisition unit is also used for: Setting a first database, storing the question list in the first database; The report generating unit is further used to generate a download link based on the generated data report, and the enterprise user can download the data report through the download link.

8. The system according to claim 5, characterized in that Get the answer to the question by calling the ERNIE4.0 interface and write the answer to the question in the question answer table of the database; When writing the answer to the question into the pre-configured configuration file, the answer to the question in the question answer table is retrieved and written into the pre-configured configuration file; The ERNIE4.0 interface enterprise information knowledge base performs RAG enhancement processing to answer the question list and obtain the answers to the questions corresponding to the question list; The enterprise information knowledge base includes: basic information of the enterprise and data related to the enterprise; The configuration file includes: a question list template table; Wherein, when setting the question list template table, while setting the question list in the template table, placeholders for the answers to the questions corresponding to the question list are set to generate the question list template table; The questions in the question list are configurable in the template table, and each question has blank placeholders for different enterprises, industries, sub-sectors, and plans that need to be implemented.

9. A computer device, characterized in that: include: one or more processors; a processor for executing one or more programs; When the one or more programs are executed by the one or more processors, the method according to any one of claims 1 to 4 is implemented.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed, the method according to any one of claims 1 to 4 is implemented.