Document generation method and device, electronic equipment and storage medium
By displaying document generation guidance information when the user opens a blank document and generating documents based on the user's selection operations, the problem of cumbersome process of users generating documents online on the network disk is solved, and faster and more efficient document generation is achieved.
Patent Information
- Application Number
- CN202411865453.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-25
Smart Images

Figure CN119886051A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to the field of data processing technology. Background Art
[0002] The client can provide users with a variety of rich functions. Taking the client that provides network disk service (referred to as network disk) as an example, users can store documents and read documents in the network disk. In addition, users can also generate the documents they need online in the network disk.
[0003] Currently, when a user generates a document that the user needs online in a network disk, the user first needs to create a blank document, and then input the document content in the blank document to generate the document. Summary of the invention
[0004] The present disclosure provides a document generation method, device, electronic device and storage medium.
[0005] According to one aspect of the present disclosure, there is provided a document generation method, comprising:
[0006] In response to opening the created blank document, displaying document generation guide information, wherein the document generation guide information includes: document content guide items and / or document framework guide items;
[0007] The document is generated based on the guide item selected in the displayed document generation guide information by the user's guide item selection operation.
[0008] According to another aspect of the present disclosure, there is provided a document generating device, comprising:
[0009] A guide information display module, used for displaying document generation guide information in response to opening the created blank document, wherein the document generation guide information includes: document content guide items and / or document framework guide items;
[0010] The document generation module is used to generate a document based on the guidance item selected by the user in the displayed document generation guidance information through the guidance item selection operation.
[0011] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0012] at least one processor; and
[0013] a memory communicatively connected to the at least one processor; wherein,
[0014] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the document generation method.
[0015] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the above document generation method.
[0016] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program implements the above document generation method when executed by a processor.
[0017] As can be seen from the above, by displaying document generation guide information in the interface when the user opens the created blank document, the user can be guided to perform guide item selection operations. The user does not need to enter the document content in the blank document. Instead, the document is generated based on the guide items selected in the displayed document generation guide information by the user's guide item selection operation. This simplifies the user's operation, reduces the difficulty of user use, and allows users to generate documents more quickly and efficiently, thereby improving document generation efficiency.
[0018] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it 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
[0019] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0020] Figure 1 It is a flowchart of a document generation method provided by an embodiment of the present disclosure;
[0021] Figure 2a It is a flowchart of a method for obtaining a document framework guide item provided by an embodiment of the present disclosure;
[0022] Figure 2b is a schematic diagram of a document framework provided by an embodiment of the present disclosure;
[0023] Figure 3 is a structural schematic diagram of a document generation device provided by an embodiment of the present disclosure;
[0024] Figure 4 The block diagram is a block diagram of an electronic device used to implement the document generation method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0026] The following is a description of the execution subject of the embodiment of the present disclosure.
[0027] The solution provided by the embodiment of the present disclosure can be applied to electronic devices such as desktop computers, laptops, tablet computers, servers, etc. For example, it can be applied to a server that provides network disk services to users. For ease of description, the execution subject of the document generation method provided by the embodiment of the present disclosure is collectively referred to as a document generation platform.
[0028] The solution provided by the embodiment of the present disclosure is described in detail below.
[0029] In one embodiment of the present disclosure, see Figure 1 A flowchart of a document generation method is provided, the method comprising the following steps S101-S102.
[0030] Step S101: in response to opening the created blank document, presenting document generation guidance information.
[0031] The document generation guidance information includes: document content guidance items and / or document framework guidance items. The document generation guidance information is information that instructs the user to generate a document. The document generation guidance information can be displayed on an interactive interface to guide the user to select a guidance item. The document content guidance item is a guidance item used to guide the user to generate document content. The document framework guidance item is a guidance item used to guide the user to generate a document framework.
[0032] The following describes how to open a created blank document.
[0033] In one case, a user creates a blank document using a document generation platform, and then when the user opens the blank document, the created blank document is opened.
[0034] In another case, in the document generation platform, after the user opens the blank document, the user can use other functions of the document generation platform, then the opened blank document will be placed in the background, and when the user uses the blank document again after using other functions, it can also be regarded as opening the created blank document. For example, after the user creates a blank document and opens the blank document, the user uses the video playback function of the document generation platform, when the user uses the opened blank document again, the document generation platform can respond to opening the created blank document and display document generation guidance information.
[0035] The following describes the method of generating guide information for display documents.
[0036] Specifically, after the blank document is opened, an editable blank document will be displayed in the interactive interface. In a preset area in the interactive interface, the document generation platform can display document generation guidance information in a layer above the layer where the blank document is located.
[0037] The detailed content of the displayed document generation guidance information is described in the following embodiments and will not be described in detail here.
[0038] Step S102: Generate a document based on the guide item selected in the displayed document generation guide information by the user's guide item selection operation.
[0039] After seeing the document generation guide information, the user will perform a guide item selection operation for the document generation guide information. For different document generation guide information, the guide item selection operation performed by the user selects different guides in the displayed document generation guide information, and the document generation platform generates documents in different ways. The document generation platform generates documents in a manner described in the following embodiments and will not be described in detail here.
[0040] As can be seen from the above, by displaying document generation guide information in the interface when the user opens the created blank document, the user can be guided to perform guide item selection operations. The user does not need to enter the document content in the blank document. Instead, the document is generated based on the guide items selected in the displayed document generation guide information by the user's guide item selection operation. This simplifies the user's operation, reduces the difficulty of user use, and allows users to generate documents more quickly and efficiently, thereby improving document generation efficiency.
[0041] In one embodiment of the present disclosure, see Figure 2a A flowchart of a method for obtaining a document framework guide item is provided, the method comprising the following steps S201-S203. When the document generation guide information includes a document framework guide item, the document generation platform can obtain the document framework guide item according to the following steps S201-S203.
[0042] Step S201: Determine the suspected category of the blank document.
[0043] The suspected classification is the document category predicted by the document generation platform based on the category of the document required by the user, and the suspected classification includes the document category of the document that the user may require. The document category may include: composition, speech, book review, meeting minutes, work summary, course notes, reading notes, exam preparation plan, daily notes, etc. Similarly, the determined suspected classification may also include at least one of the above document categories.
[0044] The following is an explanation of the method of determining the suspected classification in step S201.
[0045] The document generation platform may determine the suspected classification of the blank document based on at least one of the following information 1 to information 5:
[0046] Information 1: Title of blank document
[0047] Information 2: Storage path of blank documents
[0048] When a user names a blank document, the category and purpose of the document that the user ultimately needs to generate will be taken into consideration. The title of the blank document may include information about the category of the blank document required by the user. Similarly, in the storage path where the blank document created by the user is located, the user may also generally use a folder name related to the category and purpose of the file in the storage path. The storage path of the blank document may also include information about the category of the blank document required by the user. For example, the user may use keywords such as "work", "study", "notes" and "graduate entrance examination". The document generation platform can perform semantic analysis on the title and / or storage path of the blank document created by the user, and determine the document category of the blank document based on the results of the semantic analysis. For example, semantic analysis can be used to determine whether the above-mentioned title and / or storage path includes preset keywords, and then the document category corresponding to the keyword is determined based on the keywords included in the title and / or storage path as a suspected classification.
[0049] Information 3: User profile of the creator of the blank document
[0050] According to the life stage of the user in the user portrait, the document categories corresponding to different life stages can be set. Then, according to the life stage of the user in the creator's user portrait, the document generation platform can determine the document category corresponding to the user's life stage as the document category of the document required by the user, as the suspected classification of the blank document. For example, for users in the student stage, the document categories such as essays, course notes, reading notes, and exam preparation plans can be determined as the suspected classification of blank documents. For users in the working stage, the document categories such as meeting minutes and work summaries can be determined as the suspected classification of blank documents.
[0051] Information 4: Classification of the creator's historical creation documents
[0052] The document category that is the same as the category of the document that the creator has created in the past can be determined as the suspected category of the blank document. In this way, the situation where the creator creates multiple documents of the same document category can be considered.
[0053] Information 5: Files browsed by the creator historically
[0054] The blank document may be what the creator wants to create after reading an article or watching a course. Based on the file classification of the creator's historical browsing, the classification of the files browsed by the creator can be analyzed, and the suspected category of the blank document created by the creator can be determined according to the classification of the determined files. For example, the classification of the files browsed by the creator may include: course teaching files, meeting record files, and life record files.
[0055] When the document generation platform uses the above-mentioned multiple information to determine the suspected classification of the blank document, weights can be set for different information. For each type of information, the weight of the suspected classification of the blank document determined using the information is determined. For the same suspected classification, the weights determined for the suspected classification are summed up, and a preset number of suspected classifications with weights from high to low are determined as the final suspected classification of the blank document.
[0056] Among them, the above-mentioned user personal information is obtained with the user's consent.
[0057] In this way, combining the above information to determine the suspected classification of the blank document can more accurately determine the document classification of the document to be generated, so that the guidance items in the document framework guidance items are more in line with user needs, allowing users to quickly select guidance items, thereby improving the efficiency of users using the document generation platform to generate documents.
[0058] Step S202: Select a document frame that matches the determined suspected classification from existing document frames.
[0059] Among them, the number of document frameworks selected from the existing document frameworks can be multiple, and if the suspected classifications obtained in step S201 include multiple, and the multiple suspected classifications are sorted from high to low according to the weights, then the document generation can sort the document frameworks matching the suspected classifications from high to low according to the weights of the suspected classifications, and display the document framework guide items according to the sorting of the document frameworks.
[0060] The following is an explanation of the method of selecting the document frame in step S202.
[0061] In one implementation, a document category label corresponding to the document framework may be set in the existing document framework, and the document generation platform may determine an existing document framework having a document category label identical to the suspected classification as a document framework matching the determined suspected classification.
[0062] In another implementation, a document category label corresponding to the document framework can be set in the existing document framework, and the document generation platform can calculate the similarity between the document category label and the suspected classification, and determine the existing document framework to which the document category label whose similarity threshold is greater than a preset threshold belongs, as the document framework that matches the determined suspected classification.
[0063] In another implementation, the document generation platform may perform semantic analysis on text information included in an existing document framework, obtain the document category to which the document framework belongs, and determine a document framework of the same document category as the suspected category as the document framework that matches the determined suspected category.
[0064] Step S203: Based on the information of the selected document frame, a document frame guide item is obtained.
[0065] The information of the document framework may include the name of the document framework, a structural diagram of the document framework, and unit names of each unit in the document framework.
[0066] The document generation platform can generate a document frame thumbnail including the document frame name, the structure diagram of the document frame, and the unit names of each unit in the document frame according to the information of the above document frame as a document frame guide item. For example, the document frame guide items displayed in the interactive interface may include four different document frame guide items, such as the frame names displayed in the four document frame guide items displayed in thumbnail form are: document frame name A, document frame name B, document frame name C, and document frame name D, and the structure diagram of the document frame is displayed in the document frame guide item in thumbnail form. Furthermore, the unit names of each unit in the document frame can also be displayed in the thumbnail.
[0067] From the above, it can be seen that by determining the suspected classification of the blank document that the user wants to generate, a matching document framework including the document category that the user is more likely to need can be displayed to the user, thereby enabling the user to more easily and quickly select the guidance item according to the document framework guidance item, thereby improving the user's usage experience.
[0068] In another embodiment of the present disclosure, the method of generating the document in step S102 can be implemented according to the following steps A and B:
[0069] Step A: Obtain the document content of each document unit in the target document framework indicated by the target guide item.
[0070] The target guidance item is: the guidance item selected by the user in the guidance item selection operation in the guidance information generated by the displayed document.
[0071] In one implementation, the document generation platform can obtain the content input by the user in each document unit in the target document frame as the document content of each document unit. In this case, the document generation platform can display the document frame corresponding to the guide item selected in the displayed document generation guide information according to the user's guide item selection operation. Then the user inputs the content of each document unit according to the document frame displayed in the interactive interface.
[0072] For example, if the displayed document frame guide items include guide items corresponding to document frame name A, document frame name B, document frame name C, and document frame name D, if the user selects the document frame guide item named "document frame name B", then "document frame name B" is the target document frame, and the document contents of each document unit are laid out according to the layout method of each document unit indicated by "document frame name B". The user interface may display the following: Figure 2b The document framework shown in the figure includes the names of the document units, namely, the examination outline, chapter knowledge, chapter one, chapter two and high-frequency examination points. In each document unit, such as "record the examination outline and examination scope of this examination, and clarify the direction of examination review", "record the relevant knowledge points of each chapter content to achieve full coverage without omission", "XXXXX" and "summarize and record the frequently tested knowledge points in the learning process to facilitate multiple memorization and deepen the impression" are all input guides to guide users to enter the content of each document unit.
[0073] Other implementations of step A are described in the following embodiments and will not be described in detail here.
[0074] Step B: Generate a document in which the document content of each document unit is laid out according to the target document layout mode.
[0075] The target document layout mode is: the layout mode of each document unit indicated by the target document frame. For example, if the target document frame is "document frame name B", the document content of each document unit obtained by laying out the target document layout mode of each document unit indicated by "document frame name B" can be referred to Figure 2b A schematic diagram of the document framework is provided.
[0076] Specifically, the document generation platform may generate, for each document unit, the obtained content belonging to the document unit in the document unit.
[0077] As can be seen from the above, by generating a document according to the target document framework indicated by the guide item selected in the displayed document generation guide information in the user's guide item selection operation, a document that meets the user's needs can be generated, thereby improving the user's usage experience.
[0078] The following describes the implementation method of obtaining the document content of each document unit in step A.
[0079] Method 1
[0080] Follow the steps A1-A2 below to obtain the document content of each document unit:
[0081] Step A1: Get document reference files.
[0082] The document reference file may be a file of a preset file type, for example, a video file, a picture, an e-book file, or other documents.
[0083] In one implementation, the file recommendation information is displayed, and the file selected from the file recommendation information by the user's file selection operation is determined to be a document reference file.
[0084] In one case, the user can click the "Import File" button, and the document generation platform responds to the click operation of the Import File button by displaying a file recommendation information display box. The file recommendation information display box can display the file name of each file, such as file A, file B, file C, file D, and file F, and display the icon corresponding to each file. The user can click the "Select" button in the file recommendation information display box to select a file from the file recommendation information. In this way, the document generation platform can determine that the file selected by the user's file selection operation from the file recommendation information is a document reference file. For example, if the user's file selection operation selects file A, file A is used as the document reference file.
[0085] In another case, the document generation platform can directly display a file recommendation information display box when the user performs a guide item selection operation so that the user can perform a file selection operation and select a file from the file recommendation information as a document reference file.
[0086] The file recommendation information includes information about at least one of the following files: files included in the folder where the blank document is located, files most recently browsed by the creator of the blank document, and files displayed on the page where the control that triggers the generation of the blank document is located.
[0087] When the information of the files included in the folder where the created blank document is located is used as the file recommendation information, it is in line with the habit of creating documents. The creator of the blank document will need to create the required document after browsing the files or in the process of browsing the files. In this way, the files displayed on the page where the control that triggers the generation of the blank document is located and the files that were browsed most recently are more in line with the user's document creation needs. Further, based on the above-mentioned types of files, when determining the files corresponding to the file recommendation information, files of preset file types and / or files whose file names include keywords of categories can be selected.
[0088] For example, when a user is viewing a file displayed by a document generation platform, the document generation platform may display a file menu around the displayed file, including a "document generation" control. After the user clicks "document generation", the document generation platform may pop up file recommendation information including "Do you want to use this file to generate a document?" and display "Yes" and "No" buttons. If the user clicks the "Yes" button, the document generation platform determines that the file displayed on the page where the control that triggers the generation of a blank document is located is a document reference file.
[0089] In this way, by making recommendations based on the information of the above types of files, the accuracy of recommending to the user possible reference files for the generated document required by the user can be improved, and the accuracy of obtaining document reference files can be improved.
[0090] In another implementation, a file selection interface is displayed, and a file under a file path input by a user in the file selection interface is determined as a document reference file.
[0091] The user can input the file path in the file selection interface to determine the document reference file, or browse and click into the folder in the file selection interface to select the file the user needs to determine the document reference file.
[0092] In yet another implementation, the user may upload a document reference file to the document generation platform.
[0093] In this way, document reference files to be selected can be recommended to users. Document reference files can be obtained based on the user's file selection operation. Possible reference files for the document to be generated can be recommended to users, thereby improving the efficiency of users in selecting document reference files, thereby improving the convenience of users generating documents using the document generation platform and improving document generation efficiency.
[0094] Step A2: Analyze the document reference file according to the subject of the document unit in the target document framework indicated by the target guide item to obtain the document content of the document unit.
[0095] In one implementation, the document generation platform may use semantic classification analysis to semantically classify the semantics in the reference document to obtain document content corresponding to the document units of each topic in the target document framework.
[0096] In another implementation, the document generation platform can extract text information from the document reference file, input the text information into the classification model, and obtain the document content corresponding to the document units of each topic in the target document framework obtained by classifying the text information of the document reference file by the classification model.
[0097] From the above, it can be seen that by obtaining a document reference file to generate the content of each document unit in the document framework, the user does not need to input the document content from scratch, which can simplify the difficulty of the user inputting the document content, improve the convenience of the user using the document generation platform to generate documents, and improve the efficiency of document generation.
[0098] Method 2
[0099] Follow the steps A3-A4 below to obtain the document content of each document unit:
[0100] Step A3: Displaying each document unit in the target document frame indicated by the target guide item in the blank document.
[0101] For example, if the target guide item selected by the user is "document frame name B", then the document units in the target document frame indicated by the target guide item are displayed in the blank document. Figure 2b .
[0102] Step A4: Obtain document content generated according to the information input by the user in each document unit.
[0103] In one implementation, for each document unit, a first prompt input interface is displayed in the document unit, and document content generated by the content generation large language model based on the first prompt is obtained.
[0104] The first prompt is: generating a prompt based on information input by the user in the first prompt input interface.
[0105] For example, Figure 2bTaking the document units in the target document framework shown as an example, for the document unit named "Exam Outline", a first prompt input interface including sample prompts such as "I am a", "Help me write an exam review outline, the exam content is", can be displayed in the document unit, and a blank editable information input box is displayed on the first prompt input interface between "I am a", "Help me write an exam review outline, the exam content is", and an editable information input box is displayed after "Help me write an exam review outline, the exam content is", and users can enter information in the editable information input box of the first prompt input interface according to the above sample prompts. After the user completes the information input, he can click the "Confirm" button in the first prompt input interface, so that the document generation platform obtains the first prompt. Then, the content generation large language model is used to generate the document content based on the first prompt obtained above.
[0106] In this way, users can be guided to use the content generation large language model to generate the content in the document unit, simplifying the difficulty of users inputting document content and improving the efficiency of document generation.
[0107] In another implementation, the user can directly input document content in each document unit. For details, please refer to the description of step A above, which will not be described in detail here.
[0108] From the above, it can be seen that by guiding users to input information in each document unit in the target document framework indicated by the target guide item to generate document content, the difficulty of users entering document content can be simplified, the convenience of users using the document generation platform to generate documents can be improved, and the document generation efficiency can be improved.
[0109] The implementation method of generating the document in step S102 is described below.
[0110] In one implementation, if the target guidance item is a document content guidance item, a second prompt input interface is displayed, and a document generated by the document generation large language model based on the second prompt is obtained.
[0111] The target guidance item is: the guidance item selected by the user in the guidance information generated by the displayed document through the guidance item selection operation. The second prompt is: the prompt is generated based on the information input by the user in the second prompt input interface.
[0112] Among them, the document content guidance item can be a guidance item for guiding the user to determine the document category of the blank document. For example, the document content guidance item includes a "composition" guidance item, a "speech" guidance item, a "reading experience" guidance item, a "meeting minutes" guidance item, a "work summary" guidance item, a "course notes" guidance item, a "reading notes" guidance item, a "test preparation plan" guidance item, and a "daily notes" guidance item. The above guidance items can be displayed in the interactive interface in the form of buttons. After the user clicks the button corresponding to the guidance item, the document generation platform can obtain the user's guidance item selection operation.
[0113] When the user selects composition in the guided item selection operation, the document generation platform can display a second prompt input interface, then obtain the second prompt input by the user, and use the document generation large language model to generate a document based on the second prompt, and obtain the above document after the document generation large language model generates the document.
[0114] In this way, users can be guided to use the document generation large language model to generate documents for blank documents, simplifying the operation of users generating document content, reducing the difficulty of user use, allowing users to generate documents more quickly and efficiently, and improving document generation efficiency.
[0115] Furthermore, the second prompt input interface displays a sample prompt corresponding to the target guidance item. The information input by the user in the second prompt input interface includes: editable information in the sample prompt.
[0116] For example, the second prompt input interface may include sample prompts such as "I am a", "Occupation: such as college student", "Help me write one", "Style: such as argumentative essay", "Theme is" and "Enter the title of the composition". An editable information input box may be displayed between "I am a" and "Help me write one", and for the editable information input box, a sample prompt such as "Occupation: such as college student" may be displayed around the editable information input box or in the editable information input box to prompt the user of the sample of the information entered in the editable information input box. Similarly, an editable information input box may be displayed between "Help me write one" and "Theme is", and for the editable information input box, a sample prompt such as "Style: such as argumentative essay" may be displayed around the editable information input box or in the editable information input box. An editable information input box may be displayed after "Theme is", and for the editable information input box, a sample prompt such as "Enter the title of the composition" may be displayed around the editable information input box or in the editable information input box. The user can enter the editable information in the sample prompt in the editable information input box of the second prompt input interface. After the user completes the input, he can click the confirmation button. In this way, the document generation platform can obtain the second prompt and obtain the document generated by the document generation large language model based on the second prompt.
[0117] In this way, sample prompts can more accurately guide users to generate document content, thereby improving document generation efficiency.
[0118] Corresponding to the above-mentioned document generation method, the embodiment of the present disclosure also provides a document generation device.
[0119] In one embodiment of the present disclosure, see Figure 3 A schematic diagram of the structure of a document generation device is provided, the device comprising:
[0120] A guide information display module 301 is used to display document generation guide information in response to opening the created blank document, wherein the document generation guide information includes: document content guide items and / or document framework guide items;
[0121] The document generation module 302 is used to generate a document based on the guidance item selected by the user in the displayed document generation guidance information through the guidance item selection operation.
[0122] As can be seen from the above, by displaying document generation guide information in the interface when the user opens the created blank document, the user can be guided to perform guide item selection operations. The user does not need to enter the document content in the blank document. Instead, the document is generated based on the guide items selected in the displayed document generation guide information by the user's guide item selection operation. This simplifies the user's operation, reduces the difficulty of user use, and allows users to generate documents more quickly and efficiently, thereby improving document generation efficiency.
[0123] In one embodiment of the present disclosure, the document framework guide item is obtained in the following manner:
[0124] determining a suspected classification of the blank document;
[0125] Selecting a document frame that matches the determined suspected classification from the existing document frames;
[0126] Based on the information of the selected document frame, a document frame guide item is obtained.
[0127] From the above, it can be seen that by determining the suspected classification of the blank document that the user wants to generate, a matching document framework including the document category that the user is more likely to need can be displayed to the user, thereby enabling the user to more easily and quickly select the guidance item according to the document framework guidance item, thereby improving the user's usage experience.
[0128] In one embodiment of the present disclosure, determining the suspected classification of the blank document includes:
[0129] Determine the suspected classification of the blank document according to at least one of the following information:
[0130] The title of the blank document;
[0131] The storage path of the blank document;
[0132] A user profile of the creator of the blank document;
[0133] Classification of the documents historically created by the creator;
[0134] The creator's historical browsing history.
[0135] In this way, combining the above information to determine the suspected classification of the blank document can more accurately determine the document classification of the document to be generated, so that the guidance items in the document framework guidance items are more in line with user needs, allowing users to quickly select guidance items, thereby improving the efficiency of users using the document generation platform to generate documents.
[0136] In one embodiment of the present disclosure, the document generation module is specifically used to obtain the document content of each document unit in the target document framework indicated by the target guide item, wherein the target guide item is: the guide item selected by the user's guide item selection operation in the displayed document generation guide information; generate a document in which the document content of each document unit is laid out according to the target document layout method, wherein the target document layout method is: the layout method of each document unit indicated by the target document framework.
[0137] As can be seen from the above, by generating a document according to the target document framework indicated by the guide item selected in the displayed document generation guide information in the user's guide item selection operation, a document that meets the user's needs can be generated, thereby improving the user's usage experience.
[0138] In one embodiment of the present disclosure, the document generation module is specifically used to obtain a document reference file; analyze the document reference file according to the subject of the document unit in the target document framework indicated by the target guide item to obtain the document content of the document unit.
[0139] From the above, it can be seen that by obtaining a document reference file to generate the content of each document unit in the document framework, the user does not need to input the document content from scratch, which can simplify the difficulty of the user inputting the document content, improve the convenience of the user using the document generation platform to generate documents, and improve the efficiency of document generation.
[0140] In one embodiment of the present disclosure, the document generation module is specifically used to display file recommendation information, determine that the file selected from the file recommendation information by the user's file selection operation is a document reference file; or display a file selection interface, and determine the file under the file path entered by the user in the file selection interface as a document reference file.
[0141] In this way, document reference files to be selected can be recommended to users. Document reference files can be obtained based on the user's file selection operation. Possible reference files for the document to be generated can be recommended to users, thereby improving the efficiency of users in selecting document reference files, thereby improving the convenience of users generating documents using the document generation platform and improving document generation efficiency.
[0142] In one embodiment of the present disclosure, the file recommendation information includes information of at least one of the following files:
[0143] The files included in the folder where the blank document is located;
[0144] The file most recently browsed by the creator of the blank document;
[0145] The file displayed in the page where the control that triggers the generation of the blank document is located.
[0146] In this way, by making recommendations based on the information of the above types of files, the accuracy of recommending to the user possible reference files for the generated document required by the user can be improved, and the accuracy of obtaining document reference files can be improved.
[0147] In one embodiment of the present disclosure, the document generation module is specifically used to display each document unit in the target document frame indicated by the target guide item in the blank document; and obtain document content generated according to information input by the user in each document unit.
[0148] From the above, it can be seen that by guiding users to input information in each document unit in the target document framework indicated by the target guide item to generate document content, the difficulty of users entering document content can be simplified, the convenience of users using the document generation platform to generate documents can be improved, and the document generation efficiency can be improved.
[0149] In one embodiment of the present disclosure, the document generation module is specifically used to display a first prompt input interface in each document unit, obtain document content generated by a content generation language model based on the first prompt, wherein the first prompt is: a prompt is generated based on information input by a user in the first prompt input interface.
[0150] In this way, users can be guided to use the content generation large language model to generate the content in the document unit, simplifying the difficulty of users inputting document content and improving the efficiency of document generation.
[0151] In one embodiment of the present disclosure, the document generation module is specifically used to display a second prompt input interface if the target guidance item is a document content guidance item, wherein the target guidance item is: the guidance item selected by the user's guidance item selection operation in the displayed document generation guidance information; obtain a document generated by the document generation large language model based on the second prompt, wherein the second prompt is: a prompt generated based on the information input by the user in the second prompt input interface.
[0152] In this way, users can be guided to use the document generation large language model to generate documents for blank documents, simplifying the operation of users generating document content, reducing the difficulty of user use, allowing users to generate documents more quickly and efficiently, and improving document generation efficiency.
[0153] In one embodiment of the present disclosure, the second prompt input interface displays a sample prompt corresponding to the target guidance item;
[0154] The information input by the user in the second prompt input interface includes: the editable information in the sample prompt.
[0155] In this way, sample prompts can more accurately guide users to generate document content, thereby improving document generation efficiency.
[0156] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0157] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0158] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0159] at least one processor; and
[0160] a memory communicatively connected to the at least one processor; wherein,
[0161] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the document generation method.
[0162] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the above document generation method.
[0163] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program implements the above document generation method when executed by a processor.
[0164] Figure 4 A schematic block diagram of an example electronic device 400 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0165] like Figure 4 As shown, the device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0166] A number of components in the device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0167] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above, such as method document generation. For example, in some embodiments, method document generation may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by the computing unit 401, one or more steps of the method document generation described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform method document generation in any other appropriate manner (e.g., by means of firmware).
[0168] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0169] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0170] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0171] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0172] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0173] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0174] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0175] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A document generation method, comprising: In response to opening the created blank document, displaying document generation guide information, wherein the document generation guide information includes: document content guide items and / or document framework guide items; The document is generated based on the guide item selected in the displayed document generation guide information by the user's guide item selection operation.
2. The method according to claim 1, wherein: The document framework guide item is obtained in the following manner: determining a suspected classification of the blank document; Selecting a document frame that matches the determined suspected classification from the existing document frames; Based on the information of the selected document frame, a document frame guide item is obtained.
3. The method according to claim 2, wherein: The determining the suspected classification of the blank document includes: Determine the suspected classification of the blank document according to at least one of the following information: The title of the blank document; The storage path of the blank document; A user profile of the creator of the blank document; Classification of the creator's historically created documents; The creator's historical browsing history.
4. The method according to any one of claims 1 to 3, wherein: The step of generating a document based on the guide item selected in the guide information of the displayed document based on the guide item selection operation of the user comprises: Obtaining the document content of each document unit in the target document framework indicated by the target guide item, wherein the target guide item is: the guide item selected by the user's guide item selection operation in the displayed document generation guide information; A document is generated in which the document contents of each document unit are laid out according to a target document layout mode, wherein the target document layout mode is: a layout mode of each document unit indicated by the target document framework.
5. The method according to claim 4, wherein: The step of obtaining the document content of each document unit in the target document framework indicated by the target guide item includes: Get document reference files; According to the subject of the document unit in the target document framework indicated by the target guide item, the document reference file is analyzed to obtain the document content of the document unit.
6. The method according to claim 5, wherein: The obtaining of the document reference file comprises: Displaying file recommendation information, and determining that a file selected from the file recommendation information by a user's file selection operation is a document reference file; or A file selection interface is displayed, and a file under a file path input by a user in the file selection interface is determined as a document reference file.
7. The method according to claim 6, wherein: The file recommendation information includes information about at least one of the following files: The files included in the folder where the blank document is located; The file most recently browsed by the creator of the blank document; The file displayed in the page where the control that triggers the generation of the blank document is located.
8. The method according to claim 4, wherein: The step of obtaining the document content of each document unit in the target document framework indicated by the target guide item includes: Displaying each document unit in the target document frame indicated by the target guide item in the blank document; The document content generated according to the information input by the user in each document unit is obtained.
9. The method according to claim 8, wherein: The obtaining of document content generated according to information input by the user in each document unit includes: For each document unit, a first prompt input interface is displayed in the document unit to obtain document content generated by a content generation language model based on the first prompt, wherein the first prompt is generated based on information input by a user in the first prompt input interface.
10. The method according to claim 1, wherein: The step of generating a document based on the guide item selected in the guide information of the displayed document based on the guide item selection operation of the user comprises: If the target guidance item is a document content guidance item, a second prompt input interface is displayed, wherein the target guidance item is: the guidance item selected by the user in the displayed document generation guidance information during the guidance item selection operation; A document generated by a large language model based on a second prompt is obtained, wherein the second prompt is generated based on information input by a user in the second prompt input interface.
11. The method according to claim 10, wherein: The second prompt input interface displays a sample prompt corresponding to the target guidance item; The information input by the user in the second prompt input interface includes: the editable information in the sample prompt.
12. A document generation device, comprising: A guide information display module, used for displaying document generation guide information in response to opening the created blank document, wherein the document generation guide information includes: document content guide items and / or document framework guide items; The document generation module is used to generate a document based on the guidance item selected by the user in the displayed document generation guidance information through the guidance item selection operation.
13. The device according to claim 12, wherein: The document framework guide item is obtained in the following manner: determining a suspected classification of the blank document; Selecting a document frame that matches the determined suspected classification from the existing document frames; Based on the information of the selected document frame, a document frame guide item is obtained.
14. The device according to claim 13, wherein: The determining the suspected classification of the blank document includes: Determine the suspected classification of the blank document according to at least one of the following information: The title of the blank document; The storage path of the blank document; A user profile of the creator of the blank document; Classification of the documents historically created by the creator; The creator's historical browsing history.
15. The device according to any one of claims 12 to 14, wherein: The document generation module is specifically used to obtain the document content of each document unit in the target document framework indicated by the target guide item, wherein the target guide item is: the guide item selected by the user's guide item selection operation in the displayed document generation guide information; generate a document in which the document content of each document unit is laid out according to the target document layout method, wherein the target document layout method is: the layout method of each document unit indicated by the target document framework.
16. The device according to claim 15, wherein: The document generation module is specifically used to obtain a document reference file; analyze the document reference file according to the subject of the document unit in the target document framework indicated by the target guide item to obtain the document content of the document unit.
17. The device according to claim 16, wherein: The document generation module is specifically used to display file recommendation information, determine that the file selected from the file recommendation information by the user's file selection operation is a document reference file; or display a file selection interface, and determine the file under the file path entered by the user in the file selection interface as a document reference file.
18. The device according to claim 17, wherein: The file recommendation information includes information about at least one of the following files: The files included in the folder where the blank document is located; The file most recently browsed by the creator of the blank document; The file displayed in the page where the control that triggers the generation of the blank document is located.
19. The device according to claim 15, wherein: The document generation module is specifically used to display each document unit in the target document framework indicated by the target guide item in the blank document; and obtain document content generated according to the information input by the user in each document unit.
20. The device according to claim 19, wherein The document generation module is specifically used to display a first prompt input interface in each document unit, and obtain document content generated by a content generation language model based on the first prompt, wherein the first prompt is: a prompt is generated based on information input by a user in the first prompt input interface.
21. The device according to claim 12, wherein: The document generation module is specifically used to display a second prompt input interface if the target guidance item is a document content guidance item, wherein the target guidance item is: the guidance item selected by the user's guidance item selection operation in the displayed document generation guidance information; obtain a document generated by the document generation large language model based on the second prompt, wherein the second prompt is: a prompt generated based on the information input by the user in the second prompt input interface.
22. The device according to claim 21, wherein The second prompt input interface displays a sample prompt corresponding to the target guidance item; The information input by the user in the second prompt input interface includes: the editable information in the sample prompt.
23. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 11.
24. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-11.
25. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 11.