Template creation method and device, equipment and storage medium
Through template creation methods and devices, the problem that users need to spend a lot of time modifying documents when generating documents using machine learning models, and improves the efficiency and quality of document generation.
Patent Information
- Application Number
- CN202411534695.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-10-30
AI Technical Summary
When generating documents using machine learning models, users need to spend more time and effort to modify automatically generated documents to meet specific format and content requirements, resulting in inefficient document generation.
Provide a template creation method and device, by receiving template creation instructions, presenting structural information of the target template, and creating a target template based on the document part configuration information of the target template, ensuring that the generated document structure and content meet user expectations.
Improve the efficiency of document generation, reduce the time and energy investment of users when modifying automatic document generation, and ensure that the generated document is consistent with the user's expectations.
Smart Images

Figure CN119473084A_ABST
Abstract
Description
Technical Field
[0001] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to methods, devices, apparatuses, and computer-readable storage media for template creation. Background Art
[0002] Currently, machine learning models can be used to generate text content. By training on a large amount of text data, machine learning models can learn language rules and patterns, and thus automatically generate new text content. Such machine learning models have been widely used in content creation, data analysis and other fields, providing users with convenient and efficient text generation services. Summary of the invention
[0003] In a first aspect of the present disclosure, a method for creating a template is provided. The method comprises: receiving a template creation instruction for a target template, the target template being used for document generation; presenting structural information of the target template, the structural information indicating a document structure generated based on the template creation instruction; and creating the target template based at least on corresponding configuration information of one or more document parts included in the target template.
[0004] In a second aspect of the present disclosure, a device for template creation is provided. The device includes: a receiving module configured to receive a template creation instruction for a target template, the target template being used for document generation; a presenting module configured to present structural information of the target template, the structural information indicating a document structure generated based on the template creation instruction; and a creating module configured to create the target template based at least on corresponding configuration information of one or more document parts included in the target template.
[0005] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the device executes the method of the first aspect.
[0006] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to implement the method of the first aspect.
[0007] It should be understood that the contents described in this content section are not intended to limit the key features or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0009] Figure 1 A schematic diagram showing an example environment in which embodiments according to the present disclosure may be implemented;
[0010] Figure 2 A schematic diagram showing an example interface for initiating template creation according to some embodiments of the present disclosure;
[0011] Figure 3 A schematic diagram showing an example interface for presenting structure information according to some embodiments of the present disclosure is shown;
[0012] Figure 4A A schematic diagram showing an example interface for presenting a selected data source according to some embodiments of the present disclosure is shown;
[0013] Figure 4B A schematic diagram showing an example interface for updating content description information according to some embodiments of the present disclosure;
[0014] Figure 5 A schematic diagram showing an example interface for selecting a knowledge base according to some embodiments of the present disclosure;
[0015] Figure 6 A schematic diagram showing an entry interface for a user to specify a data object according to some embodiments of the present disclosure;
[0016] Figure 7 A schematic diagram showing an example interface for skill selection according to some embodiments of the present disclosure;
[0017] Figure 8 A schematic diagram showing an example interface for configuring dependencies according to some embodiments of the present disclosure is shown;
[0018] Fig. 9A A schematic diagram showing an example of an entry interface for receiving document preview information according to some embodiments of the present disclosure;
[0019] Fig. 9B A schematic diagram showing another example of an entry interface for receiving document preview information according to some embodiments of the present disclosure;
[0020] Fig. 9C A schematic diagram showing an example of an interface for presenting a preview document according to some embodiments of the present disclosure;
[0021] Fig.9DA schematic diagram showing another example of an interface for presenting a preview document according to some embodiments of the present disclosure;
[0022] Fig.10 A flowchart illustrating an example process of template creation according to some embodiments of the present disclosure;
[0023] Fig.11 A schematic structural block diagram showing an example apparatus for template creation according to some embodiments of the present disclosure; and
[0024] Fig.12 A block diagram of an electronic device capable of implementing various embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0025] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0026] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.
[0027] Herein, unless explicitly stated, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.
[0028] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition, use, storage or deletion of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0029] It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the types, scopes of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to relevant users and their authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. The relevant users may include any type of right holders, such as individuals, enterprises, and groups.
[0030] For example, in response to receiving an active request from a user, a prompt message is sent to the relevant user to clearly prompt the relevant user that the operation requested to be performed will require obtaining and using the information of the relevant user, so that the relevant user can independently choose whether to provide information to software or hardware such as an electronic device, application, server or storage medium that executes the operation of the technical solution of the present disclosure based on the prompt message.
[0031] As an optional but non-limiting implementation, in response to receiving an active request from a relevant user, a prompt message is sent to the relevant user, for example, in the form of a pop-up window, in which the prompt message may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide information to the electronic device.
[0032] It is understandable that the above notification and the process of obtaining user authorization are only illustrative and do not limit the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure. The activation of the digital assistant related functions, the acquired data, the processing and storage of the data, etc. in the embodiment of the present disclosure shall obtain the prior authorization of the user and other rights holders associated with the user, and shall comply with the relevant laws and regulations and the agreement rules between the rights holders.
[0033] As used herein, the term "model" can learn the association between the corresponding input and output from the training data, so that after the training is completed, the corresponding output can be generated for a given input. The generation of the model can be based on machine learning technology. Deep learning is a machine learning algorithm that processes inputs and provides corresponding outputs by using multi-layer processing units. A neural network model is an example of a model based on deep learning. In this article, "model" may also be referred to as "machine learning model", "learning model", "machine learning network" or "learning network", and these terms are used interchangeably in this article.
[0034] As used herein, the term "document" refers to a material used to record information. In some embodiments, a document may be an electronic document in any suitable format, such as a document in a web page, a word document, a portable document format (PDF) document, etc. In embodiments of the present disclosure, a document may have any suitable type of content, including but not limited to text, tables, pictures, formulas, and the like.
[0035] As used herein, the term "document section" may refer to a portion of a document used to organize content. Depending on the specific implementation, a document section may have different granularities. For example, a document section may be a chapter. As another example, a document section may be a paragraph. In addition, although all are referred to as document sections, multiple document sections in the same document may have a hierarchy. For example, one document section may be the next level of another document section. A document section may have a title, a body, and optional auxiliary text (e.g., comments, footnotes, etc.). In particular, if document section A is the next level of document section B, then document section A may be considered to be at least a portion of the body of document section B.
[0036] As used herein, a "document template" or "template" may refer to an electronic, computer-processable file that describes how to generate a document.
[0037] As briefly described above, machine learning models can be applied to content creation, data analysis and other fields. In one scenario, a service provider can provide services such as document generation to users (such as corporate users) with the help of a machine learning model. In this scenario, the machine learning model freely generates documents based on the knowledge it has learned. However, in some scenarios (for example, in scenarios for corporate users), users may have similar or unified requirements for a certain type of document. In this scenario, if the machine learning model generates documents freely, the user may need to spend more time and energy to modify the generated document. This undoubtedly reduces the efficiency of document generation.
[0038] In view of this, an embodiment of the present disclosure provides a template creation scheme to create a target template for document generation. In the scheme, a template creation instruction for a target template is received. Structural information of the target template is presented, and the structural information indicates a document structure generated based on the template creation instruction. The target template is created based on at least corresponding configuration information of one or more document parts included in the target template.
[0039] It will be more clearly understood from the following description that according to the solution of the present disclosure, the structure of the template is first generated according to the creation requirements. The creator of the template can use the configuration generated according to the creation requirements, or can configure the various parts that the document will include, that is, allowing the creator to make fine adjustments to the template. In this way, it can be ensured that the generated template is consistent with the creator's expectations, thereby improving the efficiency of the template user in generating documents.
[0040] Example Environment
[0041] Figure 1A schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented is shown. Environment 100 involves an application management platform 110, which can support the creation of applications and / or the running of applications. In some embodiments, the portion of the application management platform 110 that supports the creation of applications can also be referred to as an application creation portion. In some embodiments, the portion of the application management platform 110 that supports the running of applications can also be referred to as an application running portion.
[0042] As shown in the figure, the application creation part can provide a user 105 with an environment for creating and publishing applications. User 105 can be referred to as an application creation user or creator. In some embodiments, the application creation part can be a low-code platform that provides a collection of tools for application creation. The application creation part can support visual development of various types of applications, so that developers can skip the process of manual coding and speed up the development cycle and cost of applications. The application creation part can support any appropriate platform for users to develop one or more types of applications, for example, it can include a platform based on application platform as a service (aPaaS). Such a platform can support users to efficiently develop applications and realize operations such as application creation and application function adjustment.
[0043] The application creation part can be deployed locally on the terminal device of user 105, and / or can be supported by a server device. For example, the terminal device of user 105 can run a client of the application creation part, which can support the interaction between the user and the application creation part provided by the server. In the case where the application creation part runs locally on the user's terminal device, the user 105 can directly interact with the local application creation part using the terminal device. In the case where the application creation part runs on the server device, the server device can, based on the communication connection with the terminal device, implement service provision for the client running in the terminal device. The application creation part can present a corresponding interface 130 to the user 105 based on the operation of the user 105, so as to output and / or receive information related to application creation to the user 105.
[0044] In some embodiments, the application creation part can be associated with a corresponding database, which stores data or information required for the application creation process supported by the application creation part. For example, the database can store the code and description information corresponding to each functional module that constitutes the application. The application creation part can also perform operations such as calling, adding, deleting, and updating the functional modules in the database. The database can also store operations that can be performed on different functional blocks. Exemplarily, in a scenario where an application is to be created, the application creation part can call the corresponding functional blocks from the database to build the application.
[0045] In an embodiment of the present disclosure, a user 105 can create a target application 120 as needed on the application creation part and publish the target application 120. The target application 120 can be published to any appropriate application running part, as long as the application running part can support the operation of the target application 120. After publishing, the target application 120 can be used to be operated by one or more terminal users 145. The terminal user 145 can operate the target application 120 through an associated terminal device 146, and then interact with the application management platform 110. The terminal user 145 can be referred to as the terminal user of the target application 120. In some embodiments, the target application 120 may include or be implemented as a digital assistant 122.
[0046] The digital assistant 122 may be configured to have intelligent conversation capabilities. Figure 1 In the example shown, the digital assistant 122 can be integrated into the target application 120 to assist in performing task processing within the target application 120 as part of the target application 120. In other examples, the digital assistant 122 can be configured as an independently running application, such as a web application or other types of applications. In such an example, the digital assistant 122 and the target application 120 can be regarded as the same application. The digital assistant 122 is provided to assist users with various task processing requirements in different applications and scenarios. During the interaction with the digital assistant 122, the user inputs an interactive message, and the digital assistant 122 provides a reply message in response to the user input. Typically, the digital assistant 122 can support users to input questions in natural language, and perform tasks and provide replies based on the understanding of natural language input and logical reasoning ability.
[0047] In some embodiments, digital assistant 122 can interact with end user 145 as a contact of end user 145. For example, digital assistant 122 can be implemented in an instant messaging (IM) application. Digital assistant 122 can interact with end user 145 in a single chat session with end user 145. In some embodiments, digital assistant 122 can interact with multiple users in a group chat session including multiple users.
[0048] For each terminal user 145, the client of the application running part can present various interfaces of the target application 120 in the client interface. Figure 1In the example of , an interaction window 142 between the terminal user 145 and the digital assistant 122 is shown, such as a conversation window with the digital assistant 122. The terminal user 145 can enter a conversation message in the conversation window, and the target application 120 can determine the reply message of the digital assistant 122 based on the created configuration information and present it to the user in the interaction window 142. In some embodiments, depending on the configuration of the target application 120, the interaction message with the target application 120 may include a message in a multimodal form, such as a text message (e.g., natural language text), a voice message, an image message, a video message, and the like.
[0049] Similar to the application creation part, the application running part can be deployed locally on the terminal device of each terminal user 145, and / or can be supported by the server device. For example, the terminal device of the terminal user 145 can run a client with the application running part, and the client can support the interaction between the user and the application running part provided by the server. In the case where the application running part runs locally on the user's terminal device, the terminal user 145 can directly use the terminal device to interact with the local application running part. In the case where the application running part runs on the server device, the server device can realize the service supply to the client running in the terminal device based on the communication connection with the terminal device. The application running part can present the corresponding application page to the terminal user 145 based on the operation of the terminal user 145, so as to output and / or receive information related to the use of the application to the terminal user 145.
[0050] In some embodiments, the implementation of at least part of the functions of the target application 120 and / or the implementation of at least part of the functions of the digital assistant 122 in the target application 120 can be implemented based on a machine learning model (referred to as a model). During the creation or operation of the target application 120, one or more models 155, such as the capabilities of the model 155, can be called. In the target application 120, the digital assistant 122 can use the model 155 to understand the user input, and respond to the user input based on the output of the model 155, such as providing a reply to the user input.
[0051] During the creation process, the application management platform 110 needs to use the model 155 to determine whether the operation result of the target application 120 meets expectations when testing the target application 120. During the operation process, in response to different operation requests of the user of the target application 120, the application operation part may need to use the model 155 to determine the response result to the user.
[0052] Although shown as being independent of the application management platform 110, one or more models 155 may run on the application management platform 110, or other remote servers. In some embodiments, the model 155 may be a machine learning model, a deep learning model, a learning model, a neural network, etc. In some embodiments, the model may be based on a language model (LM). The language model can have question-answering capabilities by learning from a large amount of corpus. The model 155 may also be based on other appropriate models.
[0053] In some embodiments, the target application 120 may provide a writing function, for example, the target application 120 may be a writing application or may include a writing component. This writing function may be implemented with the aid of one or more models 155, and is therefore also referred to as "intelligent writing". In some embodiments, the user 105 may generate or create a document template for writing through the application management platform 110. The created document template may be distributed to the end user 145 of the target application 120. In some embodiments, the application management platform 110 may support a template creation mode from scratch. For example, the user 105 may input requirements for a template to be generated to initiate a template creation process. In some embodiments, the application management platform 110 may support a template creation mode based on an existing document (also referred to as a model or reference document). For example, the user 105 may specify an existing document to initiate a template creation process.
[0054] In some embodiments, the end user 145 can write, that is, generate a document, through the target application 120. The application management platform 110 can support various suitable document generation modes. In some embodiments, the application management platform 110 can support a document generation mode based on a template. For example, the end user 145 can generate a document using a template created and distributed by the user 105. In some embodiments, the application management platform 110 can support a document generation mode based on an existing document. For example, the end user 145 can specify an existing document as a reference to generate a target document. In some embodiments, the application management platform 110 can support a document generation mode from scratch. For example, the end user 145 can input the requirements of the document to be generated to initiate the document generation process.
[0055] The application management platform 110 can run on appropriate electronic devices. The electronic devices here can be any type of device with computing capabilities, including terminal devices or server devices. The terminal device can be any type of mobile terminal, fixed terminal or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, personal communication systems (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio broadcast receivers, e-book devices, gaming devices or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. The server device can include, for example, a computing system / server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like. In some embodiments, the application management platform 110 can be implemented based on cloud services.
[0056] It should be understood that the structure and functionality of the environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure. For example, although a single user interacting with the application creation portion and a single user interacting with the application execution portion are shown, in reality multiple users can access the application management platform 110 to each create a digital assistant, and each digital assistant can be used to interact with multiple users.
[0057] Some example embodiments of the present disclosure will be described in detail below with reference to the examples of the accompanying drawings. It should be understood that the pages shown in the accompanying drawings are only examples, and various page designs may actually exist. The various graphical elements in the page may have different arrangements and different visual representations, one or more elements may be omitted or replaced, and one or more other elements may also exist. The embodiments of the present disclosure are not limited in this respect.
[0058] The process described in the embodiments of the present disclosure may be implemented on an application management platform, a terminal device on which the application management platform is installed, and / or a server corresponding to the application management platform. In the following examples, for the sake of discussion, the description is from the perspective of the application management platform, for example Figure 1The application management platform 110 shown. The user interface presented by the application management platform 110 can be presented via the terminal device of the user 145, and the application management platform 110 can receive user input via the terminal device of the user 145. In some embodiments, the user 145 is a terminal user of the target application 120. It should be understood that the user interface presented by the application management platform 110 can also be presented via the terminal device of the user 105, and the application management platform 110 can also receive user input via the terminal device of the user 105. In some embodiments, the user 105 is the creator, manager or maintainer of the target application 120.
[0059] Example Interaction
[0060] Figures 2 to 9D 200 to 900D can be composed of example interfaces according to some embodiments of the present disclosure. Figure 1 Provided by the application management platform 110 shown.
[0061] The user 105 creates a document template for document generation through the target application 120. The template creation instruction is used to indicate the template that the user expects to generate. Exemplarily, the template creation instruction may include a template identifier of the target template (e.g., a template name or a number used to distinguish the template). The template creation instruction may include template description information for the target template, and the template description information indicates the user's generation requirements for the target template (such as the genre of the target template, the document content corresponding to the target template, the application scenario of the target template, etc.). The template creation instruction may also include a reference data source that can be used in the target template generation process. The reference data source includes internal data (e.g., an internal knowledge base of the organization where the user 105 is located), public data (e.g., data that can be obtained through Internet search), and data objects specified by the user 105 (e.g., local documents or online documents uploaded by the user 105), etc. In some embodiments, the template creation instruction may also include template levels, such as outline levels (such as 2 layers, 3 layers).
[0062] Figure 2 FIG. 2 is a schematic diagram of an example interface 200 for initiating template creation according to some embodiments of the present disclosure. Figure 2 As shown, an interface 200 for obtaining a template creation instruction is presented on the terminal device of the user 105. The application management platform 110 can obtain the template creation instruction input by the user 105 through the presented interface 200. Figure 2 As shown, the interface 200 includes various interface elements to obtain template creation requirements. For example, Figure 2The template generation control 210, the entry 211 for obtaining template identification information, the entry 212 for obtaining template description information, the entry 213 for selecting a knowledge base, and the entry 214 for setting the number of template levels are shown. The template identification component 211 is used to receive a template identification. The template description information component 212 allows the user to provide the generation requirements of the target template. The knowledge base selection entry 213 allows the user to select the knowledge base for reference in creating templates and document generation. The template level number component 214 is used to determine the level of the generated target template. If the template generation control 210 is turned on, the application management platform 110 starts the template creation process to generate a target template based on the template creation instruction obtained by the instruction acquisition component 210.
[0063] refer to Figure 2 The described provision of target creation instructions through interface elements is merely exemplary and is not intended to be limiting. User 105 may provide template creation instructions in various suitable ways. In some embodiments, user 105 may provide template creation instructions by voice input or text input, and the template creation instructions input by user 105 may be in the form of natural language. In this way, the target creation process may be further simplified, and the target creation efficiency and user experience may be improved. However, it should be understood that this is merely an exemplary function and is not intended to be limiting.
[0064] In some embodiments, in response to the user 105 initiating the template creation process, the application management platform 110 generates the document structure of the target template (e.g., the outline of the template) based on the template creation instruction obtained. Exemplarily, the target application 120 can determine the outline of the target template based on the template description information and template level information obtained, using a machine learning model (which can be, for example, a general language model or a trained outline generation model). For example, the template description information indicates that the generated target template is used for an industry analysis report, and the number of template levels in the template creation instruction is 2. The generated template outline includes at least industry background, industry status analysis, industry growth trend and other contents, and the template outline is divided into two levels. The number of levels of the outline in the template outline generated by the target application 120 is determined according to the user input. Exemplarily, the outline generation model can be a language model. The template creation instruction can be provided to the outline generation model in the form of a prompt word to generate a corresponding template outline. The outline can include one or more document parts (e.g., paragraphs or chapters of a document).
[0065] After the document structure of the target template is generated, the document structure is presented to the user 105 . Figure 3A schematic diagram of an example interface 300 for presenting a selected data source according to some embodiments of the present disclosure is shown. In the interface 300, the user 105 can view the document structure of the target template to further improve the user's participation in the template generation process. At the same time, the application management platform 110 can also obtain user feedback information on the document structure of the template to adjust the document structure of the template according to user expectations. In this way, the generated document structure can better meet user expectations and improve the quality of the target template. Exemplarily, the application management platform 110 can use the interface 300 to obtain user feedback information. Figure 3 As shown, the interface 300 includes a navigation area 310 and an editing area 320. In addition, the interface 300 also includes a "return" control for returning to the previous interface, a "template setting" control 330 for regenerating a target template, and a document preview control 340.
[0066] Navigation information about the document structure is presented in the navigation area 310. The user 105 can quickly view the document structure through the navigation information presented in the navigation area. Figure 3 As shown, navigation items corresponding to the respective document parts are presented in the navigation area 310, for example, the navigation item 330 corresponds to the document part "Industry Development Overview". The user 105 can change the document part presented in the editing area 320 by triggering (for example, clicking, etc.) the navigation area 310. Exemplarily, the application management platform presents the document part corresponding to the target navigation item in the editing area 320 in response to the user's triggering of the target navigation item in the navigation area. For example, the document part can be presented in the editing item of the document part.
[0067] The editing area 320 is used to obtain the interactive operation of the user 105 on the document structure, so as to adjust the document structure of the template according to the user's expectations. Figure 3 As shown, the editable items corresponding to one or more document parts included in the target template are presented in the edit area 320. The user 105 can configure the corresponding document part by interacting with the editable items in the edit area 320. If a user selects any editable item in the edit area 320 (for example, clicks on the editable item), one or more interface elements for the document part corresponding to the editable item are presented in the area corresponding to the editable item. For example, Figure 2 A modification configuration entry 321 for editing a document portion and a deletion control 322 for deleting the document portion are shown.
[0068] exist Figure 3In the example, the interface 300 includes interface elements (such as editable items, etc.) in the editing area for interacting with the user 105, and the user modifies the structure and configuration of the template through the interface elements. Alternatively or additionally, in some embodiments, the interface may include or be associated with a text or voice input portal. The text or voice input portal is used to receive text editing instructions or voice editing instructions provided by the user 105. The text editing instructions or voice editing instructions can be instructions in natural language form. The application management platform 110 responds to the instructions in natural language form provided by the user, and updates the configuration information of the document part based on the understanding of the natural language instructions.
[0069] In some embodiments, the user 105 may input an update instruction for a certain document part to the target application 120 through the editing area 320. The application management platform 110 updates the structural information of the template (such as text format, text level, etc.) according to the update instruction. For example, the user 105 inputs an update instruction indicating a change in the position of the target document part, and the application management platform 110 changes the position of the target document part according to the update instruction, thereby updating the target structural information.
[0070] For example, the user can change the position of the document part by dragging the editable item. Figure 3 Drag the section "Industry Industry Chain Analysis" to the bottom of the section "Industry Consumer Behavior Analysis" to change the structure information of the template. Users can change the level of the document part by clicking the editable item "Industry Industry Chain Analysis" and in the pop-up modification menu.
[0071] In some embodiments, the application management platform 110 determines the corresponding configuration information of the document parts included in the target template based on the interaction of the user 105 with the presented structural information. The interactive operation of the user 105 may include, for example, a selection operation (i.e., selecting any editable item) and an input operation (i.e., inputting into the interface 300). For the document information presented by the interface 300, the user 105 provides configuration instructions through the presented editing area 320. The application management platform 110 determines the configuration information corresponding to each document part based on the configuration instructions provided by the user. Exemplarily, for the first document part, the user 105 may provide configuration information to the application management platform 110 through the editable item corresponding to the first document part. The configuration information may include reference data sources corresponding to each document part, document description information, dependencies between multiple document parts, and the like.
[0072] Figure 4A FIG. 4 is a schematic diagram showing an example interface 400A for presenting a selected data source according to some embodiments of the present disclosure. Figure 4AAs shown, any editable item in the interface 400A has a corresponding modification configuration entry 321 and a delete control 322. For any editable item, its corresponding modification configuration entry 321 may be in a hidden state. In response to the user 105 selecting the editable item corresponding to the first document part in the editing area 320 (for example, clicking the editable item, or moving the cursor to the editable item, etc.), the modification configuration entry 321 corresponding to the editable item is presented in the interface 400A.
[0073] The application management platform 110 can present the data sources that have been configured for each document part to the user, so that the user 105 can determine the data source configuration status of the document and improve the efficiency of template creation. In some embodiments, the application management platform 110 presents the data source that has been configured for the target document part to the user 105 in response to the user 105's data source viewing request for the target document part. The data source configured for the target document part will be used to generate the content of the target document part. The target document part targeted by the data source viewing request can be any document part in the target template or the target template as a whole.
[0074] like Figure 4A As shown, a data source query control 323 is presented in the corresponding area of the editable item in the editing area 320. The icon of the data source query control 323 may include the identifier of the configured data source. The user 105 provides a data source query request to the application management platform 110 by interacting with the data source query control 323 (e.g., clicking operation, etc.). In response to the data source query request for the target document part, the application management platform 110 presents a data source display area 410 to the user. In the data source display area 410, different types of data sources can be presented in categories. For example, the data source display area 410 includes a first area 411 for presenting a knowledge base (e.g., a pet industry analysis knowledge base, a comprehensive market analysis knowledge base) and a data object specified by the user 105 (e.g., a document uploaded by the user 105) and a second area 412 for presenting a public data source (e.g., an Internet website link). Exemplarily, in the data source display area 410, a brief description of the data source can also be presented to facilitate the determination of the content of the configured data source.
[0075] In some embodiments, in order to facilitate user configuration, the application management platform 110 can display information of candidate knowledge bases including the target template to the user 105. The candidate knowledge bases can include knowledge bases to which the user set to which the user 105 belongs has access rights (for example, knowledge bases maintained by the organization to which the user 105 belongs). Further, based on the template creation requirements, knowledge bases related to the template creation requirements can be selected from all knowledge bases with access rights as candidate knowledge bases. The information of the presented candidate knowledge bases includes the identification of the candidate knowledge base, a summary description of the knowledge base, etc.
[0076] In some embodiments, the application management platform 110 can provide target creation services to multiple members within the organization. In order to ensure the security of internal data, different data access rights need to be provided to different members within the organization. For any member within organization A, some internal knowledge bases and internal knowledge about organization A in the application management platform 110 cannot be used as a reference data source for the target template. For example, if the member does not have access rights to knowledge base B, knowledge base B cannot be used as a reference data source for the target template created by the member. Therefore, upon receiving the knowledge configuration indication sent by user 105, the application management platform 110 first determines the data access rights of user 105. Based on the data access rights of user 105, determine the data and knowledge that can be applied to the template created by user 105. Subsequently, information including candidate knowledge bases that can be used for the target template is displayed to user 105 for user selection.
[0077] In some embodiments, the content description information generated by the machine learning model may not accurately reflect the user's expectations for the document portion. Therefore, the user 105 can adjust the content description information. The application management platform 110 can update the content description information based on the received user input for the content description information. Figure 4B FIG. 4 is a schematic diagram of an update interface 400B for content description information according to some embodiments of the present disclosure. Figure 4B As shown, the interface 400B includes a paragraph configuration area 420, a document preview control 340, an entry 421 for obtaining content description information of a document portion, a content generation control 422, and a dynamic generation control 423. The application management platform 110 can receive the content description information provided by the user 105 through the entry 421. Figure 4B As shown, the interface 400B may also include a preference setting control 424 and a data source configuration control 425. The preference setting control 424 is used to set the paragraph length and writing style in the document part configuration information. The data source configuration control 425 is used to receive the configuration instructions of the user 105 on the data source. Exemplarily, if the user 105 believes that the data source currently configured for the target document part is not comprehensive enough, the quality of the content of the target document part generated based on the currently configured data source is poor and cannot meet expectations. The user can send a data source configuration request to the application management platform 110 by interacting with the data source configuration control 425 (for example, clicking the data source configuration control 425) to update the data source configured for the target document part.
[0078] Exemplarily, the application management platform 110 may present an interface for acquiring data and knowledge to the user 105 in response to the data source configuration request sent by the user 105. The interface at least includes an entry for receiving data to acquire data uploaded by the user or a specified knowledge base. In some embodiments, the application management platform 110 may provide different interfaces for the user 105, respectively for receiving different types of data sources uploaded by the user 105. Figure 5 FIG. 5 is a schematic diagram of a knowledge base presentation interface 500 according to some embodiments of the present disclosure. The application management platform 110 may present a knowledge base selection interface to the user in response to the user 105 interacting with the data source configuration control 425. Figure 5 As shown, the interface 500 includes an entry 510 for specifying a data object, an entry 520 for adding skills in the target application 120, an entry 530 for configuring dependencies between different document parts, and an entry 540 for configuring data and knowledge (i.e., determining a target knowledge base for generating the content of the document part). The user 105 can configure the data source for the document part through different entries. Exemplarily, the application management platform 110 displays multiple candidate knowledge bases that can be used for the target template to the user 105 in the interface 500 (which is, for example, a panel) in response to the user's selection of the entry 540. The user 105 can select the candidate knowledge base as the target knowledge base through appropriate operations (e.g., checking the selection box before the candidate knowledge base). The application management platform 110 determines the target knowledge base based on the selection operation of the user 105. Accordingly, the configuration information of the first document part is determined based on the target knowledge base. That is, it is determined that the application management platform 110 will refer to the target knowledge base to generate the content of the first document part. In some embodiments, the application management platform 110 can also generate the target template based on other reference data sources.
[0079] Figure 6 FIG. 6 is a schematic diagram showing an entry interface 600 for a user to specify a data object according to some embodiments of the present disclosure. Figure 6 As shown, in response to the user's selection of the portal 510, an interface 600 (which may be, for example, a panel) including portals for specifying different types of data objects is presented to the user. In this example, the interface 600 includes a portal 610 for uploading a local file, a portal 620 for adding a uniform resource locator (URL), and a portal 630 for adding text. The user 105 can provide different types of local data to the application management platform 110 by operating different portals.
[0080] Figure 7 FIG. 7 is a schematic diagram showing an example interface 700 for skill selection according to some embodiments of the present disclosure. Figure 7As shown, in response to the user's selection of the entry 520, an interface 700 (which can be, for example, a panel) including entries for specifying different skills is presented to the user. The interface 700 presents options 710 to 750 for one or more skills created for the target application 120. The user 105 can select a skill through the interface 700. In this way, after the target template is published, the selected skill can be utilized in the process of the end user 145 using the target template to generate a document. In the case where the target template is created in the target application, the selectable skill can be a skill configured or created in the target application. Skills can also be called functions, which are configured to perform predetermined tasks.
[0081] In some embodiments, in order to ensure the logical coherence between multiple document parts in the template generated by the application management platform 110 and improve the document quality, the user 105 can configure the mutual dependence between different document parts. The dependency between different document parts includes an association relationship with one or more logics. For example, different document parts can be parallel, causal, or conditional. In the process of generating a document based on a template with a dependency relationship, a document part will be generated after its dependent document part is generated, and the content of its dependent document part will be used as reference material. For example, the user 105 can make the second document part dependent on the first document part through configuration information. In the process of generating a document using the template, the content of the first document part will be generated before the second document part. The content of the first document part will be used as a reference material source for the second document part. It can be understood that any document part may only depend on the preceding document part in the document structure.
[0082] In some embodiments, the main content of the document portion that the target document portion depends on (i.e., the dependent main content) will be used to generate the main content of the target document portion (i.e., the target main content). The type of dependency relationship between documents will affect the way the dependent main content is used in the target main content generation process. For example, if the target document portion and the dependent document portion are in a parallel relationship, the dependent main content will only be used as a reference, and the dependent main content will not appear in the target main content. If the target document portion and the dependent document portion are in a causal relationship, the dependent main content will be used as a data source for generating the target main content.
[0083] In some embodiments, a machine learning model can be used to generate target main content. Based on the main content and dependency relationship of the target document part, the application management platform 110 provides prompt information to the machine learning model to obtain the output of the machine learning model. Based on different types of dependency relationships between document parts, the application management platform can generate different types of prompt information to improve the quality of the output of the machine learning model. Exemplarily, if the target document part and the dependent document part are in a parallel relationship, the prompt information indicates that the model generates a target main content with a parallel relationship according to the dependent main content. If the target document part and the dependent document part are in a causal relationship, the prompt information indicates that the model generates a target main content with a causal relationship according to the dependent main content. Subsequently, based on the output of the machine learning model, the main content of the second document part is determined. In this way, it is ensured that the content of the dependent document part will be perceived by the target document part, avoiding the generation of repeated and inconsistent content in the document.
[0084] Figure 8 FIG. 8 is a schematic diagram showing an example interface 800 for configuring dependencies according to some embodiments of the present disclosure. Figure 8 As shown, the application management platform 110 responds to the relationship configuration indication of the user 105 for any document part, and presents options 810 to 840 about other document parts in the target template in the interface 800. The user 105 can determine the target document part on which the generation of the current document part will depend by operation (for example, checking the selection box before the target document part).
[0085] In order to further ensure that the generated template is used to generate a document, the generated document meets the expectations of the user 105, and content description information can be configured for each document part. The content description information indicates the generation requirements for the main content of the document part (i.e., user expectations). In some embodiments, the content description information can be generated based on the template creation instruction. Exemplarily, the content description information in the template creation instruction is provided to the machine learning model to generate the corresponding content description information. The content description information may include information such as the content, genre, and paragraph length of the document part. In some embodiments, the document generated based on the created target template may not meet the expectations of the user 105. Therefore, in order to improve the quality of the created target template, the application management platform 110 can support the creator of the template (e.g., user 105) to debug the configuration information of the template. For example, a preview document can be presented to the user based on the created target template to enable the user to more accurately evaluate whether the target template meets the expectations. In response to receiving the document preview information, the application management platform 110 presents the preview document to the user 105. The document preview information may include document generation requirements to indicate the user's expectations for the document to be generated. The document generation requirements may be information input by the user, or may be information generated based on the template creation instructions. In some embodiments, the document preview information may also include supplementary information used to generate the preview document, such as a data object specified by the user, text input by the user, and Internet public data. The application management platform 110 may generate a preview document in combination with the data source in the target template and the supplementary information indicated by the document preview information, so that the preview document better meets the user's expectations. In some embodiments, in order to facilitate the user 105 to input supplementary information, different types of supplementary information may be obtained using different interfaces.
[0086] Fig. 9A FIG. 1 is a schematic diagram showing an example of an entry interface 900A for receiving document preview information according to some embodiments of the present disclosure. Fig. 9A As shown, the interface 900A includes a document preview control 340 and an entry 910 for obtaining document preview information. In response to the user 105's selection of the document preview control, the application management platform 110 presents the entry 910 and corresponding navigation information to the user. The user 105 can provide the application management platform 110 with document preview information through interactive operations with the entry 910. In addition, the entry 910 also includes an entry 911 for obtaining text, an entry 912 for receiving a link (e.g., an Internet URL), an entry 913 for receiving a user-specified data object (e.g., a local document or an online document, etc.), and a document generation control 914. The user 105 can specify different types of supplementary materials through the entries 911 to 913, respectively.
[0087] In some embodiments, the data source currently configured for the target template may also be presented to the user, so that the user can understand the currently configured data source and improve document preview efficiency. Fig. 9B FIG. 1 is a schematic diagram showing another example of an entry interface 900B for receiving document preview information according to some embodiments of the present disclosure. Fig. 9B As shown, the data source that has been configured in the target template or the selected document part in the target template is presented to the user 105 in the data source presentation area 915. If the user 105 confirms that the information that needs to be supplemented does not appear in the data source presentation area 915, the supplementary information is provided to the application management platform 110 through the portal 910. Exemplarily, the data source presentation area can present the configured data source to the user 105 in the form of thumbnails.
[0088] When receiving the document preview information for the target template, the application management platform 110 starts the process of generating the preview document in response to the selection of the document generation control by the user 105. The application management platform 110 generates the corresponding preview document based on the received document preview information and the target template. Subsequently, the generated preview document is presented to the user so that the user can determine the difference between the target template and the expected one based on the preview document. Fig. 9C FIG. 1 is a schematic diagram showing an example of an interface 900C for presenting a preview document according to some embodiments of the present disclosure. Fig. 9C As shown, the application management platform 110 generates a preview document in response to the user 105 selecting the document generation control. Subsequently, the preview document is presented to the user 105 in the editing area 320 of the interface 900A. The preview document includes each document part of the target template and the content corresponding to each document part.
[0089] In some embodiments, if the generated preview document differs greatly from the user's expectations, the user 105 may update the configuration information corresponding to the target document portion in the target template, for example, updating the content description information corresponding to the target document portion or the data source on which the target document portion generates the content. Fig.9D FIG. 9 is a schematic diagram showing another example of an interface 900D for presenting a preview document according to some embodiments of the present disclosure. Fig.9DAs shown, in the interface 900D, a preview document is presented in the editing area 320. The application management platform 110 presents an entry 321 for modifying the configuration of the target document part, a delete control 322, and a data source query control 323 corresponding to each document part in the editing area 320 to obtain the user's update instruction for the target document part. In some embodiments, the application management platform 110 can present the entry 321 corresponding to each document part, and can also present the entry 321 corresponding to the selected document part in response to the user 105's selection of a certain document part. In some embodiments, the application management platform 110 can also present the configuration information corresponding to the document part for the user to view. Fig.9D As shown, in response to the selection of the target document part by the user 105, the data source on which the generated document part content depends is presented in the data source display area 410 corresponding to the target document part. In order to facilitate the user 105 to determine the quality of the updated template, the application management platform 110 can regenerate the preview document after the user 105 updates the configuration information. Thus, the quality of the target template is determined based on the regenerated preview document.
[0090] In some embodiments, if the user 105 does not perform an update operation on the configuration information of all document parts, or performs multiple update operations on the configuration information corresponding to a certain document part, the application management platform 110 needs to frequently generate the full text of the preview document, which brings inconvenience to the user 105. Therefore, in some embodiments, only the preview content corresponding to some document parts can be generated. Figure 4B As shown, the user 105 can also control the application management platform 110 to generate content corresponding to the document part through the content generation control 422 corresponding to the document part. The application management platform 110 presents the corresponding content in response to the preview instruction input by the user 105. The user 105 views the presented content and further modifies the configuration information of the document part based on the difference between the expectation of the document and the presented content. Subsequently, the content corresponding to the document part is generated again based on the modified configuration information.
[0091] In some embodiments, if the target template currently being created is far from what the user 105 expects, and more configuration information needs to be modified, it will affect the efficiency of the user in creating the target template. Therefore, the user 105 can abandon the current template and create a new target template. Exemplarily, the user 105 can select the template setting control 330 to send an instruction to recreate the target template to the application management platform 110. In response to the user's selection of the template setting control 330, the application management platform 110 presents the interface 200 to the user to reacquire the template creation instruction for creating the target template.
[0092] In some embodiments, if the created target template can meet the user's expectations, the user 105 can export the created target template through the export control. The exported template can be provided to other users in the organization so that the user can generate the corresponding target document through the template. For example, the exported template can be published in the target application for the end user of the target application to select and use.
[0093] In some embodiments, the application management platform 110 may support dynamic generation (also known as deep generation). Dynamic generation indicates that the title of the document part is dynamically generated during the document generation process. In the case of dynamic generation, the title of the document part is generated in real time based on the retrieved information. Figure 4B As shown, for a certain document part, the dynamic generation control 423 corresponding to the document part is turned on by the user 105. Accordingly, the application management platform 110 receives an instruction to enable dynamic generation for the document part, and uses this instruction as part of the configuration information of the document part. As a result, one or more sub-parts included in the document part will be dynamically determined during document generation. In other words, the sub-parts under the document part (for example, its title) will not be included in the target template. For example, which main products are under the first-level title of "Main Products" are related to the retrieval content of the document generation process, but are not in the template.
[0094] Example Process
[0095] Fig.10 1 is a flowchart showing an example process 1000 of a template creation method according to some embodiments of the present disclosure. The process 1000 may be implemented at the application management platform 110. Figure 1 To describe process 1000.
[0096] like Fig.10 As shown, in box 1010, the application management platform 110 receives a template creation instruction for a target template, where the target template is used for document generation.
[0097] In some embodiments, the template creation instruction includes at least one of the following: a template identifier of a target template, template description information for the target template, the template description information indicating generation requirements of the target template, one or more candidate knowledge bases for the target template, or a level of the target template.
[0098] In block 1020 , the application management platform 110 presents structural information of the target template, where the structural information indicates a document structure generated based on the template creation instruction.
[0099] In some embodiments, presenting the structural information of the target template includes presenting an editing region for the document structure, and wherein corresponding configuration information of the one or more document parts is determined based at least in part on editing instructions associated with the editing region.
[0100] In some embodiments, presenting the structural information of the target template also includes: presenting navigation information about the document structure, the navigation information including one or more navigation items corresponding to one or more document parts respectively; and in response to triggering a navigation item among the one or more navigation items, updating the editing area to present the document part corresponding to the triggered navigation item.
[0101] In some embodiments, the structural information is determined by: providing prompt information for document structure generation to a machine learning model based on a template creation indication to obtain an output of the machine learning model; and determining the structural information based on the output of the machine learning model.
[0102] In block 1030 , the application management platform 110 creates a target template based at least on corresponding configuration information of one or more document parts included in the target template.
[0103] In some embodiments, determining corresponding configuration information of one or more document parts includes: receiving a knowledge configuration indication for a first document part among the one or more document parts; in response to the knowledge configuration indication, presenting information about one or more candidate knowledge bases that can be used for a target template; and in response to selection of a target knowledge base among the one or more candidate knowledge bases, determining that generation of the first document part will refer to the target knowledge base as at least part of the configuration information of the first document part.
[0104] In some embodiments, determining corresponding configuration information of one or more document parts includes: receiving a relationship configuration indication for a second document part among the one or more document parts; presenting information about at least one document part among the one or more document parts in response to the relationship configuration indication; and determining that the second document part has a dependency relationship with the target document part as at least part of the configuration information of the second document part in response to selection of a target document part among the at least one document part.
[0105] In some embodiments, the main content of the second document part is generated in the following manner: in response to the configuration information of the second document part indicating that the second document part has a dependency relationship with the target document part, based on the main content and the dependency relationship of the target document part, providing prompt information to the machine learning model to obtain the output of the machine learning model; and determining the main content of the second document part based on the output of the machine learning model.
[0106] In some embodiments, the dependency relationship includes an association relationship having one or more logics.
[0107] In some embodiments, determining corresponding configuration information of one or more document parts includes: receiving a configuration editing indication for a third document part among the one or more document parts; in response to the configuration editing indication, presenting content description information for the third document part, the content description information indicating generation requirements for the main content of the third document part and being generated based on a template creation indication using a machine learning model; and updating the content description information as at least part of the configuration information of the third document part based on user input for the content description information.
[0108] In some embodiments, determining corresponding configuration information for one or more document parts includes: receiving an indication to enable dynamic generation for a fifth document part among the one or more document parts as part of the configuration information of the fifth document part, so that one or more sub-parts included in the fifth document part will be dynamically determined in the document generation.
[0109] In some embodiments, process 1000 also includes receiving document preview information for a target template, the document preview information indicating document generation requirements based on the target template; and based on the document preview information, presenting preview content generated using a machine learning model for one or more document parts.
[0110] In some embodiments, process 1000 further includes receiving a configuration update indication for a fourth document part in response to presentation of preview content of a fourth document part among the one or more document parts; and updating configuration information for the fourth document part based on the configuration update indication.
[0111] In some embodiments, process 1000 also includes receiving an interaction directed to the structural information; and determining corresponding configuration information for one or more document portions based on the interaction directed to the structural information.
[0112] In some embodiments, process 1000 further includes receiving an update indication for a sixth document part among the one or more document parts, the update indication indicating at least a change in the document structure of the sixth document part; and presenting updated structural information based on the update indication.
[0113] Example devices and equipment
[0114] The embodiments of the present disclosure also provide corresponding devices for implementing the above methods or processes. Fig.11A schematic structural block diagram of an example apparatus 1100 for template creation according to some embodiments of the present disclosure is shown. The apparatus 1100 may be implemented as or included in the application management platform 110. Each module / component in the apparatus 1100 may be implemented by hardware, software, firmware, or any combination thereof.
[0115] like Fig.11 As shown, the apparatus 1100 includes: a receiving module 1110, configured to receive a template creation instruction for a target template, the target template being used for document generation; a presenting module 1120, configured to present structural information of the target template, the structural information indicating a document structure generated based on the template creation instruction; and a creating module 1130, configured to create a target template based at least on corresponding configuration information of one or more document parts included in the target template.
[0116] In some embodiments, the presentation module 1120 is further configured to present an editing region for the document structure, and wherein the corresponding configuration information of the one or more document parts is determined at least in part based on the editing indication associated with the editing region.
[0117] In some embodiments, the presentation module 1120 is also configured to present navigation information about the document structure, the navigation information including one or more navigation items corresponding to the one or more document parts respectively; and in response to triggering a navigation item in the one or more navigation items, update the editing area to present the document part corresponding to the triggered navigation item.
[0118] In some embodiments, the presentation module 1120 is also configured to provide prompt information for document structure generation to the machine learning model based on the template creation indication to obtain the output of the machine learning model; and determine the structural information based on the output of the machine learning model.
[0119] In some embodiments, the creation module 1130 is also configured to receive a knowledge configuration indication for a first document part among the one or more document parts; in response to the knowledge configuration indication, present information about one or more candidate knowledge bases that can be used for the target template; and in response to selection of a target knowledge base among the one or more candidate knowledge bases, determine that generation of the first document part will refer to the target knowledge base as at least part of the configuration information of the first document part.
[0120] In some embodiments, the creation module 1130 is also configured to receive a relationship configuration indication for a second document part among the one or more document parts; in response to the relationship configuration indication, present information about at least one document part among the one or more document parts; and in response to selection of a target document part among the at least one document part, determine that the second document part has a dependency relationship with the target document part as at least part of the configuration information of the second document part.
[0121] In some embodiments, the creation module 1130 is also configured to provide prompt information to the machine learning model in response to the configuration information of the second document part indicating that the second document part has a dependency relationship with the target document part, based on the main content of the target document part and the dependency relationship, so as to obtain the output of the machine learning model; and determine the main content of the second document part based on the output of the machine learning model.
[0122] In some embodiments, the creation module 1130 is also configured to receive a configuration editing indication for a third document part among the one or more document parts; in response to the configuration editing indication, present content description information for the third document part, the content description information indicating generation requirements for the main content of the third document part and being generated based on the template creation indication using a machine learning model; and based on user input for the content description information, update the content description information as at least part of the configuration information of the third document part.
[0123] In some embodiments, the creation module 1130 is also configured to receive an indication to enable dynamic generation for a fifth document part among the one or more document parts as part of the configuration information of the fifth document part, so that one or more sub-parts included in the fifth document part will be dynamically determined during document generation.
[0124] In some embodiments, device 1100 also includes a preview content presentation module, which is configured to receive document preview information for the target template, the document preview information indicating document generation requirements based on the target template; and based on the document preview information, present preview content generated respectively for the one or more document parts using a machine learning model.
[0125] In some embodiments, device 1100 also includes a configuration information update module, which is configured to receive a configuration update indication for a fourth document part among the one or more document parts in response to the presentation of preview content of the fourth document part; and update the configuration information for the fourth document part based on the configuration update indication.
[0126] In some embodiments, the apparatus 1100 further comprises a configuration information determination module configured to receive an interaction with respect to the structural information; and determine corresponding configuration information of the one or more document parts based on the interaction with respect to the structural information.
[0127] In some embodiments, device 1100 also includes a structural information determination module, configured to receive an update indication for a sixth document part among the one or more document parts, the update indication at least indicating a change in the document structure of the sixth document part; and based on the update indication, present the updated structural information.
[0128] Fig.12 A block diagram of an electronic device capable of implementing multiple embodiments of the present disclosure is shown. Fig.12 As shown, the electronic device 1200 is in the form of a general electronic device. The components of the electronic device 1200 may include, but are not limited to, one or more processors or processing units 1210, a memory 1220, a storage device 1230, one or more communication units 1240, one or more input devices 1250, and one or more output devices 1260. The processing unit 1210 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 1220. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the electronic device 1200.
[0129] The electronic device 1200 typically includes a plurality of computer storage media. Such media may be any accessible media accessible to the electronic device 1200, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 1220 may be a volatile memory (e.g., a register, a cache, a random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 1230 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data and may be accessed within the electronic device 1200.
[0130] The electronic device 1200 may further include additional removable / non-removable, volatile / non-volatile storage media. Fig.12As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. Memory 1220 may include a computer program product 1225 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.
[0131] The communication unit 1240 implements communication with other electronic devices through a communication medium. Additionally, the functions of the components of the electronic device 1200 can be implemented in a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 1200 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
[0132] The input device 1250 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 1260 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 1200 may also communicate with one or more external devices (not shown) through the communication unit 1240 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 1200, or communicate with any device that allows the electronic device 1200 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).
[0133] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.
[0134] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0135] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0136] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0137] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.
[0138] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.
Claims
1. A template creation method, comprising: receiving a template creation instruction for a target template, wherein the target template is used for document generation; Presenting structural information of the target template, the structural information indicating a document structure generated based on the template creation instruction; as well as The target template is created based at least on corresponding configuration information of one or more document parts included in the target template.
2. The method according to claim 1, further comprising: receiving an interaction for the structural information; as well as Based on the interaction with the structural information, corresponding configuration information of the one or more document parts is determined.
3. The method according to claim 1, wherein presenting the structural information of the target template comprises: An editing region for the document structure is presented, and wherein corresponding configuration information of the one or more document parts is determined based at least in part on editing instructions associated with the editing region.
4. The method according to claim 3, wherein presenting the structural information of the target template further comprises: Presenting navigation information about the document structure, the navigation information comprising one or more navigation items corresponding to the one or more document parts respectively; as well as In response to triggering a navigation item among the one or more navigation items, the editing area is updated to present a document portion corresponding to the triggered navigation item.
5. The method of claim 1 , wherein determining corresponding configuration information of the one or more document parts comprises: receiving a knowledge configuration indication for a first document portion of the one or more document portions; In response to the knowledge configuration indication, presenting information about one or more candidate knowledge bases that can be used for the target template; as well as In response to the selection of a target knowledge base among the one or more candidate knowledge bases, it is determined that the generation of the first document part will refer to the target knowledge base as at least a part of the configuration information of the first document part.
6. The method of claim 1, wherein determining corresponding configuration information of the one or more document parts comprises: receiving a relationship configuration indication for a second document part of the one or more document parts; In response to the relationship configuration indication, presenting information about at least one of the one or more document parts; as well as In response to selection of a target document part among the at least one document part, determining that the second document part has a dependency relationship with the target document part is performed as at least a part of configuration information of the second document part.
7. The method according to claim 6, wherein the main content of the second document part is generated by: In response to the configuration information of the second document part indicating that the second document part has a dependency relationship with the target document part, providing prompt information to the machine learning model based on the main content of the target document part and the dependency relationship to obtain an output of the machine learning model; and Based on the output of the machine learning model, determine the main content of the second document part. The method according to claim 6 , wherein the dependency relationship comprises an association relationship having one or more logics.
9. The method of claim 1, wherein determining corresponding configuration information of the one or more document parts comprises: receiving a configuration edit indication for a third document part of the one or more document parts; In response to the configuration editing instruction, presenting content description information for the third document part, the content description information indicating generation requirements for the main content of the third document part and being generated based on the template creation instruction using a machine learning model; as well as Based on user input for the content description information, the content description information is updated as at least a part of configuration information of the third document part.
10. The method according to claim 1, further comprising: receiving document preview information for the target template, the document preview information indicating a document generation requirement based on the target template; as well as Based on the document preview information, preview contents generated respectively for the one or more document parts using a machine learning model are presented.
11. The method according to claim 10, further comprising: In response to presentation of preview content of a fourth document part among the one or more document parts, receiving a configuration update indication for the fourth document part; as well as Based on the configuration update indication, the configuration information for the fourth document part is updated.
12. The method of claim 1, wherein determining corresponding configuration information of the one or more document parts comprises: An indication of enabling dynamic generation for a fifth document part of the one or more document parts is received as part of configuration information of the fifth document part, so that one or more sub-parts included in the fifth document part are dynamically determined in document generation.
13. The method according to claim 1, wherein the template creation instruction comprises at least one of the following: a template identifier of the target template, template description information for the target template, the template description information indicating generation requirements for the target template, one or more candidate knowledge bases for the target template, or The level of the target template.
14. The method according to claim 1, further comprising: receiving an update indication for a sixth document part among the one or more document parts, the update indication at least indicating a change of the sixth document part in the document structure; as well as Based on the update indication, the updated structure information is presented.
15. The method according to claim 1, wherein the structural information is determined by: Based on the template creation instruction, providing prompt information for document structure generation to the machine learning model to obtain an output of the machine learning model; and Based on an output of the machine learning model, the structural information is determined.
16. A device for template creation, comprising: A receiving module, configured to receive a template creation instruction for a target template, wherein the target template is used for document generation; A presentation module, configured to present structural information of the target template, wherein the structural information indicates a document structure generated based on the template creation instruction; as well as The creation module is configured to create the target template based at least on corresponding configuration information of one or more document parts included in the target template.
17. An electronic device comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 15 when executed by the at least one processing unit.
18. A computer-readable storage medium having a computer program stored thereon, wherein the computer program can be executed by a processor to implement the method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Automatic template generation based on previous documents
CN108369578A
Document template generation method and device
CN110738035A
Cross-document smart writing and processing assistant
CN114616572A
Document verification method and device, equipment and storage medium
CN115238661A
Document processing method, computer equipment and storage medium
CN115935915A