Document preparation device, document preparation method, and document preparation program

The document creation device addresses inefficiencies in LLM-based document generation by employing template-based methods and verification, enabling efficient and flexible document creation across various formats.

WO2025150088A1PCT designated stage expired Publication Date: 2025-07-17TEKTOME INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/000155
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-01-09
Publication Date
2025-07-17

AI Technical Summary

Technical Problem

Existing document creation technologies using large language models (LLMs) struggle to flexibly adapt to various document formats and require significant user effort in generating prompts, leading to inefficiencies and increased burden in creating multiple documents.

Method used

A document creation device and method utilizing a template setting unit, necessary information setting unit, prompt generation unit, and verification unit to streamline the document creation process by using large language models, incorporating template storage, reference information, and reshaping units to enhance efficiency and flexibility.

Benefits of technology

Enables efficient and flexible creation of documents by reducing user effort and improving labor-saving through template-based document generation, verification, and reshaping, thereby enhancing the overall efficiency of document creation processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024000155_17072025_PF_FP_ABST
    Figure JP2024000155_17072025_PF_FP_ABST
Patent Text Reader

Abstract

[Problem] The present invention addresses the problem of saving labor and improving efficiency in automatic document preparation. [Solution] Provided is a document preparation device having: a template-setting unit that sets templates for document preparation; a template accumulation unit that accumulates the set templates; a template designation unit that designates a template to be used in document preparation from among the accumulated templates; a necessary-information-setting unit that sets necessary information, which is information necessary for preparing a document, using the designated template; a prompt generation unit that, using the designated template and the set necessary information, generates a prompt for causing a large-scale language model to prepare the document; and a document preparation unit that inputs the generated prompt into the large-scale language model to prepare the document.
Need to check novelty before this filing date? Find Prior Art

Description

Document creation device, document creation method, and document creation program

[0001] The present invention relates to a document creation device for improving efficiency and labor saving in document creation.

[0002] Regardless of the type of industry, numerous documents are created daily in the course of business operations, and there is a constant demand for more efficient and labor-saving document creation. To address this, technologies for automatically creating prescribed documents have been developed. For example, Patent Literature 1 discloses a technology for automatically creating invoices based on order data and progress status.

[0003] In recent years, attempts have been made to create documents using automatic text generation by applying large-scale language models (LLMs) such as ChatGPT (Non-Patent Document 1) to plug-ins in word processing software such as Word.

[0004] Japanese Patent Application Laid-Open No. 2020-194603

[0005] https: / / openai.com / chatgpt

[0006] The technology disclosed in Patent Document 1 simply calculates fees based on order data and progress status, and then creates an invoice by converting the calculation results into a predefined format. Therefore, this technology cannot flexibly handle the creation of documents in a wide variety of formats.

[0007] Furthermore, with the technology disclosed in Non-Patent Document 1, it is not easy to generate prompts to input into the LLM in order to create documents that correspond to individual formats and content. Because there are various document creation assumptions and considerations, such as in the case of the proposal document described above, it is not easy to generate prompts to instruct the LLM to create documents that fully reflect these assumptions. Furthermore, when creating a large number of different documents, it is necessary to generate such difficult prompts each time, which places a heavy burden on the user. As such, the prior art cannot meet the demands for labor-saving and efficiency in the automatic creation of documents.

[0008] Therefore, in order to solve the above-mentioned problems, the present invention provides the following document creation device etc. That is, a document creation device is provided that has a template setting unit that sets a template for document creation, a template storage unit that stores the set template, a template designation unit that designates a template to be used for document creation from the stored templates, a necessary information setting unit that sets necessary information that is information necessary for creating a document using the designated template, a prompt generation unit that generates a prompt for causing a large-scale language model to create the document using the designated template and the set necessary information, and a document creation unit that inputs the generated prompt into the large-scale language model to create the document.

[0009] In addition to the above features, the document creation device further includes a reference information setting unit that sets reference information, which is information to be referenced when creating the document, and the prompt generation unit further generates the prompt using the set reference information.

[0010] In addition to the above features, the present invention provides a document creation device further comprising a reformatting unit that reformats the created document.

[0011] In addition to the above features, the present invention provides a document creation device further comprising a verification unit that verifies the created document.

[0012] In addition to the above features, the present invention also provides a document creation device further comprising a prompt storage unit that stores the generated prompts.

[0013] Also provided is a document creation method executed by a computer in a document creation device, the document creation method comprising: a template setting step of setting a template for document creation; a template storage step of storing the set template; a template designation step of designating a template to be used for document creation from the stored templates; a necessary information setting step of setting necessary information that is information necessary for creating a document using the designated template; a prompt generation step of generating a prompt to cause a large-scale language model to create the document using the designated template and the set necessary information; and a document creation step of inputting the generated prompt into the large-scale language model to create the document.

[0014] The present invention also provides a document creation program for causing a computer to execute the following steps in a document creation device: a template setting step for setting a template for document creation; a template storage step for storing the set template; a template designation step for designating a template to be used for document creation from the stored templates; a necessary information setting step for setting necessary information that is information necessary for creating a document using the designated template; a prompt generation step for generating a prompt for creating the document in a large-scale language model using the designated template and the set necessary information; and a document creation step for inputting the generated prompt into the large-scale language model to create the document.

[0015] According to the present invention, desired documents can be efficiently created by using templates.

[0016] A block diagram showing an example of the functional configuration of a document creation device according to an embodiment. A conceptual diagram showing an example of a document to be created and necessary information. A conceptual diagram showing an example of the configuration of hardware that realizes the document creation device according to an embodiment. A flow diagram simply showing an example of the processing flow of the document creation device according to an embodiment.

[0017] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. However, the present invention should not be limited to these embodiments and can be embodied in various forms without departing from the spirit and scope of the present invention.

[0018] <Example> <Summary> For example, when creating documents that must be filled out according to predetermined guidelines, such as a building confirmation application form to be submitted when constructing a building, using a large-scale language model (LLM; hereinafter, this term may be abbreviated), setting and accumulating templates for various documents can contribute to efficient document creation.

[0019] The following describes the functions and processing flow of the document creation device, as well as the hardware details. The functional blocks of the device described below can be implemented as a combination of hardware and software. Specifically, if a computer is used, these include hardware components such as a CPU (central processing unit), main memory, bus, or secondary storage device (such as a hard disk drive, nonvolatile memory, or storage media such as CDs or DVDs, and their reader drives), input devices used for information input, printers, display devices, and other external peripheral devices, as well as interfaces for those external peripheral devices, communication interfaces, driver programs and other application programs for controlling the hardware, and user interface applications. The CPU then processes and stores data input from input devices and other interfaces and stored in memory or on a hard disk, and generates commands to control the hardware and software. Alternatively, the functional blocks of the device can be implemented using dedicated hardware.

[0020] Furthermore, this invention can be realized not only as an apparatus but also as a method. Furthermore, a part of such an invention can be configured as software. Furthermore, a program used to cause a computer to execute such software, and a recording medium on which the program is fixed, are naturally included within the technical scope of this invention (the same applies throughout this specification).

[0021] <Functional Configuration> Fig. 1 is a block diagram showing an example of the functional configuration of a document creation device according to this embodiment. As shown in Fig. 1, the document creation device 100 includes a template setting unit 101, a template storage unit 102, a template designation unit 103, a required information setting unit 104, a reference information setting unit 105, a prompt generation unit 106, a document creation unit 107, a reshaping unit 108, a verification unit 109, and a prompt storage unit 110.

[0022] The document creation device 100 is a device for creating documents. This device is embodied, for example, as a function extension (plug-in) for a document creation application such as Word, but may also be realized in a web application. An example of a document to be created is a document that has a certain amount of information that must be written. For example, a building confirmation application form that must be submitted when constructing a building.

[0023] This device is expected to be particularly effective when creating numerous business documents in companies, offices, etc. In other words, business documents, such as the building confirmation application mentioned above, are created according to a set format and style, so the items and instructions to be written can be generalized. By creating templates for these items and instructions, it is possible to reduce the effort required to write similar, standardized information each time a document is created.

[0024] <Template Setting Unit> The template setting unit 101 has a function to set templates for document creation. Templates are set according to the type of document, etc., and include the document layout (what to place, where, and how), the items to be written that are to be arranged according to the layout, and how to write them. The items to be written are determined according to the type and purpose of the document, and for example, a template for a building confirmation application has items to be written such as the names of the architect and contractor, the building address, the zoning, the site area, the building area, and the floor area.

[0025] The instructions for writing are relatively specific and indicate the key points and methods for writing. Key points and methods are often indicated for each item to be written in the document. For example, the items to be written and instructions for writing them in the case of a building application form are set out as follows: "1. Building owner": "Enter the building owner's information here." "2. Representative": "The representative will usually be the designer." "3. Designer": "Enter the designer who will be the representative for the property. If the design is being done by multiple design offices, enter the relevant designers in the "other designers" column." Note that for ease of explanation, the items to be written and instructions for writing them are listed side by side, but the instructions for writing for a single document may also stipulate the items to be written and instructions for writing each item.

[0026] In setting the template, the layout may be set in advance, or the layout may be set more specifically as required information in the required information setting unit described below. As an example of the latter, in the case of a document with a different layout for each local government, the layout used by the local government for the project to be created is set as required information. The template settings, including the layout, items to be written, and writing instructions, may be configured to be performed in advance by this device or an application related to this device, or may be configured so that the user can perform them themselves.

[0027] <Template Storage Unit> The template storage unit 102 has the function of storing set templates. By storing set templates with a unique ID and name assigned to each, the user can specify any template in the template designation unit described below. Note that the above-described template setting and template storage can also be configured so that various document templates are set and stored in advance when a user uses this document creation device.

[0028] <Template Designation Unit> The template designation unit 103 has the function of designating a template to be used for document creation from among the stored templates. If the layout of the designated template has not been set, the layout is set in the necessary information setting unit as described above. If the layout of the designated template has already been set, designating one of the templates will designate the layout, items to be entered, and filling guidelines for the document to be created. Template designation may be configured to be performed hierarchically. For example, for a building confirmation application, templates may be pre-set by subdividing the application subject (building, elevator, building equipment other than elevator, etc.) and the local government to which the application will be submitted, making it easier for the user to designate a template to be used for the document to be created.

[0029] <Required Information Setting Unit> The required information setting unit 104 has a function of setting required information, which is information required to create a document using the specified template. This required information is specific to the document to be created. For example, when creating a building confirmation application, the required information is information such as architectural drawings and wiring diagrams of the actual building that is the subject of the application. Furthermore, if the layout of the document has not been set, a predetermined layout according to the application destination, etc. is set as the required information.

[0030] 2 is a conceptual diagram showing an example of documents to be prepared and the necessary information. As shown in the figure, when preparing a "construction plan summary" 201 for a building confirmation application, for example, a "neighborhood floor plan" 202 and a "layout plan" 203 must be included as description items. These descriptions are based on a "map" 204 showing the location of the object of the application and a "layout plan" 205 of that object, and these "maps" and "layout plans" correspond to necessary information.

[0031] The necessary information may be set by extracting specific descriptions as described above, or by setting the location of the relevant information (address, path, etc.).

[0032] <Reference Information Setting Unit> The reference information setting unit 105 has a function of setting reference information that is information to be referred to when creating the document.

[0033] Reference information is the content of documents that are related or similar to the content of the document to be created. For example, when creating a building confirmation application, it is the content of a building confirmation application submitted when a similar building was constructed. Using past cases as reference information can serve as a reference for creating the current document. Reference information may be, for example, information such as data, files, documents, etc. held by this device, information stored in an external database, or information available on the web.

[0034] Furthermore, reference information can be set not only by specifying specific documents, etc., as described above, but also in an abstract manner. For example, it can be set in the form of "The contents of the building confirmation application submitted for a building similar to this project will be used as reference information." Furthermore, more detailed conditions can be added. For example, reference information can be set to include conditions such as "building confirmation application for an elevator" or "project to which application is made in XX City, XX Prefecture."

[0035] Also, a manual for creating documents may be set as reference information. For example, when creating a "building confirmation application," "how to write a building confirmation application" may be set as reference information.

[0036] The necessary information and reference information are both used for document creation, so the user does not need to recognize them as separate entities, and they may be configured to be set as an integrated entity.

[0037] Furthermore, a preferred embodiment of a database for storing various information and documents that can serve as reference information is a device that not only digitizes documents by scanning them, but also structures and stores and manages the content of each item contained in the document. For example, the content of each item in a document can be entered into a spreadsheet with rows and columns and stored. To structure the content of documents in this way, the content can be manually entered from paper documents into a spreadsheet or the like, or scanned and digitized image data or PDFs can be converted into text using OCR (Optical Character Recognition) and then stored in a database. Such a document DB may be included in the document creation device, or it may be an external device that can exchange information with the document creation device.

[0038] The database may also be constructed by using the LLM to extract and structure information for individual items contained in documents of various formats. For example, to extract the "drawing number" contained in a document, a prompt such as "Please extract the value of 'Drawing Number'. 'Drawing Number' is a file ID consisting only of alphanumeric characters and hyphens. It conforms to the following regular expression: [AZ]-\d{5}" can be entered into the LLM as a prompt, and the LLM can process a large number of documents, including scanned and digitized image data and PDFs converted to text using OCR. The "drawing number" information can then be obtained as a response, allowing the document database to be constructed. Note that the specific means for extracting and structuring information to construct a document database are not particularly limited. This can be achieved using any appropriate technology.

[0039] Building a database such as that described above is a labor-intensive process, but the inventor of the present application has invented a data extraction technology using the LLM described above that reduces the labor required and improves efficiency, and has already filed a patent application (application number: PCT / JP2023 / 034488).

[0040] <Prompt Generation Unit> The prompt generation unit 106 has a function of generating a prompt for creating the document in a large-scale language model using the specified template and the set required information. The prompt may also be generated using set reference information. For example, the prompt generation unit 106 generates a sentence such as, "Please create a 'construction plan outline' for the building confirmation application for the water supply and drainage system of XX. Search for information on water supply and drainage systems of projects similar to this project and refer to the information obtained as a result." The prompt may be generated by the user inputting such a set of sentences, or the prompt may be generated by the user individually inputting the project name, the document to be created, the template to be used, the required information, and the reference information.

[0041] The system may also be configured to add prompts to instruct the LLM on more detailed conditions and settings for the document to be created. For example, prompts may be added regarding the maximum number of characters in the document to be created, or the output format (text only, text with tables, including numerical data, etc.). The system may also be configured to add prompts regarding whether to reformat or validate the created document, and if so, how to perform the reformat or validation. Reformatting and validation are described below.

[0042] <Prompt Storage Unit> The prompt storage unit 110 has a function of storing the generated prompts. Storing the prompts is convenient for the user because it allows them to create documents again or to modify and use them when creating documents for other projects. Furthermore, the prompts may be stored in association with a specified template and set required information and reference information.

[0043] <Document Creation Unit> The document creation unit 107 has a function of inputting the generated prompt into the large-scale language model to create the document. Creating a document using an LLM may be performed, for example, as a functional extension of a document creation application such as Word, or may be provided as a web application. Furthermore, it is not always necessary to create an entire document, but rather, it may also be necessary to create one or more items included in the document. It is also possible to create a document with multiple variations based on the instruction of a single prompt, presenting the multiple documents for the user to select. It is also possible to configure the document to be editable by the user.

[0044] It is also preferable to configure the system to show which parts of the set reference information were referenced in addition to showing the created document. This will show the path and basis for the created result, which will be useful when the user judges the merits of the created result.

[0045] <Reformatting Unit> The reformatting unit 108 has a function of reformatting the created document. Reformatting means formatting the document created by the document creation unit according to a specified sample, format, etc. Reformatting may be performed using the LLM by including the instruction in a prompt, or by inputting a separate script that instructs reformatting.

[0046] <Verification Unit> The verification unit 109 has a function of verifying the created document. Verification means checking whether the created document complies with predetermined conditions and specifications. Furthermore, the verification unit 109 outputs the verified verification results as necessary and reflects the verification results in the re-creation of the document. For example, the verification unit 109 performs verification such as verifying whether the document is similar to a specified negative sample, verifying whether the created document contains specific wording (e.g., the wording "building restrictions within setback"), and confirming the validity of the created document by comparing it with a specified sample.

[0047] If the verification result is not positive, for example, if the document resembles a specified negative sample, does not contain specific wording, or is otherwise inappropriate, it is preferable to display such a result as a message. Furthermore, by inputting a new creation instruction together with the message into the LLM and having it perform the creation process, it is possible to create a more desirable document that reflects the verification result.

[0048] The verification by the verification unit may be performed before or after the reshaping by the reshaping unit described above. Also, like the reshaping, the verification may be performed by including the instruction in the prompt using the LLM, or by inputting a separate script that instructs the verification.

[0049] <Hardware Configuration> Figure 3 is a conceptual diagram showing an example of the configuration of hardware that realizes a document creation device according to an embodiment. As shown in the figure, the document creation device 300 includes a CPU 301 that performs various arithmetic processing, a RAM 302 that is a volatile storage medium, a storage 303 that is a non-volatile storage medium such as a flash memory or HDD, a communication interface 304, and an input / output interface 305. The RAM 302 reads programs that perform various arithmetic processing to be executed by the CPU 301, and provides a work area for the programs. In addition, multiple addresses are assigned to the RAM 302, and programs executed by the CPU 301 can exchange data and perform processing by identifying and accessing these addresses (the same applies throughout this specification).

[0050] Here, the functions of template setting unit 101, template specification unit 103, necessary information setting unit 104, reference information setting unit 105, prompt generation unit 106, document creation unit 107, reshaping unit 108, and verification unit 109 of document creation device 100 in Fig. 1 are mainly realized by CPU 301 and RAM 302 in Fig. 3. Furthermore, the functions of template storage unit 102 and prompt storage unit 110 are mainly realized by storage 303 in Fig. 3. Furthermore, when the document DB is external or when document creation unit 105 uses an external LLM, each function is realized by mutual exchange of signals and information via communication interface 304 and input / output interface 305.

[0051] <Processing Flow> FIG. 4 is a flow diagram illustrating a simplified example of the processing flow of a document creation device. First, description items and description guidelines are set as a template for document creation (S401: template setting step). Then, the set template is stored (S402: template setting step). Then, a template to be used for document creation is specified from the stored templates (S403: template designation step). Then, necessary information, which is information necessary for creating a document using the specified template, is set (S404: necessary information setting step). Then, reference information, which is information referenced for document creation (S405: reference information setting step). Then, a prompt is generated to cause the large-scale language model to create the document using the specified template, the set necessary information, and the set reference information (S406: prompt generation step). Then, the generated prompt is input into the large-scale language model to create a document (S407: document creation step). Then, the created document is reformatted (S408: reformat step). Then, the created document is verified (S409: verification step). Note that the verification step may be performed before the reformat step. Although not shown, the method may also include a prompt storage step for storing the prompts generated in the prompt generation step, and may not include the reference information setting step.

[0052] <Effects> According to the document creation device of this embodiment, desired documents can be created efficiently by using templates.

[0053] 100: Document creation device 101: Template setting unit 102: Template storage unit 103: Template designation unit 104: Required information setting unit 105: Reference information setting unit 106: Prompt generation unit 107: Document creation unit 108: Reformatting unit 109: Verification unit 110: Prompt storage unit 301: CPU 302: RAM 303: Storage 304: Communication interface 305: Input / output interface

Claims

1. A document creation device comprising: a template setting unit that sets a template for document creation; a template storage unit that stores the set template; a template designation unit that designates a template to be used for document creation from the stored templates; a necessary information setting unit that sets necessary information, which is information necessary for creating a document using the designated template; a prompt generation unit that generates a prompt for causing the large language model to create the document using the designated template and the set necessary information; and a document creation unit that inputs the generated prompt into the large language model to create the document.

2. The document creation device according to claim 1, further comprising a reference information setting unit that sets reference information, which is information to be referred to in creating the document, wherein the prompt generation unit further generates the prompt using the set reference information.

3. The document creation device according to claim 1 or 2, further comprising a reshaping unit that reshapes the created document.

4. The document creation device according to claim 1 or 2, further comprising a verification unit that verifies the created document.

5. The document creation device according to claim 1 or 2, further comprising a prompt storage unit that stores the generated prompt.

6. A document creation method executed by a computer in a document creation device, the method comprising: a template setting step of setting a template for document creation; a template storage step of storing the set template; a template designation step of designating a template to be used for document creation from the stored templates; a necessary information setting step of setting necessary information, which is information necessary for creating a document using the designated template; a prompt generation step of generating a prompt for causing the large language model to create the document using the designated template and the set necessary information; and a document creation step of inputting the generated prompt into the large language model to create the document.

7. A document creation program that causes a computer to execute: a template setting step of setting a template for document creation; a template storage step of storing the set template; a template designation step of designating a template to be used for document creation from the stored templates; a necessary information setting step of setting necessary information, which is information necessary for creating a document using the designated template; a prompt generation step of generating a prompt for causing the large language model to create the document using the designated template and the set necessary information; and a document creation step of inputting the generated prompt into the large language model to create the document.

Citation Information

Patent Citations

  • Manuscript generation method and device, equipment and storage medium

    CN116741178A

  • Language model-based image report generation method and system

    CN116884559A

  • Text generation device and text generation method

    JP7325152B1