Demand document generation method and device, equipment and storage medium

By integrating real-time collaboration technology and automatic document generation algorithm, the problem of low template customization and automation in the requirements document generation tool is solved, efficient and personalized requirements document generation is achieved, and team collaboration and project management efficiency is improved.

CN119312783APending Publication Date: 2025-01-14SHANGHAI PUDONG DEVELOPMENT BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411286767.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

The existing demand document generation tool templates are low in customization and low in automation and intelligence, resulting in insufficient document generation efficiency and accuracy, unintuitive user interface, lack of effective integration, affecting team collaboration and project management efficiency.

Method used

By integrating real-time collaboration technology, template configuration functions, automatic document generation algorithms and requirements asset management systems, an interactive user interface is provided to automatically adjust templates and assets according to project needs to generate efficient and personalized requirements documents.

Benefits of technology

It significantly improves the level of customization and automation of required documents, reduces manual intervention, improves the accuracy and consistency of documents, and optimizes team collaboration and project management processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119312783A_ABST
    Figure CN119312783A_ABST
Patent Text Reader

Abstract

The invention relates to a demand document generation method and device, equipment and a storage medium. Comprising the steps of receiving a project demand input by a project principal; a target template is determined from a template library according to the project demand, a plurality of templates are stored in the template library, and the templates represent a structural framework of the demand document; target assets are determined from a demand asset library according to the project demand, multiple assets are stored in the demand asset library, and the assets represent the content in the demand document; and generating a demand document corresponding to the project demand according to the target template and the target asset. According to the embodiment of the invention, the project leader can output the corresponding demand document only by inputting the project demand, so that the working efficiency of the project leader is improved, manual intervention is reduced, and the accuracy and consistency of the template are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of artificial intelligence technology, and more particularly to a method, device and storage medium for generating a requirements document. Background Art

[0002] There are certain limitations in the generation and management of demand documents in the existing technologies, including insufficient customization of templates, limited real-time multi-person collaboration capabilities, low levels of automation and intelligence, imperfect asset management systems, poor user interfaces and experience, and insufficient integration. Specifically, existing templates are usually more general and lack the ability to be deeply customized according to project requirements, which limits the personalization and standardization of documents. Multi-person collaboration tools are not efficient in real-time synchronous editing, which affects the communication and collaboration fluency among team members. The automatic document generation function relies on preset formats and lacks intelligent processing, resulting in a large workload for manual editing. In terms of asset management, existing tools usually only provide basic storage and tracking functions, lack in-depth analysis, reuse and version control capabilities, which limits the effective use of demand assets. The user interface design is not intuitive enough, lacks detailed help guides and customer support, and increases the learning cost of users. In addition, existing technologies often treat demand collection, document generation and management processes as independent modules, lack effective integration, resulting in fragmented workflows and affecting project management efficiency and quality.

[0003] How to improve the customization, automation and intelligence level of templates for generating requirement documents is a technical problem that needs to be solved urgently. Summary of the invention

[0004] In order to solve the problems of low customization, automation and intelligence levels of templates for generating requirement documents in the prior art, the embodiments of this specification provide a method, device and storage medium for generating requirement documents. By integrating advanced real-time collaboration technology, template configuration function, automatic document generation algorithm, requirement asset management system and interactive user interface, it aims to provide a comprehensive, efficient and user-friendly requirement document generation and management tool to significantly improve team work efficiency, ensure document professionalism and accuracy, and optimize product development processes.

[0005] The specific technical solutions of the embodiments of this specification are as follows:

[0006] On the one hand, an embodiment of this specification provides a method for generating a requirements document, the method comprising:

[0007] Receive project requirements input from the project leader;

[0008] Determining a target template from a template library according to the project requirements, wherein the template library stores a plurality of templates, and the template represents a structural framework of a requirements document;

[0009] Determining a target asset from a demand asset library according to the project requirements, wherein the demand asset library stores a plurality of assets, and the assets represent the content in the demand document;

[0010] A requirement document corresponding to the project requirement is generated according to the target template and the target asset.

[0011] Furthermore, the template library stores the templates corresponding to multiple demand types respectively;

[0012] Determining a target template from a template library according to the project requirements further includes:

[0013] Determine the target demand type of the project demand;

[0014] A template corresponding to the target requirement type is determined from the template library as the target template.

[0015] Furthermore, after determining the target template from the template library according to the project requirements, the method further includes:

[0016] The target template is adjusted according to the project requirements.

[0017] Furthermore, adjusting the target template according to the project requirements further includes:

[0018] Identify the difference between the project requirements and the target template to obtain the difference points;

[0019] Extracting content corresponding to the difference point according to a data source corresponding to the project requirement to obtain updated content, wherein the data source stores project data corresponding to the project requirement;

[0020] The updated content is added to the target template.

[0021] Furthermore, after updating the update content to the target template, the method further includes:

[0022] Verifying the validity of the target template according to predetermined rules;

[0023] If the result of the effectiveness verification is invalid, the step of identifying the difference between the project requirements and the target template is performed again.

[0024] Furthermore, the demand asset library includes assets corresponding to multiple demand names;

[0025] Determining the target asset from the demand asset library according to the project requirements further includes:

[0026] Determine the target requirement name of the project requirement;

[0027] An asset corresponding to the target demand name is determined from the demand asset library as the target asset.

[0028] Furthermore, if there is no asset corresponding to the target demand name in the demand asset library, the method further includes:

[0029] Parsing the target template, and determining content items that need to be filled in the target template as items to be filled in;

[0030] The items to be filled in are provided to the project leader, and the content corresponding to the items to be filled in input by the project leader is received, so as to generate a requirement document corresponding to the project requirement according to the target template and the content corresponding to the items to be filled in.

[0031] Furthermore, after receiving the content corresponding to the item to be filled in input by the project leader, the method further includes:

[0032] Extract key information from the content corresponding to the item to be filled in;

[0033] The correspondence between the key information and the target demand name is stored in the demand asset library.

[0034] Furthermore, the method further comprises:

[0035] The items to be filled in are provided to the staff related to the project leader, and the content corresponding to the items to be filled in entered by the staff is received, so as to generate a requirement document corresponding to the project requirements according to the target template, the content entered by the project leader and the content entered by the staff.

[0036] Furthermore, the method further comprises:

[0037] After receiving the content input by the project leader, displaying the content input by the project leader to the staff, so that the staff can input the content corresponding to the item to be filled in based on the content input by the project leader; and / or,

[0038] After receiving the content input by the staff, the content input by the staff is displayed to the project leader, so that the project leader can input the content corresponding to the item to be filled in based on the content input by the staff.

[0039] Furthermore, the method further comprises:

[0040] Determine at least one requirement name from among the plurality of requirement names in the requirement asset library, the at least one requirement name having a similarity with the target requirement name exceeding a threshold value, as a reference requirement name;

[0041] Determine an asset corresponding to the reference demand name from the demand asset library as a reference asset;

[0042] The reference asset is provided to the project leader so that the project leader can input the content corresponding to the item to be filled in based on the reference asset.

[0043] Furthermore, generating a requirement document corresponding to the project requirement according to the target template and the target asset further includes:

[0044] Generate a prompt template according to the target template and the target asset;

[0045] The prompt template is input into a pre-trained large-scale language model for calculation, and the requirement document is output.

[0046] On the other hand, an embodiment of the present specification further provides a device for generating a demand document, the device comprising:

[0047] Project requirements receiving unit, used to receive project requirements input by the project leader;

[0048] A target template determination unit, used to determine a target template from a template library according to the project requirements, wherein the template library stores a plurality of templates, and the template represents a structural framework of a requirement document;

[0049] A target asset determination unit, configured to determine a target asset from a demand asset library according to the project requirements, wherein the demand asset library stores a plurality of assets, and the assets represent the content in the demand document;

[0050] A requirement document generating unit is used to generate a requirement document corresponding to the project requirement according to the target template and the target asset.

[0051] On the other hand, an embodiment of the present specification further provides a computer device, including a memory, a processor, and a computer program stored in the memory, and the processor implements the above method when executing the computer program.

[0052] On the other hand, an embodiment of the present specification further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.

[0053] Finally, the embodiments of this specification also provide a computer program product, wherein the computer program product includes a computer program, and the computer program implements the above method when executed by a processor.

[0054] By using the embodiments of this specification, the project leader only needs to input the project requirements to output the corresponding requirements document, thereby improving the work efficiency of the project leader, reducing manual intervention, and improving the accuracy and consistency of the template. In addition, the target template is automatically adjusted according to the project requirements, and the content of the target template is automatically updated according to the project requirements. The project leader does not need to operate the target template to realize the automatic customization of the template corresponding to the project requirements, thereby improving the customization, automation and intelligence level of the template generated by the requirements document. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0056] Figure 1 It is a schematic diagram of a system for implementing a method for generating a requirement document in an embodiment of this specification;

[0057] Figure 2 The figure is a flow chart of a method for generating a requirement document according to an embodiment of the present specification;

[0058] Figure 3 The figure is a schematic diagram of a process of determining a target template from a template library according to the project requirements in an embodiment of the present specification;

[0059] Figure 4 The figure shows a flow chart of adjusting the target template according to the project requirements in the embodiment of this specification;

[0060] Figure 5 The figure is a schematic diagram of a process for validating the target template in an embodiment of the present specification;

[0061] Figure 6 The figure shows a flow chart of determining a target asset from a demand asset library according to the project requirements in an embodiment of the present specification;

[0062] Figure 7 The figure shows a flow chart of determining items to be filled in and providing the items to be filled in to the project leader for filling in in the embodiment of this specification;

[0063] Figure 8 The figure shows a flow chart of determining reference assets and providing the reference assets to the project leader for reference in the embodiment of this specification;

[0064] Fig. 9It is a schematic diagram of a process of storing the correspondence between the key information and the target demand name in the demand asset library in the embodiment of this specification;

[0065] Fig.10 The figure is a flow chart of generating a requirement document corresponding to the project requirement according to the target template and the target asset in the embodiment of this specification;

[0066] Fig.11 The figure shows a schematic diagram of the structure of a device for generating a demand document in an embodiment of this specification;

[0067] Fig.12 The figure is a schematic diagram of the structure of a computer device in an embodiment of the present specification.

[0068]

Description of the accompanying drawings

[0069] 101. Terminal;

[0070] 102. Server;

[0071] 1101. Project demand receiving unit;

[0072] 1102, target template determination unit;

[0073] 1103. Target asset determination unit;

[0074] 1104. Requirement document generation unit;

[0075] 1202. Computer equipment;

[0076] 1204. Processing equipment;

[0077] 1206. Storage resources;

[0078] 1208. Drive system;

[0079] 1210, input / output module;

[0080] 1212. Input device;

[0081] 1214. Output device;

[0082] 1216. Presentation equipment;

[0083] 1218. Graphical user interface;

[0084] 1220, network interface;

[0085] 1222, communication link;

[0086] 1224. Communication bus. DETAILED DESCRIPTION

[0087] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of this specification.

[0088] It should be noted that the terms "first", "second", etc. in the description and claims of the embodiments of this specification and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of this specification described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0089] It should be noted that the acquisition, storage, use, and processing of data in the technical solutions of the embodiments of this specification comply with the relevant provisions of national laws and regulations.

[0090] It should be noted that in the embodiments of this specification, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.

[0091] like Figure 1 The diagram is a schematic diagram of a system for implementing a method for generating a requirement document in an embodiment of the specification, including a terminal 101 and a server 102. The terminal 101 and the server 102 can communicate with each other through a network, and the network can include a local area network (LAN), a wide area network (WAN), the Internet, or a combination thereof, and is connected to a website, a user device (such as a computing device), and a backend system.

[0092] The project leader can input textual project requirements to the server 102 through the terminal 101 . The server 102 generates a requirement document according to the project requirements and provides the requirement document to the project leader through the terminal 101 .

[0093] Alternatively, the server 102 may be a node of a cloud computing system (not shown), or each server may be a separate cloud computing system including a plurality of computers interconnected by a network and operating as a distributed processing system.

[0094] In addition, it should be noted that Figure 1 What is shown is only one application environment provided by the embodiment of this specification. In actual application, other application environments may also be included, and this specification does not limit it.

[0095] In response to the problems existing in the prior art, the embodiments of this specification provide a method for generating requirements documents. By integrating advanced real-time collaboration technology, template configuration functions, automatic document generation algorithms, requirements asset management systems and interactive user interfaces, it aims to provide a comprehensive, efficient and user-friendly requirements document generation and management tool to significantly improve team work efficiency, ensure document professionalism and accuracy, and optimize product development processes. Figure 2 The flowchart of the method for generating a requirement document in the embodiment of this specification is shown. The process of generating a requirement document according to project requirements is described in this figure. The order of steps listed in the embodiment is only one way of executing the steps among many steps, and does not represent the only execution order. When the system or device product is executed in practice, it can be executed in the order of the method shown in the embodiment or the accompanying drawings or in parallel.

[0096] Specifically, as shown in the figure, the method may include:

[0097] Step 201: receiving project requirements input by the project leader;

[0098] Step 202: determining a target template from a template library according to the project requirements, wherein the template library stores a plurality of templates, and the template represents a structural framework of a requirement document;

[0099] Step 203: determining a target asset from a demand asset library according to the project requirements, wherein the demand asset library stores a plurality of assets, and the assets represent the content in the demand document;

[0100] Step 204: Generate a requirement document corresponding to the project requirement according to the target template and the target asset.

[0101] By using the embodiments of this specification, the project leader only needs to input the project requirements to output the corresponding requirements document, thereby improving the work efficiency of the project leader, reducing manual intervention, and improving the accuracy and consistency of the template. In addition, the target template is automatically adjusted according to the project requirements, and the content of the target template is automatically updated according to the project requirements. The project leader does not need to operate the target template to realize the automatic customization of the template corresponding to the project requirements, thereby improving the customization, automation and intelligence level of the template generated by the requirements document.

[0102] In the embodiments of this specification, the project requirements may be project requirements in text form written by the project leader (or product manager, etc.) based on the actual situation of the project, which must at least include the requirement name and requirement type. For example, if the requirement name is "capital investment project", the requirement type includes but is not limited to requirement specification, requirement specification, and outline design document.

[0103] The main function of requirement documents is to communicate and record, so that team members can reach the same understanding of project requirements and future generations can follow the project requirements of their predecessors. It is widely used in every business of the bank.

[0104] Exemplarily, the requirement document may include version records, requirement descriptions, glossaries, requirement lists, detailed requirement descriptions, and questions.

[0105] Among them, version records are a very important part of the requirements document, because many requirements will change, especially for some larger requirements, which leads to the necessity of version records, so that users (product managers / developers / testers) can know the iteration records of requirements when reading the requirements document.

[0106] The requirement description includes the source of the requirement, the background of the requirement and the goal of the requirement. The source of the requirement mainly records the project to which the requirement belongs, the person who promotes the requirement and the main person in charge. The background of the requirement mainly describes the background of the requirement, that is, why this requirement is made. The goal of the requirement describes the goal of achieving the requirement, that is, what is to be done.

[0107] The glossary mainly explains the professional terms of the requirement so that users can better understand the requirement. For example, the professional terms such as endorsement, discount, and predecessor in the bill industry need to be explained in the corresponding requirements.

[0108] The requirement list records the specific requirements of the requirements, that is, how to do it. For the update of historical projects / requirements, the requirement list is particularly important. Describing the changes in this requirement in the requirement list can help R&D / testing better understand the content of this requirement and play a role in overall overview.

[0109] Detailed requirements description can include UML diagrams, prototype diagrams and detailed logic descriptions. UML diagrams in normal requirements should at least include activity diagrams / sequence diagrams + state machine diagrams. A logically clear diagram can be worth a thousand words. Prototype diagrams and detailed logic descriptions complement each other and constitute the largest part of the requirements document. They are a more detailed description of "how to do it", including how to jump to the page, the interaction logic of buttons, the display logic of fields, etc.

[0110] The questions mainly record the relevant questions raised by the participants during the requirements review process. If there are some questions that cannot be answered on the spot, the questions and conclusions need to be recorded.

[0111] Some requirement documents also need to include descriptions of what is not currently supported, performance requirements, data requirements, etc.

[0112] The description of "not currently supported" records the parts of the current requirement that cannot be realized. Under normal circumstances, preliminary communication on the feasible solutions of the requirements should be conducted before the requirements review, so as to avoid interruptions in the review process due to unfeasible problems.

[0113] Performance requirements include a series of system performance-related requirements such as concurrency and response speed. Content related to performance requirements tends to be more technical.

[0114] Data requirements include data volume, storage time, etc.

[0115] It can be seen that the formats of requirement documents for different types of requirements are also different. There are also common contents (such as glossary) in requirement documents with the same or similar project requirements. Therefore, the embodiments of this specification pre-form the structural frameworks of a large number of requirement documents into templates, and store the correspondence between the templates and the requirement types in the template library. The interface framework represents the parts that need to be in the requirement document and the relationship between the parts. Extract the key information in the requirement document as data assets. These data assets can be reusable content, and store the correspondence between the assets and the requirement document names in the requirement asset library.

[0116] After receiving the project requirements, a target template is determined from the template library according to the project requirements. Specifically, Figure 3 As shown, determining the target template from the template library according to the project requirements further includes:

[0117] Step 301: Determine the target demand type of the project demand;

[0118] Step 302: Determine a template corresponding to the target requirement type from the template library as the target template.

[0119] Subsequently, the determined target template can be adaptively adjusted according to project requirements, thereby realizing personalized customization of the template. Figure 4 As shown, adjusting the target template according to the project requirements further includes:

[0120] Step 401: Identify the difference between the project requirements and the target template to obtain the difference points;

[0121] In this step, the differences may include the addition, modification or deletion of text, the addition, modification or deletion of pictures, and the addition, modification or deletion of tables.

[0122] Step 402: extracting content corresponding to the difference point according to the data source corresponding to the project requirement to obtain updated content, wherein the data source stores project data corresponding to the project requirement;

[0123] In this step, once the difference point is identified, the system automatically extracts the information that the user needs to input, which may include text, pictures or tables, etc. The extracted information may come from the file, database or designated data source of the project data provided by the project leader. For example, the text, picture or table information corresponding to the difference point is extracted from the file of the project data, and then the extracted text, picture or table information is used as the update content corresponding to the difference point.

[0124] Step 403: Add the updated content to the target template.

[0125] In this step, the system automatically updates the extracted information into the target template. The update process is implemented through automated tools, which can ensure that the information is accurately inserted into the target template and correctly associated with other elements in the target template, so that the target template can be adaptively adjusted according to project requirements.

[0126] According to one embodiment of this specification, Figure 5 As shown, after updating the update content to the target template, the method further includes:

[0127] Step 501: verifying the validity of the target template according to a predetermined rule;

[0128] Step 502: If the result of the validity verification is invalid, the step of identifying the difference between the project requirements and the target template is performed again.

[0129] In the embodiment of the present specification, after the target template is updated, the system verifies the target template, for example, by checking the updated target template for formal problems according to predetermined rules. If there are formal problems, it means that the target template is invalid. This may be because the accuracy of the content corresponding to the difference points extracted from the data source is low. Therefore, the difference between the project requirements and the template target is identified again, and the update operation of the target template is performed again.

[0130] Through the above method, the differences between project requirements and existing target templates can be automatically identified, and the information that the project leader needs to input can be extracted, thereby realizing the function of updating the existing target template. This system can greatly improve work efficiency, reduce manual intervention, and improve the accuracy and consistency of target templates.

[0131] Then, the target assets are determined from the demand asset library according to the project requirements, specifically, Figure 6 As shown, determining the target asset from the demand asset library according to the project demand further includes:

[0132] Step 601: Determine the target requirement name of the project requirement;

[0133] Step 602: Determine the asset corresponding to the target demand name from the demand asset library as the target asset.

[0134] In the embodiment of this specification, based on the demand asset library, each project leader corresponds to a group (such as fund, insurance, private equity, etc.) and corresponding permissions. When the project leader creates a new demand and enters the demand name, the system will display the reusable demand assets. For example, if the demand name entered by the project leader is "fund investment", the system will reserve all demand assets related to fund investment.

[0135] In some other embodiments of this specification, if there is no asset corresponding to the target demand name in the demand asset library, such as Figure 7 As shown, the method also includes:

[0136] Step 701: parsing the target template, and determining content items that need to be filled in the target template as items to be filled in;

[0137] Step 702: providing the items to be filled in to the project leader, and receiving the content corresponding to the items to be filled in input by the project leader, so as to generate a requirement document corresponding to the project requirement according to the target template and the content corresponding to the items to be filled in.

[0138] In an embodiment of the present specification, if the asset content corresponding to the project requirements cannot be found in the asset library, the content items that need to be filled in by the project leader in the target template are parsed as items to be filled in, and the items to be filled in are provided to the project leader for filling in, thereby generating a requirement document based on the content filled in by the project leader.

[0139] Furthermore, in order to improve the filling efficiency, according to an embodiment of the present specification, the items to be filled in are also provided to the staff related to the project leader, and the content corresponding to the items to be filled in entered by the staff is received, so as to generate a requirement document corresponding to the project requirements based on the target template, the content entered by the project leader and the content entered by the staff.

[0140] It can be understood that the embodiments of this specification provide for multiple people to fill in collaboratively, so as to generate a requirement document. Furthermore, the content filled in by multiple parties can also be displayed. Specifically, after receiving the content entered by the project leader, the content entered by the project leader is displayed to the staff, so that the staff can input the content corresponding to the items to be filled in based on the content entered by the project leader; and / or, after receiving the content entered by the staff, the content entered by the staff is displayed to the project leader, so that the project leader can input the content corresponding to the items to be filled in based on the content entered by the staff.

[0141] In the embodiments of this specification, multiple items to be filled in can be provided to multiple persons for filling in, so that multiple persons can fill in collaboratively. One item to be filled in can also be provided to multiple persons for filling in, thereby enriching the content of the filling item and improving the accuracy of generating the demand template.

[0142] It can be understood that through real-time communication technologies such as the WebSocket protocol, multiple project leaders can edit the same requirement online at the same time, and the edited content can be synchronized to all collaborators in real time. This function significantly improves the communication efficiency between team members and ensures the coordination and consistency of document editing.

[0143] In the embodiments of this specification, in order to improve the filling efficiency, such as Figure 8 As shown, the method also includes:

[0144] Step 801: Determine at least one requirement name whose similarity with a target requirement name exceeds a threshold from among multiple requirement names in the requirement asset library as a reference requirement name;

[0145] Step 802: Determine the asset corresponding to the reference demand name from the demand asset library as a reference asset;

[0146] Step 803: Provide the reference asset to the project leader so that the project leader can input the content corresponding to the item to be filled in based on the reference asset.

[0147] In the embodiments of the present specification, the similarity between the target requirement name and multiple requirement names in the requirement asset library can be calculated through a text analysis algorithm, and then at least one requirement name whose similarity exceeds a threshold is used as a reference requirement name, and then the asset corresponding to the reference requirement name is determined from the requirement asset library as a reference asset. Because the reference requirement name is relatively similar to the target requirement name, the project leader can use the reference asset corresponding to the reference requirement name as reference information, and input the content corresponding to the item to be filled in based on the reference asset, thereby improving the filling efficiency.

[0148] It can be understood that when the project leader fills in the items to be filled in in the embodiments of this specification, if the items to be filled in involve the functions of the existing demand asset library, the system will echo the relevant functions of the asset library to assist the project leader in filling in. For example, if the project leader is filling in an item to be filled in involving fund details, the system will echo the functions of the fund details in the fund asset library so that the project leader can refer to and use it. In this way, the demand asset library can help project leaders manage and reuse demand assets more efficiently and improve the efficiency and quality of filling in requirements.

[0149] According to an embodiment of the present specification, in order to enrich the demand asset library, such as Fig. 9 As shown, after receiving the content corresponding to the item to be filled in input by the project leader, the method further includes:

[0150] Step 901: extracting key information from the content corresponding to the item to be filled in;

[0151] Step 902: Store the correspondence between the key information and the target demand name in the demand asset library.

[0152] In the embodiments of this specification, key information extraction is a process of automatically extracting specific information from unstructured text. For example, key information can be extracted by rule-based methods, machine learning methods, and deep learning methods.

[0153] Specifically, rule-based methods rely on predefined rules, templates or regular expressions to extract information. This method is simple and direct and is suitable for documents with relatively fixed structures.

[0154] It includes template matching and regular expressions. Template matching is to match the input text with a predefined template. For example, information such as location and keywords can be used to identify key information; regular expressions are used to capture data in a specific format.

[0155] Machine learning methods use labeled sample data for training to automatically learn how to extract key information from documents. Common models include decision trees, support vector machines (SVMs), logistic regression, etc.

[0156] It includes feature engineering and classification models. Feature engineering extracts features based on the morphology, context, location and other information of the text; the classification model divides the text into different categories to extract content of specific categories.

[0157] Deep learning methods are particularly effective in extracting key information, especially those based on sequence models (such as LSTM, GRU) and Transformer architectures. By combining text features with spatial features, deep learning models can better understand and extract key information from documents.

[0158] The system stores this key information in the demand asset library to facilitate the subsequent automatic generation of demand documents. In this way, the system can use the wisdom and experience of multiple project leaders to complete the filling of demand documents, thereby improving the quality and accuracy of demand documents. At the same time, the system can also better meet subsequent project requirements by continuously updating the asset content in the asset library.

[0159] In the embodiment of this specification, after obtaining the target template and the target asset, a requirement document is generated according to the target and the target asset. Fig.10 As shown, generating a requirement document corresponding to the project requirement according to the target template and the target asset further includes:

[0160] Step 1001: Generate a prompt template according to the target template and the target asset;

[0161] Step 1002: Input the prompt template into a pre-trained large-scale language model for calculation, and output the requirement document.

[0162] In the embodiments of this specification, a large-scale language model can be trained based on a large number of historical demand documents, historical templates, and historical target assets, which will not be described in detail in the embodiments of this specification.

[0163] In some other embodiments of this specification, the system can also implement permission control on the access and operation of the demand asset library to ensure that only authorized project leaders can view or edit specific demand assets. The demand asset library provides powerful search and filtering functions, and project leaders can quickly find the required assets based on keywords, tags or attributes. The system provides visualization tools, such as mind maps or concept maps, to help project leaders intuitively organize and display the relationships between demand assets.

[0164] Through the embodiments of this specification, the demand asset library becomes a powerful auxiliary tool, which not only improves the efficiency and quality of demand document writing, but also promotes the accumulation and sharing of knowledge and strengthens the collaboration and communication of the project team.

[0165] Based on the same inventive concept, the embodiment of this specification also provides a demand document generation device, such as Fig.11 As shown, the device comprises:

[0166] A project requirement receiving unit 1101 is used to receive the project requirements input by the project leader;

[0167] A target template determining unit 1102 is used to determine a target template from a template library according to the project requirements, wherein the template library stores a plurality of templates, and the template represents a structural framework of a requirement document;

[0168] A target asset determination unit 1103 is used to determine a target asset from a demand asset library according to the project demand, wherein the demand asset library stores a plurality of assets, and the assets represent the content in the demand document;

[0169] The requirement document generating unit 1104 is configured to generate a requirement document corresponding to the project requirement according to the target template and the target asset.

[0170] Since the principle of solving the problem by the above device is similar to that of the above method, the implementation of the above system can refer to the implementation of the above method, and the repeated parts will not be repeated.

[0171] like Fig.12 The figure is a schematic diagram of the structure of the computer device in the embodiment of this specification. The method in the embodiment of this specification can be applied to the computer device in this embodiment.

[0172] Specifically, Fig.12 As shown, the computer device 1202 may include one or more processing devices 1204, such as one or more central processing units (CPUs), each of which may implement one or more hardware threads. The computer device 1202 may also include any storage resources 1206 for storing any type of information such as code, settings, data, etc. Without limitation, for example, the storage resource 1206 may include any one or more combinations of the following: any type of RAM, any type of ROM, a flash memory device, a hard disk, an optical disk, etc. More generally, any storage resource may use any technology to store information.

[0173] Further, any storage resource may provide volatile or non-volatile retention of information.

[0174] Further, any storage resource may represent a fixed or removable component of the computer device 1202. In one case, when the processing device 1204 executes the associated instructions stored in any storage resource or combination of storage resources, the computer device 1202 may perform any operation of the associated instructions. The computer device 1202 also includes one or more drive systems 1208 for interacting with any storage resource, such as a hard disk drive system, an optical disk drive system, etc.

[0175] The computer device 1202 may also include an input / output module 1210 (I / O) for receiving various inputs (via input devices 1212) and for providing various outputs (via output devices 1214). A specific output mechanism may include a presentation device 1216 and an associated graphical user interface (GUI) 1218. In other embodiments, the input / output module 1210 (I / O), input device 1212, and output device 1214 may not be included, and the computer device 1202 may be used as a computer device in a network. The computer device 1202 may also include one or more network interfaces 1220 for exchanging data with other devices via one or more communication links 1222. One or more communication buses 1224 couple the components described above together.

[0176] The communication link 1222 may be implemented in any manner, for example, through a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 1222 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc. governed by any protocol or combination of protocols.

[0177] The embodiments of the present specification also provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.

[0178] The embodiments of the present specification also provide a computer-readable instruction, wherein when a processor executes the instruction, the program therein causes the processor to execute the above method.

[0179] It should be understood that in the various embodiments of the present specification, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present specification.

[0180] It should also be understood that in the embodiments of this specification, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the embodiments of this specification generally indicates that the associated objects before and after are in an "or" relationship.

[0181] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of this specification can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of this specification.

[0182] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0183] In the several embodiments provided in the embodiments of this specification, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.

[0184] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of this specification.

[0185] In addition, each functional unit in each embodiment of the present specification can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0186] If the integrated unit is implemented in the form of 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 embodiment of this specification is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the embodiment of this specification. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0187] The embodiments of this specification use specific embodiments to illustrate the principles and implementation methods of the embodiments of this specification. The description of the above embodiments is only used to help understand the methods and core ideas of the embodiments of this specification. At the same time, for those skilled in the art, according to the ideas of the embodiments of this specification, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the embodiments of this specification.

Claims

1. A method for generating a requirement document, characterized in that: The method comprises: Receive project requirements input from the project leader; Determining a target template from a template library according to the project requirements, wherein the template library stores a plurality of templates, and the template represents a structural framework of a requirement document; Determining a target asset from a demand asset library according to the project requirements, wherein the demand asset library stores a plurality of assets, and the assets represent the content in the demand document; A requirement document corresponding to the project requirement is generated according to the target template and the target asset.

2. The method according to claim 1, characterized in that The template library stores the templates corresponding to multiple demand types respectively; Determining a target template from a template library according to the project requirements further includes: Determine the target demand type of the project demand; A template corresponding to the target requirement type is determined from the template library as the target template.

3. The method according to claim 1, characterized in that After determining the target template from the template library according to the project requirements, the method further includes: The target template is adjusted according to the project requirements.

4. The method according to claim 3, characterized in that: Adjusting the target template according to the project requirements further includes: Identify the difference between the project requirements and the target template to obtain the difference points; Extracting content corresponding to the difference point according to a data source corresponding to the project requirement to obtain updated content, wherein the data source stores project data corresponding to the project requirement; The updated content is added to the target template.

5. The method according to claim 4, characterized in that After updating the update content into the target template, the method further includes: Verifying the validity of the target template according to predetermined rules; If the result of the effectiveness verification is invalid, the step of identifying the difference between the project requirements and the target template is performed again.

6. The method according to claim 1, characterized in that The demand asset library includes assets corresponding to multiple demand names; Determining the target asset from the demand asset library according to the project requirements further includes: Determine the target requirement name of the project requirement; An asset corresponding to the target demand name is determined from the demand asset library as the target asset.

7. The method according to claim 6, characterized in that If there is no asset corresponding to the target demand name in the demand asset library, the method further includes: Parsing the target template, and determining content items that need to be filled in the target template as items to be filled in; The items to be filled in are provided to the project leader, and the content corresponding to the items to be filled in input by the project leader is received, so as to generate a requirement document corresponding to the project requirement according to the target template and the content corresponding to the items to be filled in.

8. The method according to claim 7, characterized in that After receiving the content corresponding to the item to be filled in input by the project leader, the method further includes: Extract key information from the content corresponding to the item to be filled in; The correspondence between the key information and the target demand name is stored in the demand asset library.

9. The method according to claim 7, characterized in that: The method further comprises: The items to be filled in are provided to the staff related to the project leader, and the content corresponding to the items to be filled in entered by the staff is received, so as to generate a requirement document corresponding to the project requirements according to the target template, the content entered by the project leader and the content entered by the staff.

10. The method according to claim 9, characterized in that The method further comprises: After receiving the content input by the project leader, displaying the content input by the project leader to the staff, so that the staff can input the content corresponding to the item to be filled in based on the content input by the project leader; and / or, After receiving the content input by the staff, the content input by the staff is displayed to the project leader, so that the project leader can input the content corresponding to the item to be filled in based on the content input by the staff.

11. The method according to claim 7, characterized in that The method further comprises: Determine at least one requirement name from among the plurality of requirement names in the requirement asset library, the at least one requirement name having a similarity with the target requirement name exceeding a threshold value, as a reference requirement name; Determine an asset corresponding to the reference demand name from the demand asset library as a reference asset; The reference asset is provided to the project leader so that the project leader can input the content corresponding to the item to be filled in based on the reference asset.

12. The method according to claim 1, characterized in that Generating a requirement document corresponding to the project requirement according to the target template and the target asset further includes: Generate a prompt template according to the target template and the target asset; The prompt template is input into a pre-trained large-scale language model for calculation, and the requirement document is output.

13. A device for generating a demand document, characterized in that: The device comprises: Project requirements receiving unit, used to receive project requirements input by the project leader; A target template determination unit, used to determine a target template from a template library according to the project requirements, wherein the template library stores a plurality of templates, and the template represents a structural framework of a requirement document; A target asset determination unit, configured to determine a target asset from a demand asset library according to the project requirements, wherein the demand asset library stores a plurality of assets, and the assets represent the content in the demand document; A requirement document generating unit is used to generate a requirement document corresponding to the project requirement according to the target template and the target asset.

14. A computer device comprising a memory, a processor, and a computer program stored in the memory, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 12 is implemented.

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

16. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.