Design document generation method and device, medium and electronic equipment
By automatically generating design documents based on design requirements description, domain business data and historical design documents, the work burden and inconsistency caused by manual writing of design documents in the prior art is solved, and efficient and accurate design document generation is achieved.
Patent Information
- Application Number
- CN202411905350.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-18
AI Technical Summary
In the prior art, design documents are mainly written manually by developers, resulting in increased workload, wasted time and energy, and are prone to increased content inconsistency and error rates.
By determining the chapter composition of the target design document based on design requirements description, domain business data and historical design documents, the document content is generated in chapter order. For key chapters, generate a description of the key content, obtain user review feedback, and make content corrections based on the feedback until the review is approved.
It realizes automation of design document generation, improves the accuracy and generation efficiency of design documents, and ensures the practicality and effectiveness of design document generation methods.
Smart Images

Figure CN119849446A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the fields of artificial intelligence technology, big data, big models and deep learning technology, and can be applicable to financial technology scenarios. The present application specifically relates to a design document generation method, device, medium and electronic device. Background Art
[0002] As a product of the design stage and a carrier of circulating information in the coding stage, design documents play a vital role in ensuring the consistency of design and coding and promoting team collaboration and communication. They are not only a bridge between design and coding, but also an important basis for communication within the team and across departments.
[0003] Currently, design documents are mainly written manually by developers. This undoubtedly increases their workload. Design documents have many items and cumbersome content. Especially when facing similar or identical business requirements, developers need to repeatedly write a large number of similar design document contents, which not only consumes a lot of time and energy, but also may lead to inconsistency in document content and increased error rates. Summary of the invention
[0004] The present application provides a design document generation method, device, medium and electronic device, which can achieve the purpose of improving the accuracy of design document generation and improving the efficiency of design document generation.
[0005] According to a first aspect of the present application, a design document generation method is provided, the method comprising:
[0006] Based on the design requirement description, domain business data and historical design documents, determine the chapter composition of the target design document, and generate the document content in chapter order; wherein the target design document is the design document to be generated, and the historical design document is the generated design document;
[0007] If the current chapter is a key chapter, a key content description is generated for the document content corresponding to the key chapter, and the key content description is displayed;
[0008] Obtain user evaluation feedback on the key content description. If the user evaluation feedback indicates that modification is required, obtain content modification suggestions and correct the document content corresponding to the key chapter based on the content modification suggestions until the user evaluation feedback indicates that the evaluation is passed.
[0009] According to a second aspect of the present application, a design document generating device is provided, the device comprising:
[0010] A document content generation module, used to determine the chapter composition of the target design document based on the design requirement description, domain business data and historical design documents, and generate document content in chapter order; wherein the target design document is a design document to be generated, and the historical design document is a generated design document;
[0011] A content description generating module, for generating a key content description for the document content corresponding to the key chapter if the current chapter is a key chapter, and displaying the key content description;
[0012] The content correction module is used to obtain user evaluation feedback on the key content description. If the user evaluation feedback is that modification is required, the content modification suggestion is obtained and the document content corresponding to the key chapter is corrected based on the content modification suggestion until the user evaluation feedback is evaluated as passed.
[0013] According to a third aspect of the present invention, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the design document generation method as described in the embodiment of the present application.
[0014] According to the fourth aspect of the present invention, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the design document generation method as described in the embodiment of the present application is implemented.
[0015] According to the fifth aspect of the present application, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the design document generation method as described in the embodiment of the present application.
[0016] The technical solution of this application takes into account that there are many chapters in a design document, and not every chapter needs to be filled in by the user. The technical solution of this application interacts with the user on the document content of the key chapters in the design document, obtains user evaluation feedback, and obtains content modification suggestions when the user evaluation feedback indicates that modification is required. Based on the content modification suggestions, the document content corresponding to the key chapters is modified until the evaluation is passed. The automation of design document generation is realized, the accuracy of design documents is improved, the generation efficiency of design documents is improved, and the practicality and effectiveness of the design document generation method are guaranteed.
[0017] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 is a flow chart of a design document generation method provided according to Embodiment 1;
[0020] Figure 2 is a flow chart of a design document generation method provided in Embodiment 2;
[0021] Figure 3 It is a structural schematic diagram of a design document generation system provided according to an embodiment of the present application;
[0022] Figure 4 It is a structural schematic diagram of a design document generating device provided in Embodiment 3 of the present application;
[0023] Figure 5 It is a structural schematic diagram of an electronic device provided in Example 4 of the present application. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0025] It should be noted that the terms "first", "second", "target" and "candidate" in the specification and claims of the present application 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 interchangeable where appropriate, so that the embodiments of the present application 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, system, product or device comprising 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 devices.
[0026] Embodiment 1
[0027] Figure 1It is a flowchart of the design document generation method provided according to the first embodiment. This embodiment can be applicable to the situation of automatically generating design documents. The method can be configured to be executed by a design document generation device. The design document generation device is implemented in the form of hardware and / or software and can be integrated into an electronic device running this system.
[0028] like Figure 1 As shown, the method includes:
[0029] S110. Based on the design requirement description, domain business data and historical design documents, determine the chapter composition of the target design document, and generate the document content in chapter order; wherein the target design document is a design document to be generated, and the historical design document is a design document that has been generated.
[0030] S120: If the current chapter is a key chapter, generate a key content description for the document content corresponding to the key chapter, and display the key content description.
[0031] S130, obtaining user evaluation feedback on the key content description, and if the user evaluation feedback is that modification is required, obtaining content modification suggestions and correcting the document content corresponding to the key chapter based on the content modification suggestions, until the user evaluation feedback is evaluated as passed.
[0032] The design requirement description refers to the requirement information required to generate the target design document. The design requirement description has business attributes and architecture attributes. The business attributes include application information, team members, requirement use cases, requirement delivery process, requirement implementation process, and preset prompt word templates. The architecture attributes include system operation information and data processing information. The system operation information includes system interface, interaction logic, and menu entry, and the data processing information includes interface interaction, architecture type, and storage location. Domain business data refers to the business information required to generate the target design document. Domain business data includes enterprise knowledge base data, business terms, and enterprise business documents. Historical design documents are generated design documents, and historical design documents are associated with user rating feedback. Historical design documents provide content references and user evaluation feedback references for generating target design documents. Based on user evaluation feedback, it can be determined which chapters in the target design document need to be refined.
[0033] To generate a target design document, first determine the chapter composition of the target design document, and then determine the document content of each chapter in the order of the chapters. It can be seen that there are many chapters in the target design document, and not every chapter needs to be filled in by the user. Some chapters in the target design document can be automatically generated based on the design requirements description, domain business data and historical design documents.
[0034] The sections in the target design document that need to be filled in by the user are often related to technical implementation and often need to be refined. Optionally, the sections in the target design document that need to be filled in by the user and are likely to need to be refined are identified as key sections. Optionally, the key sections in the target design document are identified by referring to the document content of the historical design document and the user evaluation feedback associated with the historical design document.
[0035] The current chapter refers to the chapter in the target design document where content generation is in progress. If the current chapter is a key chapter, a key content description is generated for the document content corresponding to the key chapter. The key content description is used to assist users in understanding the document content and the idea of document content generation. Optionally, the key content description is displayed through a human-computer interaction page, and a dialogue interaction is carried out with the user for the document content of the key chapter to obtain user evaluation feedback on the key content description.
[0036] User evaluation feedback corresponds to the document content of the key chapters. User evaluation feedback can determine whether the user is satisfied with the document content corresponding to the key chapters and whether further modification is required. Optionally, user evaluation feedback includes "need to be modified" and "approved". "Need to be modified" indicates that the document content corresponding to the key chapters needs to be refined, and content modification opinions are obtained. Among them, content modification opinions are proposed for the document content corresponding to the key chapters, and are used to modify the document content of the key chapters.
[0037] Based on the content modification suggestions, correct the document content corresponding to the key chapters, display the corrected document content, and describe the content correction ideas. Have an interactive dialogue with the user on the corrected document content and content correction ideas. Obtain user evaluation feedback on the corrected document content until the user evaluation feedback is passed.
[0038] The user evaluation feedback is passed, which means that the user is satisfied with the document content corresponding to the key chapters and can continue to generate document content corresponding to subsequent chapters.
[0039] It is understandable that if the current chapter is other than the key chapter, the document contents corresponding to these chapters can be directly displayed, and conversations can be conducted with users on the document contents corresponding to these chapters to obtain user evaluation feedback on these chapters and determine whether users are satisfied with the document contents corresponding to these chapters.
[0040] The technical solution of this application takes into account that there are many chapters in a design document, and not every chapter needs to be filled in by the user. The technical solution of this application interacts with the user on the document content of the key chapters in the design document, obtains user evaluation feedback, and obtains content modification suggestions when the user evaluation feedback indicates that modification is required. Based on the content modification suggestions, the document content corresponding to the key chapters is modified until the evaluation is passed. The automation of design document generation is realized, the accuracy of design documents is improved, the generation efficiency of design documents is improved, and the practicality and effectiveness of the design document generation method are guaranteed.
[0041] In an optional embodiment, document content is generated in chapter order based on the design requirement description, domain business data and historical design documents, including: determining the main content involved in the current chapter based on the document content of each chapter in the historical design document and user evaluation feedback associated with the historical design document; based on the requirement elements in the main content, extracting the content of the design requirement description to obtain requirement-related materials; based on the business elements in the main content, retrieving the domain business data to obtain business-related materials; based on the requirement-related materials and the business-related materials, generating document content for the current chapter of the target design document.
[0042] The historical design document and the target design document are generated for similar business needs. The historical design document can provide content reference and user evaluation reference for generating the target design document. The historical design document includes at least two chapters, and the user evaluation feedback associated with the historical design document corresponds to the chapters. The user evaluation feedback associated with the historical design document includes the adjustment record of the document content.
[0043] Optionally, a historical design document with the same chapter composition as the target design document is selected, and the main content involved in the current chapter is determined based on the document content of each chapter in the historical design document and the adjustment record of the document content. The main content includes demand elements and business elements. The demand elements are related to the design demand description, and the business elements are related to the domain business data.
[0044] Based on the demand semantics of the demand elements, semantic matching is performed on the design demand description, and the content matching the demand semantics is determined and extracted from the design demand description as demand-related materials. The demand-related materials are used to generate the document content corresponding to the current chapter. Based on the business semantics of the business elements, semantic retrieval is performed on the domain business data, and the content matching the business semantics is extracted from the domain business data as business-related materials.
[0045] Optionally, based on the semantics of the demand-related material and the semantics of the business-related material, content integration is performed on the demand-related material and the business-related material, and document content is generated for the current section of the target design document based on the content integration result.
[0046] The above technical solution uses historical design documents as prior knowledge to guide the generation of target design documents. Based on the content references and user evaluation references provided by the historical design documents, the main content involved in each chapter of the target design document is determined. Based on the demand elements and business elements in the main content, demand-related materials and business-related materials are extracted from the design demand description and domain business data, respectively. Then, based on the demand-related materials and business-related materials, document content is generated for each chapter of the target design document. By referring to historical design documents to generate document content for each chapter of the target design document and making full use of the experience of generating prior design documents, content deviations can be effectively avoided, and the effectiveness and practicality of the target design document can be improved. This is conducive to improving the generation efficiency of the target design document.
[0047] In an optional embodiment, before generating a key content description for the document content corresponding to the key chapter, the method also includes: performing a grammar check and a text logic check on the document content corresponding to the key chapter to obtain a basic evaluation result; based on the role setting information, performing a business level evaluation on the document content corresponding to the key chapter from at least two professional perspectives to obtain a business evaluation result; based on the basic evaluation result and the business evaluation result, scoring the document content corresponding to the key chapter to obtain a comprehensive score for the key chapter; extracting an expected score from the design requirement description, and if the comprehensive score of the key chapter is less than or equal to the expected score, optimizing the document content corresponding to the key chapter based on the basic evaluation result and the business evaluation result.
[0048] After generating the corresponding document content for the key chapters, it is necessary to conduct a self-evaluation of the document content corresponding to the key chapters. The self-evaluation content includes at least: basic evaluation and business evaluation. Among them, the basic evaluation is to check the grammar and text logic of the document content corresponding to the key chapters. Among them, grammar checking refers to checking whether the document content conforms to the grammatical structure specified by the language. Text logic refers to checking the order and rationality of the content organization, sentence arrangement and argument development in the document content. Business evaluation is to evaluate the business level of the document content from at least two professional perspectives. It can be understood that the self-evaluation is technically supported by the agent.
[0049] Among them, the role setting information is used to specify the evaluation perspective adopted when conducting business evaluation. The specific content of the role setting information is determined according to actual business needs and is not limited here. Exemplarily, the evaluation perspectives adopted when conducting business evaluation may include: development manager or project manager. Different roles correspond to different evaluation perspectives. Exemplarily, the development manager focuses on the technical implementation details, code quality, and system architecture of the document content; the project manager focuses on the resource allocation and risk management of the document content.
[0050] The basic evaluation results reflect the writing level, and the business evaluation results reflect the business level. The basic evaluation results and the business evaluation results are combined to score the document content corresponding to the key chapters to obtain the comprehensive score of the key chapters. Optionally, the basic evaluation results and the business evaluation results are weighted, and the comprehensive score of the key chapter is determined based on the weighted processing results. The comprehensive score can comprehensively reflect the writing level and business level of the document content.
[0051] Among them, the expected score is used to determine whether the current content of the key chapter meets user needs. The expected score is included in the design requirement description, and the expected score is extracted from the design requirement description. Determine the relative size relationship between the expected score and the comprehensive score. If the comprehensive score of the key chapter is less than or equal to the expected score, it means that the current content of the key chapter has not yet met user needs. It is necessary to determine the optimizable content based on the basic evaluation results and the business evaluation results, and optimize the current content corresponding to the key chapter until the comprehensive score of the key chapter is greater than the expected score, that is, the document content of the key chapter meets user needs. After self-evaluation, it is determined that the document content of the key chapter has met user needs, and then generate a key content description for the document content corresponding to the key chapter, and then display the key content description.
[0052] It is understandable that, for other chapters in the target design document, after the document content is generated, self-evaluation can also be performed on the document content corresponding to these chapters to ensure that the overall content of the target design document meets user needs.
[0053] The above technical solution sets up a self-evaluation mechanism. After generating the corresponding document content for the key chapters, the writing level and business level of the document content corresponding to the key chapters are self-evaluated to determine whether the document content corresponding to the key chapters meets the user's needs. This is conducive to improving the generation quality of design documents and improving the user experience of the design document generation method.
[0054] In an optional embodiment, the method further includes: in response to the completion of the generation of the document content corresponding to the last chapter in the target design document, obtaining evaluation feedback records for each chapter in the target design document; associating the evaluation feedback records with the corresponding chapters in the target design document, and storing the target design document and the evaluation feedback records associated with each chapter in the target design document.
[0055] Since the document content is generated in chapter order when the target design document is generated, the completion of the target design document indicates that the target design document has been completed.
[0056] After generating the document content corresponding to each chapter in the target design document, a dialogue interaction is conducted with the user for the document content corresponding to each chapter to obtain evaluation feedback records for each chapter in the target design document. The evaluation feedback records are associated with the corresponding chapters in the target design document.
[0057] Optionally, the target design document and the evaluation feedback records associated with each chapter in the target design document are stored as enterprise knowledge base data.
[0058] The above technical solution stores the target design document and the evaluation feedback records associated with each chapter in the target design document after the document content corresponding to the target design document is generated, providing data support for using it to guide the subsequent generation of design documents.
[0059] Embodiment 2
[0060] Figure 2 It is a flow chart of the design document generation method provided in Example 2. This embodiment is further optimized on the basis of the above embodiment.
[0061] like Figure 2 As shown, the method includes:
[0062] S210. Based on the design requirement description, domain business data and historical design documents, determine the chapter composition of the target design document, and generate the document content in chapter order; wherein the target design document is a design document to be generated, and the historical design document is a design document that has been generated.
[0063] The historical design document and the target design document are generated for similar business requirements.
[0064] S220. Based on the design requirement description and the business domain data, determine a reference design document for the target design document from historical design documents; wherein the target design document and the reference design document have the same chapter composition.
[0065] The design requirement description refers to the requirement information required to generate the target design document, and the domain business data refers to the business information required to generate the target design document. The design requirement description is related to the project requirements, and the domain business data is related to the business domain. When the design requirement description and business domain data are determined, the chapter composition of the target design document can be basically determined.
[0066] The historical design document is associated with a design requirement description and business domain data. Optionally, a historical design document having a design requirement description and business domain data similar to the target design document is selected as a reference design document.
[0067] The reference design document and the target design document are generated for similar business requirements. The target design document and the reference design document have the same chapter composition. The document content of the target design document can be generated based on the document content of the reference design document.
[0068] S230: Obtain evaluation feedback records associated with each chapter in the reference design document.
[0069] The reference design document is a draft of the generated design document. Each chapter in the reference design document is associated with an evaluation feedback record. The evaluation feedback record includes those that need to be modified and those that have passed the evaluation.
[0070] S240: If the user evaluation feedback in the evaluation feedback record indicates that modification is required, and the content modification suggestion involves a change in technical implementation, then the chapter corresponding to the evaluation feedback record is determined as a key chapter.
[0071] If the user evaluation feedback is that modification is needed, there will generally be associated content modification suggestions. If the content modification suggestions involve changes in technical implementation, it means that the document content corresponding to this chapter needs to be refined. This chapter is a key chapter involving technical implementation. For example, changes in technical implementation can be interface changes or database changes.
[0072] Since the chapter composition of the reference design document and the target design document is the same, the key chapters in the reference design document are also the key chapters in the target design document.
[0073] S250: If the current chapter is a key chapter, generate a key content description for the document content corresponding to the key chapter, and display the key content description.
[0074] S260, obtaining user evaluation feedback on the key content description. If the user evaluation feedback is that modification is required, obtaining content modification suggestions and correcting the document content corresponding to the key chapter based on the content modification suggestions, until the user evaluation feedback is evaluated as passed.
[0075] The technical solution of this application provides a practical solution for determining key chapters. Based on the evaluation feedback records associated with each chapter in the reference design document, the key chapters in the target design document are determined. If the user evaluation feedback in the evaluation feedback record indicates that modification is required, and the content modification suggestion involves changes in technical implementation, the chapter corresponding to the evaluation feedback record is determined as the key chapter. This provides data support for subsequent interactive dialogues with users regarding the document content corresponding to the key chapters, which is beneficial to ensuring the quality of design document generation and improving the efficiency of design document generation.
[0076] In an optional embodiment, determining a reference design document for the target design document from historical design documents based on the design requirement description and the business domain data includes: determining the design requirement description and business domain data associated with the historical design document; determining whether the requirement semantics corresponding to the target design document and the historical design document are consistent based on the design requirement description; determining whether the business domains corresponding to the target design document and the historical design document are consistent based on the business domain data; and selecting the historical design document whose business domain is consistent with the target design document and whose requirement semantics match as the reference design document.
[0077] Historical design documents are associated with design requirement descriptions and business domain data. The design requirement descriptions of the target design document and the design requirement descriptions of the historical design documents are semantically matched to determine whether the requirements semantics corresponding to the target design document and the historical design document are consistent. Consistent requirements semantics indicate that the project requirements are the same. Based on the business domain data, the business domain corresponding to the target design document and the business domain corresponding to the historical design document can be determined respectively.
[0078] Select historical design documents whose business domains are consistent with the target design documents and whose requirements semantics match those of the target design documents as reference design documents.
[0079] The above technical solution provides a practical solution for determining reference design documents, provides technical support for subsequently determining key chapters in the target design document based on the reference design document, and is conducive to improving the efficiency of design document generation.
[0080] Figure 3 is a schematic diagram of the structure of a design document generation system provided according to an embodiment of the present application; see Figure 3 The design document generation system includes: a requirement injection module, a user interaction module, a design document generation module, a data storage module, and a design document output module. The design document generation module is respectively connected to the requirement injection module, the user interaction module, the data storage module, and the design document output module. The data storage module is connected to the design document output module.
[0081] Among them, the requirement injection module is used to collect and process design requirement descriptions. Exemplarily, the requirement injection module is responsible for obtaining requirement use cases, requirement delivery processes, and requirement implementation processes from the company's internal R&D platform. The user interaction module has semantic understanding capabilities and is used to engage in dialogue with users to obtain user evaluation feedback. The design document generation module is deployed with the design document generation logic provided in the embodiment of the present application, which is used to execute the design document generation method provided in the embodiment of the present application. The data storage module is used to store and manage domain business data, as well as historical design documents output by the design document output module and user evaluation data associated with the historical design documents. The design document output module is used to output the final design document and user evaluation feedback associated with the final design document.
[0082] Among them, the design document generation module is technically supported by a large model and an agent, and has semantic understanding, semantic retrieval and self-evaluation capabilities.
[0083] First, the design requirement description, domain business data and historical design documents required to generate the target design document are input into the design document generation module through the requirement injection module and the data storage module respectively. In response to receiving the design document generation request, the design document generation module determines the chapter composition of the target design document based on the design requirement description, domain business data and historical design documents, and generates the document content in chapter order. If the current chapter is a key chapter, a key content description is generated for the document content corresponding to the key chapter, and the key content description is displayed through the user interaction module, and a dialogue interaction is displayed with the user for the key content description. Regarding the user evaluation feedback on the key content description, if the user evaluation feedback is that it needs to be modified, the content modification opinions are obtained and the document content corresponding to the key chapter is corrected based on the content modification opinions until the user evaluation feedback is passed.
[0084] After the design document generation module completes the target design document, it is output through the design document output module, and the target design document and the user evaluation feedback associated with each chapter in the target design document are sent to the data storage module for storage.
[0085] Embodiment 3
[0086] Figure 4 It is a structural diagram of the design document generation device provided in Example 3 of the present application. This embodiment can be applied to the situation of automatically generating design documents. The device can be implemented by software and / or hardware and can be integrated into electronic devices such as smart terminals.
[0087] like Figure 4 As shown, the design document generating device 400 may include:
[0088] The document content generation module 410 is used to determine the chapter composition of the target design document based on the design requirement description, the domain business data and the historical design document, and generate the document content in the order of the chapters; wherein the target design document is the design document to be generated, and the historical design document is the design document that has been generated;
[0089] The content description generating module 420 is used to generate a key content description for the document content corresponding to the key chapter if the current chapter is a key chapter, and display the key content description;
[0090] The content correction module 430 is used to obtain user evaluation feedback on the key content description. If the user evaluation feedback is that modification is required, the content modification suggestion is obtained and the document content corresponding to the key chapter is corrected based on the content modification suggestion until the user evaluation feedback is evaluated as passed.
[0091] The technical solution of this application takes into account that there are many chapters in a design document, and not every chapter needs to be filled in by the user. The technical solution of this application interacts with the user on the document content of the key chapters in the design document, obtains user evaluation feedback, and obtains content modification suggestions when the user evaluation feedback indicates that modification is required. Based on the content modification suggestions, the document content corresponding to the key chapters is modified until the evaluation is passed. The automation of design document generation is realized, the accuracy of design documents is improved, the generation efficiency of design documents is improved, and the practicality and effectiveness of the design document generation method are guaranteed.
[0092] Optionally, the device 400 also includes: a reference document determination module, which is used to determine a reference design document for the target design document from historical design documents based on the design requirement description and business domain data before generating a key content description for the document content corresponding to the key chapter; wherein the target design document has the same chapter composition as the reference design document; a first feedback acquisition module, which is used to obtain evaluation feedback records associated with each chapter in the reference design document; and a key chapter determination module, which is used to determine the chapter corresponding to the evaluation feedback record as a key chapter if the user evaluation feedback in the evaluation feedback record indicates that modification is required and the content modification suggestion involves changes in technical implementation.
[0093] Optionally, the reference document determination module includes: a historical document data determination sub-module, used to determine the design requirement description and business domain data associated with the historical design document; a requirement semantic matching sub-module, used to determine whether the requirement semantics corresponding to the target design document and the historical design document are consistent based on the design requirement description; a business domain matching sub-module, used to determine whether the business domains corresponding to the target design document and the historical design document are consistent based on the business domain data; and a reference document determination sub-module, used to select the historical design document whose business domain is consistent with the target design document and whose requirement semantics match as the reference design document.
[0094] Optionally, the document content generation module 410 includes: a main content determination sub-module, which is used to determine the main content involved in the current chapter based on the document content of each chapter in the historical design document and the user evaluation feedback associated with the historical design document; a requirement material extraction sub-module, which is used to extract the content of the design requirement description based on the requirement elements in the main content to obtain requirement-related materials; a business material extraction sub-module, which is used to retrieve the domain business data based on the business elements in the main content to obtain business-related materials; and a document content generation sub-module, which is used to generate document content for the current chapter of the target design document based on the requirement-related materials and the business-related materials.
[0095] Optionally, the device 400 also includes: a basic checking module, which is used to perform grammar checking and text logic checking on the document content corresponding to the key chapter before generating a key content description for the document content corresponding to the key chapter to obtain a basic evaluation result; a business evaluation module, which is used to perform business level evaluation on the document content corresponding to the key chapter from at least two professional perspectives based on role setting information to obtain a business evaluation result; a comprehensive scoring module, which is used to score the document content corresponding to the key chapter based on the basic evaluation result and the business evaluation result to obtain a comprehensive score for the key chapter; and a content optimization module, which is used to extract an expected score from the design requirement description, and if the comprehensive score of the key chapter is less than or equal to the expected score, optimize the document content corresponding to the key chapter based on the basic evaluation result and the business evaluation result.
[0096] Optionally, the device 400 also includes: a second feedback acquisition module, used to obtain evaluation feedback records for each chapter in the target design document in response to the completion of the generation of the document content corresponding to the last chapter in the target design document; a document and feedback storage module, used to associate the evaluation feedback records with the corresponding chapters in the target design document, and store the target design document and the evaluation feedback records associated with each chapter in the target design document.
[0097] The design document generation device provided in the embodiment of the invention can execute the design document generation method provided in any embodiment of the present application, and has the corresponding performance modules and beneficial effects for executing the design document generation method.
[0098] In the technical solution of this application, the user evaluation feedback involved is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0099] Embodiment 4
[0100] According to an embodiment of the present application, the present application also provides an electronic device, a readable storage medium and a computer program product.
[0101] Figure 5 The schematic diagram of the structure of the electronic device 510 of the embodiment that can be used to implement is shown. The electronic device 510 includes at least one processor 511, and a memory connected to the at least one processor 511 in communication, such as a read-only memory (ROM) 512, a random access memory (RAM) 513, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 511 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 512 or the computer program loaded from the storage unit 518 to the random access memory (RAM) 513. In the RAM513, various programs and data required for the operation of the electronic device 510 can also be stored. The processor 511, the ROM 512 and the RAM513 are connected to each other via a bus 514. An input / output (I / O) interface 515 is also connected to the bus 514.
[0102] A number of components in the electronic device 510 are connected to the I / O interface 515, including: an input unit 516, such as a keyboard, a mouse, etc.; an output unit 517, such as various types of displays, speakers, etc.; a storage unit 518, such as a disk, an optical disk, etc.; and a communication unit 519, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 519 allows the electronic device 510 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0103] The processor 511 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 511 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 511 executes the various methods and processes described above, such as a design document generation method.
[0104] In some embodiments, the design document generation method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 518. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 510 via the ROM 512 and / or the communication unit 519. When the computer program is loaded into the RAM 513 and executed by the processor 511, one or more steps of the design document generation method described above may be performed. Alternatively, in other embodiments, the processor 511 may be configured to execute the design document generation method in any other appropriate manner (e.g., by means of firmware).
[0105] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0106] The computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable design document generation device, so that when the computer programs are executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0107] In the context of the present application, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device or equipment. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. A more specific example of a machine readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0108] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0109] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a design document generation server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0110] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0111] The present application also discloses a computer program product, which includes a computer program. When the computer program is executed by a processor, the computer program implements the design document generation method provided in any embodiment of the present application. The program product and the design document generation method disclosed in each embodiment of the present application belong to the same inventive concept, so they are not described here.
[0112] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution of this application can be achieved, and this document is not limited here.
[0113] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A design document generation method, characterized in that: The method comprises: Based on the design requirement description, domain business data and historical design documents, determine the chapter composition of the target design document, and generate the document content in chapter order; wherein the target design document is the design document to be generated, and the historical design document is the generated design document; If the current chapter is a key chapter, a key content description is generated for the document content corresponding to the key chapter, and the key content description is displayed; Obtain user evaluation feedback on the key content description. If the user evaluation feedback indicates that modification is required, obtain content modification suggestions and correct the document content corresponding to the key chapter based on the content modification suggestions until the user evaluation feedback indicates that the evaluation is passed.
2. The method according to claim 1, characterized in that Before generating key content descriptions for the document content corresponding to the key chapters, the method further includes: Based on the design requirement description and the business domain data, determining a reference design document for the target design document from historical design documents; wherein the target design document and the reference design document have the same chapter composition; Obtaining evaluation feedback records associated with each chapter in the reference design document; If the user evaluation feedback in the evaluation feedback record indicates that modification is required, and the content modification suggestion involves changes in technical implementation, then the chapter corresponding to the evaluation feedback record is determined as a key chapter.
3. The method according to claim 2, characterized in that The determining, based on the design requirement description and the business domain data, a reference design document for the target design document from historical design documents comprises: Determine the design requirement description and business domain data associated with the historical design document; Based on the design requirement description, determining whether the requirement semantics corresponding to the target design document and the historical design document are consistent; Based on the business domain data, determining whether the business domains corresponding to the target design document and the historical design document are consistent; The historical design document whose business domain is consistent with the target design document and whose requirement semantics match is selected as the reference design document.
4. The method according to claim 1, characterized in that: Based on the design requirements description, domain business data and historical design documents, the document content is generated in chapter order, including: Determining the main content involved in the current chapter according to the document content of each chapter in the historical design document and the user evaluation feedback associated with the historical design document; Based on the demand elements in the main content, extract the content of the design demand description to obtain demand-related materials; Based on the business elements in the main content, searching the business data in the field to obtain business-related materials; Based on the demand-related material and the business-related material, document content is generated for the current section of the target design document.
5. The method according to claim 1, characterized in that Before generating key content descriptions for the document content corresponding to the key chapters, the method further includes: Performing grammar check and text logic check on the document content corresponding to the key chapters to obtain basic evaluation results; Based on the role setting information, a business level evaluation is performed on the document content corresponding to the key chapter from at least two professional perspectives to obtain a business evaluation result; Based on the basic evaluation results and the business evaluation results, scoring the document content corresponding to the key chapter to obtain a comprehensive score for the key chapter; An expected score is extracted from the design requirement description. If the comprehensive score of the key section is less than or equal to the expected score, the document content corresponding to the key section is optimized based on the basic evaluation result and the business evaluation result.
6. The method according to claim 1, characterized in that The method further comprises: In response to the document content corresponding to the last chapter in the target design document being generated, obtaining evaluation feedback records for each chapter in the target design document; The evaluation feedback record is associated with a corresponding chapter in the target design document, and the target design document and the evaluation feedback record associated with each chapter in the target design document are stored.
7. A design document generating device, characterized in that: The device comprises: A document content generation module, used to determine the chapter composition of the target design document based on the design requirement description, domain business data and historical design documents, and generate document content in chapter order; wherein the target design document is a design document to be generated, and the historical design document is a generated design document; A content description generating module, for generating a key content description for the document content corresponding to the key chapter if the current chapter is a key chapter, and displaying the key content description; The content correction module is used to obtain user evaluation feedback on the key content description. If the user evaluation feedback is that modification is required, the content modification suggestion is obtained and the document content corresponding to the key chapter is corrected based on the content modification suggestion until the user evaluation feedback is evaluated as passed.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, it implements the design document generation method as described in any one of claims 1 to 6.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, it implements the design document generation method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the design document generating method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Online document processing method, online document processing device and electronic equipment
CN112632947A
Document editing method and device, electronic equipment and computer readable medium
CN113486635A
Document generation method and device, equipment and storage medium
CN117272970A
Industrial document generation method and device and computer readable storage medium
CN117494672A
Document writing method, system and equipment based on large language model
CN119026576A