Intelligent data report generation system and generation method based on a large-scale language model
The intelligent data report generation system addresses the limitations of conventional assistants by leveraging a large-scale language model to enhance data retrieval and report creation, ensuring accurate and efficient data analysis and reporting through RAG and Text-to-SQL technologies.
Patent Information
- Application Number
- JP2025131559
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-16
- Filing Date
- 2025-08-06
- Publication Date
- 2026-11-27
AI Technical Summary
Conventional conversational intelligent assistants face challenges in accurately understanding complex user queries and efficiently retrieving data from large knowledge bases or databases, often relying on inadequate keyword matching and lacking flexible contextual understanding and natural language-to-SQL conversion capabilities.
An intelligent data report generation system utilizing a large-scale language model, incorporating modules for natural language processing, enterprise knowledge base, data storage, database query, and report generation, with technologies like Retrieval-Augmented Generation (RAG) and Text-to-SQL to enhance data retrieval and report creation.
The system improves the efficiency and accuracy of data report creation by enabling intelligent, automated data retrieval and report generation, supporting flexible natural language queries and generating accurate visual reports, reducing manual intervention and enhancing user interaction.
Smart Images

Figure 2026185712000001_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the fields of computer software and artificial intelligence, and more particularly to an intelligent data report generation system and generation method based on a large language model. BACKGROUND ART
[0002] With the rapid development of artificial intelligence technology, especially the leapfrog advancement of natural language processing (NLP) technology, the application of intelligent assistants in various industries has gradually deepened. Traditional data analysis and report generation methods often rely on manual operations, which are inefficient and prone to human errors. To improve the efficiency of data decision-making for enterprises and individuals, more and more intelligent assistants have begun to be applied to scenarios such as automatic generation of data reports, data analysis, and processing of business queries. Conversational data report intelligent assistants, especially those that can interact with users in natural language, have become an important tool in the field of data analysis. They can understand natural language queries input by users, quickly extract relevant information from large amounts of data, and present it to users in an easy-to-understand format.
[0003] However, for conventional conversational intelligent assistants, how to accurately understand complex user queries and perform efficient data retrieval remains an urgent problem to be solved. In application scenarios with a huge knowledge base or database background, how to enable conversational intelligent assistants to not only support free question answering, but also accurately extract information from knowledge documents and databases based on the context queried by the user, and generate accurate reports, has always been an important direction of technological development. SUMMARY OF THE INVENTION PROBLEMS TO BE SOLVED BY THE INVENTION
[0004] The objective of this application is to provide an intelligent data report generation system and method based on a large-scale language model that can improve the efficiency and accuracy of data report creation and queries. [Means for solving the problem]
[0005] To achieve the above objective, this application provides the following solutions.
[0006] In a first aspect, this application provides an intelligent data report generation system based on a large-scale language model. It includes an enterprise knowledge base, data storage module, natural language processing module, knowledge document retrieval module, database query module, and report generation module.
[0007] The natural language processing module is configured to analyze the user's needs and determine whether the data source for those needs is a data storage module or an enterprise knowledge base module. If the data source is a data storage module, it sends a database query request to the database query module; if the data source is an enterprise knowledge base module, it sends a knowledge base search request to the knowledge document retrieval module.
[0008] The database query module responds to database query requests from the natural language processing module by generating SQL statements to query the structured data of the data storage module and obtain query results. The database query module queries the database using Text_to_sql technology.
[0009] The knowledge document retrieval module responds to knowledge base retrieval requests from the natural language processing module by retrieving unstructured data from the enterprise knowledge base module, and the knowledge document retrieval module retrieves the knowledge base using Retrieval-Augmented Generation (CRAP) technology.
[0010] The report generation module is configured to generate visualization graphs based on user needs and query results.
[0011] The data storage module is configured to store structured data and generated visualization graphs.
[0012] The enterprise knowledge base module is configured to store vectorized, unstructured knowledge documents.
[0013] Optionally, the natural language processing module determines the type of user needs using a large-scale language model, and if the type of user needs includes a report generation command, it inputs the query results into the report generation module; otherwise, it returns the data directly.
[0014] Optionally, the enterprise knowledge base module may store unstructured knowledge documents in the following way:
[0015] The BERT model is used to vectorize knowledge documents.
[0016] Preprocessed text content is converted into high-dimensional vectors and stored in a database table of the enterprise knowledge base module.
[0017] In a second aspect, the application provides an intelligent data report generation method based on an intelligent data report generation system based on a large-scale language model, which includes the following:
[0018] Obtain user needs.
[0019] Based on the user's needs processed by the natural language processing module, the data source for the data queried by those user needs is determined. The data source is either a data storage module or an enterprise knowledge base.
[0020] If the data queried according to the user's needs is stored in the data storage module, access and query the database query module to obtain the query result.
[0021] If the queried data is stored in the enterprise knowledge base, access and query the knowledge document retrieval module to obtain the query result.
[0022] According to the query result and the user's needs, generate a visualized report based on the report generation module, or directly return the data.
[0023] Optionally, before obtaining the user's needs, the method further includes: constructing a database using a large language model, and inputting database structure information text into the large language model as a prompt.
[0024] Optionally, the step of constructing a database using a large language model and inputting database structure information text into the model as a prompt specifically includes the following steps:
[0025] creating database structure information text corresponding to an enterprise database;
[0026] uploading the database structure information text to the large language model as a prompt; wherein the large language model queries a database table based on the prompt.
[0027] Optionally, the step of accessing and querying the database query module to obtain the query result when the data queried according to the user's needs is stored in the data storage module specifically includes the following step:
[0028] if the data queried according to the user's needs is stored in the data storage module, accessing and querying the database query module using Text-to-SQL technology.
[0029] Optionally, when the queried data is in the enterprise knowledge base, accessing the knowledge document retrieval module to perform a query and obtain the query result specifically includes the following steps:
[0030] Vectorize the user's needs using an embedding model to obtain a vectorized representation of the user's needs.
[0031] Perform cosine similarity calculation on the vectorized representation of the user's needs and each knowledge vector in the enterprise knowledge base to obtain a plurality of vector similarity values.
[0032] Input the knowledge vector corresponding to the maximum value among the vector similarity values into a large language model as a prompt.
[0033] Obtain a query result based on the large language model according to the user's needs and the prompt.
[0034] Optionally, the calculation formula for cosine similarity is as follows: JPEG2026185712000002.jpg10150where a represents the user's question vector, b represents the knowledge vector of the enterprise knowledge base, and s represents the vector similarity value.
[0035] Optionally, generating a visualization report based on the report generation module specifically includes the following steps:
[0036] Combine the user's needs and the query data into a prompt, and input the prompt into the large language model.
[0037] The model generates an ECharts script and renders it as a graph. [[Effects of the Invention]]
[0038] According to the specific embodiments provided in the present application, the present application discloses the following technical effects.
[0039] This application provides an intelligent data report generation system and method based on a large-scale language model. In this system, first, a knowledge document retrieval module based on RAG (Retrieval-Augmented Generation) technology is used to convert uploaded enterprise knowledge documents into vectors and store them. The vectorization is used to calculate the similarity of the documents, extract relevant documents from them, and provide support for generating accurate answers. Next, based on Text-to-SQL technology, the system automatically generates SQL query statements based on natural language questions entered by the user, enabling efficient extraction of relevant data from the database. Finally, using integrated report generation technology, the system generates conversational data reports based on user needs and SQL query results, achieving automated and intelligent report creation. This system allows users to perform queries and report generation using natural language, providing an intuitive, simple, and accurate intelligent data service, and significantly improving the efficiency and accuracy of data report creation and queries. [Brief explanation of the drawing]
[0040] To more clearly illustrate the embodiments of this application or the technical solutions of the prior art, the drawings that need to be used in the embodiments are briefly described below. Clearly, the drawings described below represent only a portion of the embodiments of this application, and those skilled in the art can obtain other drawings based on these without requiring any creative effort.
[0041] [Figure 1] This is a schematic diagram of a functional module of an intelligent data report generation system based on a large-scale language model provided by one embodiment of this application. [Figure 2] This is a flowchart of an intelligent data report generation method based on a large-scale language model provided by one embodiment of this application. [Modes for carrying out the invention]
[0042] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the drawings of the embodiments of this application, and it is clear that the embodiments described are only a selection of embodiments of this application, not all embodiments. All other embodiments obtained by those skilled in the art without creative effort based on the embodiments of this application are all within the scope of the protection of the present invention.
[0043] Currently, many existing conversational intelligent assistants primarily rely on pre-set rules, templates, or simple search algorithms to respond to user queries. However, these technologies have certain limitations.
[0044] Inadequate knowledge retrieval: Existing intelligent assistants often rely on simple keyword matching for queries involving large amounts of niche expertise and external document data, lacking flexible contextual understanding and deep reasoning.
[0045] Database query complexity: Traditional database queries typically require users to possess a certain level of SQL querying ability or to perform complex query customization with the help of developers. Most existing intelligent assistants only support basic search functions in automated database queries and lack flexible natural language-to-SQL conversion capabilities.
[0046] Challenges in natural language understanding: Query habits, query context, and semantic complexity can vary significantly among users. Traditional techniques do not fully address the challenge of accurately mapping natural language to database queries or complex document searches.
[0047] Therefore, combining the latest natural language processing technologies, particularly Retrieval-Augmented Generation (RAG) and Text-to-SQL (Text to SQL) techniques, to improve the capabilities of conversational intelligent assistants in knowledge document retrieval and database queries has become a hot spot in current intelligent assistant technology innovation.
[0048] The objective of this application is to provide an intelligent data report generation system and method based on a large-scale language model that can improve the efficiency and accuracy of data report creation and queries.
[0049] To make the above-mentioned objectives, features, and advantages of this application clearer and easier to understand, this application will be described in more detail below with reference to the drawings and specific embodiments.
[0050] Example 1 As shown in Figure 1, this embodiment provides an intelligent data report generation system based on a large-scale language model. It includes an enterprise knowledge base, data storage module, natural language processing module, knowledge document retrieval module, database query module, and report generation module.
[0051] The natural language processing module is configured to analyze the user's needs and determine whether the data source for those needs is a data storage module or an enterprise knowledge base module. If the data source is a data storage module, it sends a database query request to the database query module; if the data source is an enterprise knowledge base module, it sends a knowledge base search request to the knowledge document retrieval module.
[0052] The database query module responds to database query requests from the natural language processing module by generating SQL statements to query the structured data of the data storage module, and the database query module queries the database using Text_to_sql technology.
[0053] The knowledge document retrieval module responds to knowledge base retrieval requests from the natural language processing module by retrieving unstructured data from the enterprise knowledge base module, and the knowledge document retrieval module retrieves the knowledge base using Retrieval-Augmented Generation technology.
[0054] The report generation module is configured to generate visualization graphs based on user needs and query results.
[0055] The data storage module is configured to store structured data and generated visualization graphs.
[0056] The enterprise knowledge base module is configured to store vectorized, unstructured knowledge documents.
[0057] Specifically, the report generation module is configured to generate various reports such as line graphs, bar graphs, and pie charts according to the user's needs. For example, after a user inputs a need for a data report that includes the generation of a line graph, the report generation module can generate the corresponding line graph based on the data generated by the database query module and the user's needs.
[0058] Specifically, the natural language processing module is configured to process user needs and analyze whether the data queried by the user is in the data storage module or the enterprise knowledge base. If it is in the data storage module, it accesses the database query module to query the enterprise database. If the user also has a report need, after querying the data, it accesses the report generation module to create the report. If it is in the enterprise knowledge base, it accesses the knowledge document retrieval module to query the enterprise knowledge base information.
[0059] Specifically, the database query module is positioned to query data in the enterprise database. After receiving database query needs from the natural language processing module, this module generates the corresponding query statement to query the information in the data storage module.
[0060] Specifically, the data storage module is positioned to store data from database tables in enterprise business systems. This module provides structured data to the database query module.
[0061] Specifically, the knowledge document retrieval module is configured to search for data in the enterprise knowledge base. This module retrieves information from the enterprise knowledge base after receiving the enterprise knowledge base query needs from the natural language processing module.
[0062] Specifically, the enterprise knowledge base module is configured to store data from enterprise knowledge documents. This module provides unstructured data to the knowledge document retrieval module. Of this data, the BERT model is used to vectorize the knowledge documents, converting the pre-processed text content into high-dimensional vectors, which are then stored in the database tables of the enterprise knowledge base module.
[0063] Example 2 As shown in Figure 2, this application provides an intelligent data report generation method for an intelligent data report generation system based on a large-scale language model, comprising steps 201 to 205.
[0064] Step 201: Obtain user needs.
[0065] Step 202: Based on the user needs processed by the natural language processing module, determine the data source for the data queried by those user needs. The data source may be a data storage module or an enterprise knowledge base.
[0066] Step 203: If the data queried according to the user's needs is in the data storage module, access the database query module to query it and retrieve the query results.
[0067] Step 204: If the queried data is in the enterprise knowledge base, access the knowledge document retrieval module to query it and retrieve the query results.
[0068] Step 205: Based on the query results and user needs, generate a visualization report or return the data directly, based on the report generation module.
[0069] Of these, some embodiments, before obtaining user needs, The process further includes steps to configure the database using a large-scale language model and input database structure information text into the large-scale language model as a prompt, specifically including steps 1 and 2.
[0070] Step 1: Create a database structure information text corresponding to the corporate database, that is, prepare the data in the corporate database in the form of structured data tables that can be queried with SQL statements.
[0071] Step 2: Upload the database structure information text as a prompt to the large-scale language model. The large-scale language model queries the database tables based on the prompt.
[0072] In some embodiments, when performing step 202, the following may be specifically done:
[0073] The system analyzes whether the data queried by the user is in the data storage module or the enterprise knowledge base. If it is in the data storage module, it accesses the database query module to query the enterprise database. If the user also has a report need, after querying the data, it accesses the report generation module to create the report. If it is in the enterprise knowledge base, it accesses the knowledge document retrieval module to query the enterprise knowledge base information.
[0074] In some embodiments, when performing step 203, the following may be specifically done:
[0075] Step 1: The user provides their database query needs and uploads a large language model.
[0076] Step 2: The large-scale language model generates corresponding SQL statements based on the database structure information text provided by the data storage module and the user's needs.
[0077] Step 3: The system queries the database for corresponding data based on the SQL statements generated by the large-scale language model.
[0078] Step 4: The large-scale language model will respond differently depending on the user's needs. If there is no need for a report, it will present the front end in a table format. If there is a need for a report, it will access the report generation module to create the report.
[0079] In some embodiments, when performing step 204, the following may be specifically done:
[0080] The embedding model is used to vectorize user needs and obtain a vectorized representation of those needs.
[0081] We perform cosine similarity calculations on the vectorized representation of user needs and each knowledge vector in the enterprise knowledge base to obtain several vector similarity values.
[0082] The knowledge vector corresponding to the maximum value among the vector similarity values is input to the large-scale language model as a prompt.
[0083] Based on user needs and prompts, query results are retrieved using a large-scale language model.
[0084] The formula for calculating cosine similarity is as follows: JPEG2026185712000003.jpg10150 Here, a represents the user's question vector, b represents the knowledge vector of the enterprise knowledge base, and s represents the vector similarity value.
[0085] Here, the embedding model can be used to vectorize user needs and obtain a vectorized representation of those needs, which can be done specifically as follows:
[0086] Knowledge documents are vectorized using an embedding model and then stored in a database table.
[0087] The detailed flow of vectorization using the embedding model is as follows:
[0088] 1. Text preprocessing: Before vectorizing user questions, the input text must first be preprocessed to ensure that the text format is suitable for input to the embedding model. Typical preprocessing steps include the following:
[0089] Word segmentation: Word segmentation is performed on the text, and it is especially necessary for languages that do not use spaces as separators, such as Chinese.
[0090] Stop word removal: Remove some common, meaningless words such as "no" and "yes".
[0091] Lowercase conversion: Converts all letters to lowercase for consistent processing in languages such as English.
[0092] Remove special characters and punctuation: Clear special characters and punctuation from the text unless they have a specific role in the task.
[0093] These steps can help embedding models effectively extract important semantic information from text.
[0094] 2. Selecting an embedding model: Choosing the appropriate embedding model is key to vectorization. Using the BERT model can provide semantically richer and more accurate word vector representations.
[0095] 3. Converting text to vectors: Each piece of knowledge from the corporate knowledge base is input into a selected embedding model, which then transforms the text into a high-dimensional vector based on its trained weights. Specifically, the text is passed through the model's input layer, contextual encoding is performed by a multi-layer Transformer, and finally a fixed-dimensional vector representation is generated.
[0096] In some embodiments, when performing step 204, the following may be specifically done:
[0097] User needs and query data are combined into prompts and input into a large-scale language model.
[0098] The model generates an ECharts script and renders it as a graph.
[0099] Specifically, the user inputs their report needs and retrieves the corresponding data using the database query module. The user's needs and data are then uploaded to the large-scale language model as prompts. Based on these prompts, the large-scale language model generates a corresponding echarts script, which can then be used to generate the corresponding data report.
[0100] This application further provides use scenarios for an intelligent data report generation system based on a large-scale language model.
[0101] For example, a large corporation possesses a vast amount of operational data and internal knowledge documents. To better support data analysis and decision-making, this corporation decided to implement an intelligent data reporting system based on a large-scale language model.
[0102] 1. Generation of daily reports.
[0103] Salespeople need to generate sales reports regularly to monitor sales progress and performance. They input their needs in natural language, such as "total sales and monthly distribution for the past three months." After analyzing the needs, the system automatically determines that the data source is a data storage module and sends a query request to the database query module. The database query module uses Text_to_sql technology to generate SQL statements, queries the structured data, and transmits the results to the report generation module. The report generation module generates bar graphs or line graphs based on the query results to clearly display the sales data.
[0104] 2. Integration of complex queries and knowledge.
[0105] The marketing department wants to analyze the market trends of its competitors and its own market share. It inputs the need: "Comparison of competitor A's market share change over the past year and our own market share." After analyzing the need, the system determines that the data source includes not only a data storage module (market share data) but also an enterprise knowledge base module (competitor market trends). The system sends requests to the database query module and the knowledge document retrieval module, respectively. The database query module queries structured data, and the knowledge document retrieval module searches unstructured knowledge documents using Retrieval-Augmented Generation technology. The report generation module integrates the query results and generates comparison graphs to help the marketing department quickly grasp market trends and the competitive landscape.
[0106] 3. Dynamic reporting and decision support.
[0107] Senior management needs to understand the company's operations in real time to make quick decisions. They input a need for "the current financial status of the company, including revenue, costs, and profits." The system analyzes the need in real time, queries the latest data, and generates dynamic reports. These reports include visualization graphs and data tables for an intuitive display of the financial situation. Based on the reported data, managers can quickly make decisions to adjust policies or optimize operations.
[0108] By implementing an intelligent data reporting system, this company can achieve efficient data utilization and rapid knowledge integration, providing strong support for business decision-making.
[0109] In summary, this application has the following technical effects.
[0110] 1) Improve query efficiency.
[0111] This application describes a method for generating SQL query statements using a large-scale language model and combining it with database structure information text, enabling the system to quickly generate accurate SQL queries without the need to manually create complex query logic. Furthermore, by combining a database query module with natural language processing, users can execute queries through simple natural language needs, significantly reducing query time and operational complexity.
[0112] Specifically, the database query module's Text-to-SQL technology can automatically translate natural language needs into SQL query statements, avoiding manual intervention and saving query time.
[0113] By uploading database structure information to a large-scale language model as a prompt in advance, the system can directly generate target SQL queries based on this structure information, improving query accuracy and efficiency.
[0114] 2) Improve the accuracy and quality of data analysis.
[0115] This application ensures that report presentation and data interpretation meet user expectations and needs by using a large-scale language model to generate echarts scripts that correspond to user needs in data analysis and report generation. The natural language understanding capabilities of the large-scale language model enable effective identification of user report needs, resulting in more accurate report generation.
[0116] Specifically, regarding the generation of echarts scripts in the report generation module: the large-scale language model generates dynamic graph scripts according to user needs, intelligently identifying user reporting needs and avoiding the inefficiencies and errors associated with manually generating scripts.
[0117] Combining natural language processing with data: Large-scale language models can understand user needs and, by combining them with accurate data provided by database query modules, generate report results that meet user expectations.
[0118] 3) Supports efficient searching of enterprise knowledge bases.
[0119] This application describes how RAG (Retrieval-Augmented Generation) technology enables a system to efficiently retrieve relevant information from an enterprise knowledge base. By vectorizing knowledge documents using an embedding model, the search process does not rely on conventional keyword matching but instead performs efficient matching based on semantic similarity, improving the accuracy and relevance of knowledge retrieval.
[0120] Specifically, the Embedding model and RAG technology: By vectorizing corporate documents, the system can calculate cosine similarity to quickly find the knowledge most relevant to user needs from a large volume of documents and provide accurate answers.
[0121] Preprocessing and embedding for vectorization techniques: By preprocessing text and using efficient embedding models (e.g., BERT), the system can accurately capture semantic information from the text, improving the accuracy of document retrieval.
[0122] 4) Flexible report display methods.
[0123] This application enables the generation of reports in various display formats, including tables and graphs, to meet different user needs. For data that needs to be presented visually, the system generates graph scripts to create dynamic graphs, and for simple data needs, it can be quickly presented in tabular format.
[0124] Specifically, the generation of echarts scripts: By generating echarts scripts using a large-scale language model, the system can automatically generate graphs, providing a richer and more intuitive data display.
[0125] 5) Improve the intelligence and ease of user interaction.
[0126] This application describes a system that, compared to conventional manual querying and reporting methods, allows users to submit their needs in natural language, and the system automatically generates corresponding query results or reports, significantly reducing the difficulty of user operation and improving interaction efficiency. The system is designed to make interactions between the user and the database or knowledge base more intelligent through a natural language processing module.
[0127] Specifically, the natural language processing module: Using natural language processing technology, the system can intelligently analyze the needs entered by the user, automatically decide whether or not to query a database or knowledge base, generate corresponding queries or reports, and reduce manual intervention.
[0128] Combining Text-to-SQL technology with natural language queries: The user's natural language needs are automatically converted into SQL query statements, simplifying the user's workflow.
[0129] 6) Enhance the intelligence and automatic update capabilities of enterprise knowledge bases.
[0130] This application uses an embedding model to vectorize and store knowledge documents, allowing the enterprise knowledge base to be dynamically updated based on constantly increasing document data without human intervention. As the amount of enterprise knowledge increases, the system can continue to provide accurate search services.
[0131] Specifically, vectorization and embedding technologies: These technologies not only improve search accuracy but also support the automatic updating of vector representations of documents as the enterprise knowledge base constantly expands, ensuring that accurate answers continue to be provided even in environments where the knowledge base is changing.
[0132] RAG Technology: By combining vectorized documents and search technology, RAG technology enables efficient searching of knowledge bases, automatically retrieving the most relevant knowledge from large-scale documents and ensuring the timeliness and accuracy of information.
[0133] The technical features of the above embodiments can be combined in any way, and for the sake of brevity, not all possible combinations of the technical features in the above embodiments have been described. However, as long as these combinations of technical features are inconsistent, they should all be considered to be within the scope described herein.
[0134] This specification has used specific examples to illustrate the principles and embodiments of this application, but the above description of embodiments is merely intended to aid in understanding the method and core idea of this application. Furthermore, those skilled in the art can modify both the specific embodiments and the scope of application based on the idea of this application. In summary, the contents of this specification should not be construed as limiting this application.
Claims
1. An intelligent data report generation system based on a large-scale language model, wherein the intelligent data report generation system includes an enterprise knowledge base, a data storage module, a natural language processing module, a knowledge document retrieval module, a database query module, and a report generation module. The natural language processing module is configured to analyze the user's needs and determine whether the data source for those needs is a data storage module or an enterprise knowledge base module. If the data source is a data storage module, it sends a database query request to the database query module; if the data source is an enterprise knowledge base module, it sends a knowledge base search request to the knowledge document retrieval module. The database query module, in response to a database query request from the natural language processing module, generates an SQL statement to query the structured data in the data storage module and retrieves the query results. The database query module queries the database using Text_to_sql technology. The knowledge document retrieval module, in response to a knowledge base retrieval request from the natural language processing module, retrieves unstructured data from the enterprise knowledge base module, and the knowledge document retrieval module retrieves the knowledge base using Retrival-Augmented Generation technology. The report generation module is configured to generate visualization graphs based on user needs and query results. The data storage module is configured to store structured data and generated visualization graphs. The enterprise knowledge base module is designed to store vectorized, unstructured knowledge documents. An intelligent data report generation system based on a large-scale language model, characterized by the following features.
2. The intelligent data report generation system based on a large-scale language model according to claim 1, characterized in that the natural language processing module determines the type of user needs using a large-scale language model, inputs the query results to the report generation module if the type of user needs includes a report generation command, and returns the data directly otherwise.
3. The enterprise knowledge base module has a method for storing unstructured knowledge documents, The process involves vectorizing knowledge documents using the BERT model, The intelligent data report generation system based on a large-scale language model according to claim 1, characterized in that it converts preprocessed text content into a high-dimensional vector and stores it in a database table of an enterprise knowledge base module.
4. An intelligent data report generation method based on an intelligent data report generation system based on a large-scale language model as described in any one of claims 1 to 3, The intelligent data report generation method described above is: To understand user needs, Based on the user's needs processed by the natural language processing module, the data source of the data queried by the user's needs is determined, If the data queried according to the user's needs is in the data storage module, then access the database query module to query it and retrieve the query results. If the queried data resides in the enterprise knowledge base, the process involves accessing the knowledge document retrieval module, querying it, and retrieving the query results. Based on the query results and user needs, the report generation module may generate a visualization report or return the data directly, including: An intelligent data report generation method characterized in that the data source is a data storage module or an enterprise knowledge base.
5. Before obtaining user needs, The intelligent data report generation method according to claim 4, further comprising configuring a database using a large-scale language model and inputting database structure information text as a prompt into the large-scale language model.
6. Using a large-scale language model to construct a database and inputting database structure information text as a prompt into the model specifically means, To create a database structure information text corresponding to the corporate database, The intelligent data report generation method according to claim 5, characterized in that it includes uploading the database structure information text as a prompt to a large-scale language model, and the large-scale language model querying a database table based on the prompt.
7. If the data queried according to the user's needs is in the data storage module, accessing the database query module, querying it, and retrieving the query results specifically means: The intelligent data report generation method according to claim 4, characterized in that, if the data queried according to the user's needs is in the data storage module, it includes using Text_to_sql technology to access and query the database query module.
8. If the queried data resides in an enterprise knowledge base, accessing the knowledge document retrieval module to query it and retrieve the query results specifically involves: Using an embedding model, we vectorize user needs and obtain a vectorized representation of those needs. This involves performing cosine similarity calculations on the vectorized representation of user needs and each knowledge vector in the enterprise knowledge base to obtain multiple vector similarity values, The large-scale language model is input with a knowledge vector corresponding to the maximum value among the vector similarity values as a prompt, The intelligent data report generation method according to claim 4, characterized in that it includes obtaining query results based on a large-scale language model in response to user needs and prompts.
9. The formula for calculating cosine similarity is as follows: The intelligent data report generation method according to claim 8, characterized in that, here, a represents the user's question vector, b represents the knowledge vector of the corporate knowledge base, and s represents the vector similarity value.
10. Generating a visualization report based on the report generation module specifically means: Combining user needs and query data into prompts and inputting them into a large-scale language model, The intelligent data report generation method according to claim 4, characterized in that the model generates an ECharts script and renders it as a graph.
