Program, method for producing design documents, and design document output device
The design document output device leverages a generation AI to process source code, addressing limitations in existing technologies by generating and customizing design documents from programming languages like COBOL, enhancing output efficiency and accuracy.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- 有限会社システック
- Filing Date
- 2024-12-25
- Publication Date
- 2026-07-07
Smart Images

Figure 2026112626000001_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a design document output device that obtains a design document from the source of a program and the like.
Background Art
[0002] Conventionally, there has been a specification generation technique aimed at generating a design document that is easy to understand from source code (see Patent Document 1). Such a specification generation technique includes an intermediate data generation step of performing syntax analysis on the acquired source code and generating intermediate data in which a first variable for storing the result of processing, a logical formula expressed by an input variable, and the value of the first variable are associated with each other; a splitting processing step of splitting the intermediate data into input intermediate data and business intermediate data based on a second variable for storing the processing result of input check specified in advance; a simplification processing step of deleting unnecessary logical formulas from the business intermediate data based on the logical formula corresponding to the value of the second variable when the input check is successful among the values of the second variable included in the input intermediate data to generate simplified business intermediate data; and a design document generation step of generating an input check design document based on the input intermediate data and generating a business design document based on the simplified business intermediate data.
Prior Art Documents
Patent Documents
[0003]
Patent Document 1
Summary of the Invention
Problems to be Solved by the Invention
[0004] However, in the prior art, it has not been easy to obtain an appropriate design document for the source described in a programming language from the source.
Means for Solving the Problems
[0005] The design document output device of the first invention comprises a source storage unit that stores a first source which is a first program written in a first language which is a programming language; an element dictionary that stores one or more element information having elements and element descriptions which are descriptions of the elements in the first source; a design document acquisition unit that provides the first source and one or more element information to a generating AI and acquires a design document corresponding to the first source from the generating AI; and a design document output unit that outputs the design document acquired by the design document acquisition unit.
[0006] With this configuration, the design document of the source code written in a programming language can be obtained from that source code using a generation AI.
[0007] Furthermore, the design document output device of the second invention further comprises a prompt template management unit that stores prompt templates for configuring prompts to output design documents of a source using a source, compared to the first invention, and the design document acquisition unit comprises a prompt configuration means that arranges a first source and one or more element information in a prompt template to configure a prompt, an answer acquisition means that provides the prompt configured by the prompt configuration means to a generating AI and acquires a first answer from the generating AI, and a design document acquisition means that acquires a design document from the first answer acquired by the answer acquisition means.
[0008] With this configuration, it is possible to output an appropriate design document for source code written in a programming language using a generation AI.
[0009] Furthermore, the design document output device of this third invention differs from the second invention in that the design document output unit includes a receiving unit that accepts user modifications to the outputted design document, and the design document output unit is a design document output device that outputs a design document that reflects the modifications to the design document.
[0010] This configuration allows for the output of appropriate design documents for source code written in a programming language.
[0011] Furthermore, the design document output device of this fourth invention, compared to the second or third invention, has a prompt template management unit that stores prompt templates for each of two or more types of a part of the first source, and the prompt configuration means is a design document output device that configures prompts using the prompt templates for each of two or more types of a part of the first source.
[0012] With this configuration, a more appropriate design document for a source written in a programming language can be obtained using a generation AI.
[0013] Furthermore, the design document output device of the fifth invention is a design document output device that includes at least two types of functions, name and processing part, in addition to the fourth invention.
[0014] With this configuration, a more appropriate design document for a source written in a programming language can be obtained using a generation AI.
[0015] Furthermore, the design document output device of this sixth invention, compared to the second or third invention, has a prompt template management unit that stores a prompt template for each of the two or more design document parts that constitute the design document, and the prompt configuration means is a design document output device that configures prompts for each of the two or more design document parts using the prompt template corresponding to the design document part.
[0016] With this configuration, information for each part of the design document can be obtained from the generating AI using prompts for each part of the design document, and the design document can be obtained using this information.
[0017] Further, the design document output device of the seventh invention, with respect to the sixth invention, has a prompt template management unit in which prompt templates associated with two or more design document part identifiers for identifying design document parts are stored. The prompt templates are design document templates including two or more design document parts, and design document templates in which information indicating the areas of the design document parts identified by the design document part identifiers is stored for each of the two or more design document part identifiers are stored. The design document output device further includes a design document acquisition means that acquires the design document parts associated with each of the two or more design document part identifiers from the first response acquired by the response acquisition means, arranges the design document parts in the areas indicated by the two or more design document part identifiers in the design document template, and acquires the design document.
[0018] With such a configuration, information for each design document part can be obtained from the generation AI using prompts for each design document part, and the design document can be obtained using this information.
[0019] Further, the design document output device of the eighth invention is a design document output device in which the first language is COBOL with respect to any one of the first to seventh inventions.
[0020] With such a configuration, the design document of the source described in COBOL can be obtained using the generation AI from the source.
Advantages of the Invention
[0021] According to the design document output device of the present invention, the design document of the source described in a programming language can be obtained using the generation AI from the source.
Brief Description of the Drawings
[0022] [Figure 1] Conceptual diagram of the information system A including the design document output device 1 in Embodiment 1 [Figure 2] Block diagram of the design document output device 1 [Figure 3] Flowchart for explaining an operation example of the design document output device 1 [Figure 4] Diagram showing an example of the prompt template management table [Figure 5] Figure showing an example of the design document prototype [Figure 6] Figure showing an example of the COBOL source [Figure 7] Figure showing an example of the COBOL source [Figure 8] Figure showing an example of the COBOL source [Figure 9] Figure showing an example of the variable management table [Figure 10] Figure showing an example of the prompt [Figure 11] Figure showing an example of the prompt [Figure 12] Figure showing an example of the flowchart constituting the design document [Figure 13] Figure showing an example of the design document subset [Figure 14] Figure showing an example of the design document [Figure 15] Figure showing an example of the design document [Figure 16] Block diagram of the computer system
Mode for Carrying Out the Invention
[0023] Hereinafter, embodiments of a design document output device and the like will be described with reference to the drawings. In the embodiments, components denoted by the same reference numerals perform the same operations, so the description may be omitted again.
[0024] (Embodiment 1) In the present embodiment, a design document output device that generates a design document from a source will be described. Such a design document output device is a device that gives a source and an element dictionary described later to a generation AI and acquires a design document corresponding to the source.
[0025] In this specification, information X being associated with information Y means that information Y can be obtained from information X, or information X can be obtained from information Y, and the method of association is irrelevant. Information X and information Y may be linked, may reside in the same buffer, may information X be contained in information Y, or information Y may be contained in information X, and so on.
[0026] Furthermore, in this specification, selecting or determining information Z means obtaining information Z, obtaining a pointer to information Z, obtaining the ID of information Z, setting a flag on information Z, etc., and it is sufficient to be able to access information Z.
[0027] Figure 1 is a conceptual diagram of information system A, including the design document output device 1 in this embodiment. Information system A comprises the design document output device 1 and the generation AI device 2.
[0028] Design document output device 1 is, for example, a terminal, but it may also be a server. If design document output device 1 is a terminal, it may be, for example, a smartphone, a so-called personal computer, or a tablet terminal, but the type is not specified. If design document output device 1 is a server, it may be, for example, a cloud server or an ASP server, but the type is not specified. If design document output device 1 is a server, design document output device 1 receives information and instructions such as source code from a terminal device (not shown) and sends the design document to the terminal device. Design document output device 1 may also have the functions of generation AI device 2. In this case, generation AI device 2 is not required in information system A.
[0029] Generating AI device 2 is a device that has the functionality of a generating AI. In this context, Generating AI device 2 typically has the functionality of a text generation AI. The generating AI may be, for example, ChatGPT or Google Bard, but is not limited to that. Note that Google is a registered trademark. Generating AI device 2 may be, for example, a cloud server or an ASP server, but is not limited to that type. Generating AI device 2 will be referred to as Generating AI as appropriate.
[0030] The design document output device 1 and the generation AI device 2 can communicate with each other via a network such as the Internet.
[0031] Figure 2 is a block diagram of the design document output device 1 in this embodiment. The design document output device 1 comprises a storage unit 11, a receiving unit 12, a processing unit 13, and an output unit 14. The storage unit 11 comprises a prompt template management unit 111, a source storage unit 112, an element dictionary 113, and a design document template management unit 114. The processing unit 13 comprises a design document acquisition unit 131. The design document acquisition unit 131 comprises a prompt configuration means 1311, a response acquisition means 1312, and a design document acquisition means 1313. The output unit 14 comprises a design document output unit 141.
[0032] The storage unit 11 stores various types of information. These types of information include, for example, prompt templates, source code, and element information, which will be described later.
[0033] The prompt template management unit 111 stores one or more prompt templates. Preferably, the prompt template management unit 111 stores a prompt template for each of the two or more types of parts of the source program. Preferably, the prompt template management unit 111 stores a prompt template for each of the two or more design document parts. Preferably, the prompt template management unit 111 stores prompt templates associated with each of the two or more design document part identifiers. A design document part is a part of a design document.
[0034] A prompt template is information that serves as a template for constructing a prompt. A prompt template can be, for example, a file, but it can also be an attribute value in a database, and its structure is not restricted. It is preferable for a prompt template to have one or more variables. These variables could be, for example, a variable to assign a source, or a variable to assign one or more elemental information. A prompt template can also be a prompt without variables.
[0035] The prompts here are prompts to provide a source program (referred to as "source" as appropriate) and output the design document for that source program. The programming language of the source is, for example, COBOL, but C, assembly language, etc., are also acceptable and not restricted.
[0036] Some types of source programs include, for example, function names (function definitions) and processing parts (for example, the processing parts of a function). For each of the two or more types, a prompt template is stored; this can also mean that a single prompt template contains query statements for each of the two or more types. Similarly, for each of the two or more design document parts, a single prompt template can contain query statements for each of the two or more design document parts.
[0037] A design document section identifier is information that identifies a section of a design document. Examples of design document section identifiers include the name of the design document section and its ID.
[0038] The source storage unit 112 stores one or more source files. A source file is a program. Here, the source file is, for example, the first source file. The first source file is a source file that is the first program written in a programming language, the first language. The first language is, for example, COBOL, but is not limited to that.
[0039] The element dictionary 113 stores one or more element information entries. Element information refers to information about the elements that make up the source code. Elements include, for example, variables, functions, and branches. Element information includes an element and an element description. An element description is a description of the element. Elements include, for example, a variable name and a function name. An element description is a string description of a variable and a string description of a function. Element information includes, for example, a variable name and a string description of that variable. Element information includes, for example, a function and a string summary of that function.
[0040] The design document template management unit 114 stores design document templates. A design document template is information that serves as a template for a design document. A design document template includes two or more design document parts. For example, a design document template includes two or more design document part identifiers. The design document part identifiers in the design document template identify the area of the design document part identified by that design document part identifier. The area of the design document part may be identified by coordinate values within the design document, or by the order in which the design document parts are arranged within the design document.
[0041] The reception unit 12 accepts user modifications to the design document output by the design document output unit 141.
[0042] Here, "reception" is a concept that includes receiving information input from input devices such as keyboards, mice, and touch panels; receiving information transmitted via wired or wireless communication lines; and receiving information read from recording media such as optical discs, magnetic discs, and semiconductor memory.
[0043] The method by which users can input modifications to the design document can be anything, such as using a keyboard, mouse, or menu screen.
[0044] The processing unit 13 performs various processes. These processes include, for example, those performed by the design document acquisition unit 131. The processing unit 13 acquires a design document that reflects the user's modifications received by the reception unit 12.
[0045] The design document acquisition unit 131 provides the first source from the source storage unit 112 and one or more element information from the element dictionary 113 to the generating AI, and acquires a design document corresponding to the first source from the generating AI.
[0046] The design document acquisition unit 131 acquires the design document, for example, using the prompt configuration means 1311, the response acquisition means 1312, and the design document acquisition means 1313, as shown below.
[0047] The prompt configuration means 1311 configures a prompt by arranging a first source and one or more element information in a prompt template.
[0048] The prompt configuration means 1311 obtains a prompt template from the prompt template management unit 111. The prompt configuration means 1311 also obtains a first source from the source storage unit 112. The prompt configuration means 1311 also obtains one or more element information from the element dictionary 113. Next, the prompt configuration means 1311 substitutes the first source into the variable location of the source of the prompt template. The prompt configuration means 1311 also substitutes one or more element information into the variable location of the one or more element information of the prompt template. As a result, the prompt configuration means 1311 obtains a completed prompt.
[0049] The prompt configuration means 1311 configures prompts for each of the two or more types, for example, using prompt templates for each of the two or more types that are part of the first source. The prompt configuration means 1311 obtains, for example, a first prompt template, which is a prompt template for obtaining an overview of a function, and provides the first prompt template with the definition lines of one or more functions that are part of the first source, thereby completing the first prompt. The prompt configuration means 1311 also obtains, for example, a second prompt template, which is a prompt template for obtaining details of a function's processing, and provides the second prompt template with the processing parts of one or more functions that are part of the first source, thereby completing the second prompt.
[0050] The prompt configuration means 1311 configures a prompt for each of two or more design document sections using a prompt template corresponding to the design document section.
[0051] The prompt configuration means 1311, for example, obtains a prompt template paired with a design document part identifier from the prompt template management unit 111 for each of two or more design document parts, and configures a prompt by placing information (e.g., source, one or more element information) into the variables of the prompt template.
[0052] The response acquisition means 1312 provides the prompt configured by the prompt configuration means 1311 to the generating AI and obtains a first response from the generating AI.
[0053] The response acquisition means 1312 provides, for example, a first prompt configured by the prompt configuration means 1311 to the generating AI, and obtains a response (1) from the generating AI that includes a description of the outline of one or more functions.
[0054] The response acquisition means 1312 provides, for example, a second prompt configured by the prompt configuration means 1311 to the generating AI, and obtains a response (2) from the generating AI that includes a detailed description of the processing of one or more functions.
[0055] The response acquisition means 1312 provides the generation AI with a prompt configured by the prompt configuration means 1311 for each of the two or more design document parts, and acquires the design document part from the generation AI.
[0056] The design document acquisition means 1313 acquires the design document from the first response acquired by the response acquisition means 1312. The first response may also be a design document.
[0057] The design document acquisition means 1313 acquires a design document that includes the design document portion of answer (1) and the design document portion of answer (2) acquired by the answer acquisition means 1312. Note that the design document portion of answer (1) may also be answer (1), and the design document portion of answer (2) may also be answer (2).
[0058] The design document acquisition means 1313 obtains design document portions corresponding to two or more design document portion identifiers from the first response obtained by the response acquisition means 1312. Then, the design document acquisition means 1313 places the design document portions corresponding to the design document portion identifiers in the areas indicated by the two or more design document portion identifiers in the design document template, thereby constructing the design document.
[0059] The design document acquisition means 1313 acquires design document portions corresponding to two or more design document portion identifiers from the first response acquired by the response acquisition means 1312, places the acquired design document portions in the areas indicated by the two or more design document portion identifiers in the design document template, and acquires the design document.
[0060] The output unit 14 outputs various types of information. These types of information include, for example, design documents.
[0061] Here, "output" is a concept that includes display on a screen, projection using a projector, printing with a printer, sound output, transmission to an external device, storage on a recording medium, and transfer of processing results to other processing devices or other programs.
[0062] Design document output unit 141 outputs a design document that reflects the revisions made to the design document.
[0063] The storage unit 11, prompt template management unit 111, source storage unit 112, element dictionary 113, and design document template management unit 114 are preferably made of non-volatile recording media, but can also be made of volatile recording media.
[0064] The process by which information is stored in the storage unit 11, etc. is not relevant. For example, information may be stored in the storage unit 11, etc. via a recording medium, information transmitted via a communication line, etc. may be stored in the storage unit 11, etc., or information input via an input device may be stored in the storage unit 11, etc.
[0065] The reception unit 12 can be implemented using device drivers for input means such as touch panels and keyboards, or control software for menu screens.
[0066] The processing unit 13, the design document acquisition unit 131, the prompt configuration means 1311, the response acquisition means 1312, and the design document acquisition means 1313 can typically be implemented using a processor, memory, etc. The processing procedures of the processing unit 13, etc., are typically implemented in software, and this software is recorded on a recording medium such as ROM. However, it may also be implemented in hardware (dedicated circuitry). The processor can be a CPU, MPU, GPU, etc., and the type is not limited.
[0067] The output unit 14 and the design document output unit 141 may or may not be considered to include output devices such as displays and speakers. The output unit 14 can be implemented using driver software for an output device, or driver software for an output device and an output device.
[0068] Next, an example of the operation of the design document output device 1 will be explained using the flowchart in Figure 3.
[0069] (Step S301) The design document acquisition unit 131 assigns 1 to counter i.
[0070] (Step S302) The design document acquisition unit 131 determines whether or not the i-th processing unit exists in the source storage unit 112. If the i-th processing unit exists, the unit proceeds to step S303; otherwise, the unit proceeds to step S312.
[0071] A processing unit is a unit of source code from which a design document is to be obtained. Examples of processing units include a single function, a single file, all of the source code, one type of code within a function (for example, the "function definition" and the "processing within the function"), and the design document portion.
[0072] (Step S303) The prompt configuration means 1311 obtains a prompt template corresponding to the i-th processing unit from the prompt template management unit 111. Note that the prompt template corresponding to the i-th processing unit may always be the same prompt template.
[0073] (Step S304) The prompt configuration means 1311 obtains the i-th processing unit from one or more sources in the source storage unit 112.
[0074] (Step S305) The prompt configuration means 1311 places the i-th processing unit in the location of the variable in the prompt template.
[0075] (Step S306) The prompt configuration means 1311 obtains one or more element information from the element dictionary 113.
[0076] (Step S307) The prompt configuration means 1311 places one or more elemental information into the variable location of the prompt template. Note that the process of placing one or more elemental information into the variable location of the prompt template is not mandatory.
[0077] (Step S308) The response acquisition means 1312 passes the configured prompt to the generating AI.
[0078] (Step S309) The response acquisition means 1312 determines whether or not it has acquired a response from the generating AI. If a response has been acquired, the process proceeds to step S310; otherwise, the process returns to step S319.
[0079] (Step S310) The design document acquisition means 1313 acquires the design document from the answer obtained in step S309.
[0080] (Step S311) The design document acquisition unit 131 increments counter i by 1. Return to step S302.
[0081] (Step S312) The design document acquisition unit 131 acquires a design document to be output using one or more design documents acquired in step S310.
[0082] (Step S313) The design document output unit 141 outputs the acquired design document. The process ends.
[0083] In addition, in the flowchart of Figure 3, the reception unit 12 may also receive instructions from the user to modify the outputted design document. In such a case, the processing unit 13, for example, stores the modified design document.
[0084] The following describes a specific example of the operation of the design document output device 1 in this embodiment.
[0085] The prompt template management unit 111 of the design document output device 1 stores the prompt template management table shown in Figure 4. The prompt template management table has five records, each containing an "ID," a "design document part identifier," and a "prompt template." The "ID" is information that identifies the record.
[0086] The design document template management unit 114 stores the design document template shown in Figure 5. The strings enclosed in "<" and ">" in the design document template (for example, <program-id>) is a variable to which the design document portion obtained using the generation AI is assigned.
[0087] The source code storage unit 112 stores the COBOL source code shown in Figures 6, 7, and 8. This COBOL source code is the source code from which the design document is to be obtained.
[0088] Element dictionary 113 contains the variable management table shown in Figure 9. The variable management table manages five records, each containing "No," "Variable Name," and "Variable Description." "No" is information that identifies the record. "Variable Name" is the variable used in the source code. "Variable Description" is a description of the variable used in the source code.
[0089] Under the above circumstances, the design document output device 1 operates as follows.
[0090] The prompt configuration means 1311 of the design document output device 1 obtains the prompt template "Please tell me the program ID of the following program [program]" with "ID=1" from the prompt template management table (Figure 4). The prompt configuration means 1311 also obtains the source code (Figures 6 to 8) from the source code storage unit 112. Next, the prompt configuration means 1311 places the obtained source code (Figures 6 to 8) in the variable [program] location of the prompt template. Through the above process, the prompt configuration means 1311 obtains the prompt shown in Figure 10.
[0091] Next, the response acquisition means 1312 passes the prompt (Figure 10) to the generating AI. Then, the response acquisition means 1312 obtains the response "SAMPLE001" from the generating AI. Next, the response acquisition means 1312 obtains the design document partial identifier "ID=1". <program-id>Corresponding to this, the design document section "SAMPLE001," which is the answer, is temporarily stored in a buffer that is not illustrated.
[0092] Furthermore, the prompt configuration means 1311 and the response acquisition means 1312 perform the same processing for "ID=2" and subsequent entries in the prompt template management table (Figure 4).
[0093] For example, the prompt configuration means 1311 obtains the prompt template "ID=4" "Create a flowchart for each section of the following program's Procedure Division processing details [Program][Conversion Dictionary]" from the prompt template management table (Figure 4). The prompt configuration means 1311 also obtains the source code (Figures 6-8) from the source storage unit 112. Next, the prompt configuration means 1311 places the obtained source code (Figures 6-8) in the variable [Program] section of the prompt template. The prompt configuration means 1311 also obtains the variable management table (Figure 9) from the element dictionary 113. Next, the prompt configuration means 1311 places the obtained variable management table in the variable [Conversion Dictionary] section of the prompt template. Through the above processes, the prompt configuration means 1311 obtains the prompt shown in Figure 11.
[0094] Next, the response acquisition means 1312 passes the prompt (Figure 11) to the generating AI. Then, the response acquisition means 1312 obtains the flowchart shown in Figure 12. Next, the response acquisition means 1312 associates the design document part identifier <process> with "ID=4" and temporarily stores the design document part (flowchart in Figure 12), which is the answer, in a buffer that is not shown.
[0095] Assuming that the above process has resulted in the acquisition of the design document subset shown in Figure 13, a design document subset is a set of design document parts that are paired with two or more design document part identifiers.
[0096] Next, the design document acquisition means 1313 acquires a design document template (Figure 5) from the design document template management unit 114. Then, the design document acquisition means 1313 places design document portions that are paired with two or more design document portion identifiers of the design document subset (Figure 13) in the areas of the design document template where two or more design document portion identifiers exist, thereby constructing a design document.
[0097] Next, the design document output unit 141 outputs the design document constructed by the design document acquisition means 1313. An example of such a design document is shown in Figure 14. The output design document may also be a document like the one shown in Figure 15.
[0098] As described above, according to this embodiment, a design document for a source code written in a programming language can be obtained from that source code using a generation AI.
[0099] The processing in this embodiment may be implemented by software. This software may be distributed by software download or the like. Alternatively, this software may be recorded on a recording medium such as a CD-ROM and distributed. This also applies to other embodiments in this specification. The software that implements the design document output device 1 in this embodiment is the following program. In other words, this program is a program that causes a computer capable of accessing a source storage unit in which a first source, which is a first program written in a first language, is stored, and an element dictionary in which one or more element information items having elements in the first source and element descriptions which are descriptions of those elements is stored, to function as a design document acquisition unit that provides the first source and the one or more element information items to a generation AI and acquires a design document corresponding to the first source from the generation AI, and a design document output unit that outputs the design document acquired by the design document acquisition unit.
[0100] Figure 16 is a block diagram of a computer system 300 that executes the program described herein to realize the design document output device 1 of the various embodiments described above.
[0101] In Figure 16, the computer system 300 includes a computer 301 with a CD-ROM drive, a keyboard 302, a mouse 303, and a monitor 304.
[0102] In Figure 16, the computer 301 includes, in addition to the CD-ROM drive 3012, an MPU 3013, a bus 3014 connected to the CD-ROM drive 3012, a ROM 3015 for storing programs such as boot-up programs, a RAM 3016 connected to the MPU 3013 for temporarily storing application program instructions and providing temporary storage space, and a hard disk 3017 for storing application programs, system programs, and data. Although not shown here, the computer 301 may further include a network card for providing connectivity to a LAN.
[0103] The program that causes the computer system 300 to execute the functions of the design document output device 1 of the above embodiment may be stored on CD-ROM 3101, inserted into CD-ROM drive 3012, and then transferred to hard disk 3017. Alternatively, the program may be transmitted to computer 301 via a network (not shown) and stored on hard disk 3017. The program is loaded into RAM 3016 during execution. The program may also be loaded directly from CD-ROM 3101 or the network.
[0104] The program does not necessarily have to include an operating system (OS) or third-party program that causes the computer 301 to execute the functions of the design document output device 1 of the above embodiment. The program only needs to include the instruction portion that calls the appropriate function (module) in a controlled manner and obtains the desired result. How the computer system 300 operates is well known, so a detailed explanation is omitted.
[0105] In the above program, steps such as sending information and receiving information do not include hardware-based processing, such as processing performed by a modem or interface card in the transmission step (processing that can only be performed by hardware).
[0106] Furthermore, the computer running the above program may be a single computer or multiple computers. In other words, it may perform centralized processing or distributed processing.
[0107] Furthermore, in each of the above embodiments, each process may be implemented by centralized processing by a single device, or by distributed processing by multiple devices.
[0108] It goes without saying that the present invention is not limited to the embodiments described above, and various modifications are possible, all of which are also included within the scope of the present invention. [Industrial applicability]
[0109] As described above, the design document output device 1 according to the present invention has the effect of being able to obtain a design document of a source written in a programming language such as COBOL using a generation AI, and is useful as a server or terminal for outputting design documents. [Explanation of Symbols]
[0110] 1. Design document output device 2 Generation AI device 11 Storage Unit 12 Reception Department 13 Processing Unit 14 Output section 111 Prompt Template Management Department 112 Source Storage Unit 113-element dictionary 114 Design template management department 131 Design Acquisition Department 141 Design Document Output Unit 1311 Prompt configuration means 1312 Answer acquisition means 1313 Means of obtaining design documents
Claims
1. A source storage unit where the first source, which is the first program written in the first language, is stored, An element dictionary storing one or more element information items having an element in the first source and an element description which is a description of the element, A design document acquisition unit provides the first source and the one or more element information to a generating AI and acquires a design document corresponding to the first source from the generating AI. A design document output device comprising: a design document acquisition unit and a design document output unit that outputs the design document acquired by the design document acquisition unit.
2. The system further comprises a prompt template management unit that stores prompt templates for configuring prompts to output design documents for the source, The aforementioned design document acquisition unit is: The prompt template is configured by arranging the first source and one or more element information, and the prompt configuration means is configured to form a prompt. The prompt configuration means provides the prompt configured by the prompt configuration means to the generating AI and the response acquisition means obtains a first response from the generating AI, The design document output device according to claim 1, further comprising: a design document acquisition means for acquiring the design document from the first answer acquired by the answer acquisition means.
3. The design document output unit includes a receiving unit that accepts user modifications to the output design document, The aforementioned design document output unit is: The design document output device according to claim 2, which outputs a design document that reflects the modifications to the aforementioned design document.
4. The prompt template management unit includes: For each of the two or more types of the first source mentioned above, a prompt template is stored. The prompt configuration means is A design document output device according to claim 2 or 3, which configures a prompt using two or more prompt templates for each type that are part of the first source.
5. The design document output device according to claim 4, wherein the two or more types include at least two types: a function name and a processing part.
6. The prompt template management unit includes: A prompt template is stored for each of the two or more parts that make up the design document. The prompt configuration means is A design document output device according to claim 2 or 3, wherein for each of the two or more design document parts, a prompt is configured using the prompt template corresponding to the design document part.
7. The prompt template management unit includes: A prompt template is stored, which is associated with two or more design document part identifiers that identify the design document part. The system further comprises a design document template management unit that stores a design document template containing two or more design document parts, and which has information indicating the area of the design document part identified by the two or more design document part identifiers, The aforementioned means for obtaining design documents is, The design document output device according to claim 6, which obtains a design document portion corresponding to each of the two or more design document portion identifiers from the first answer obtained by the answer acquisition means, places the design document portion in the area indicated by each of the two or more design document portion identifiers in the design document template, and obtains the design document.
8. The design document output device according to any one of claims 1 to 7, wherein the first language is COBOL.
9. A design document output method implemented by a source storage unit that stores a first source which is a first program written in a first language which is a programming language, an element dictionary that stores one or more element information having elements in the first source and element descriptions which are descriptions of those elements, a design document acquisition unit, and a design document output unit, The design document acquisition step involves the design document acquisition unit providing the first source and the one or more element information to the generating AI, and acquiring a design document corresponding to the first source from the generating AI. A design document output method comprising: a design document output step in which the design document output unit outputs the design document acquired by the design document acquisition unit.
10. A computer capable of accessing a source storage unit that stores a first source, which is a first program written in a first language, and an element dictionary that stores one or more element pieces of information, each of which has an element and an element description, which is a description of that element, A design document acquisition unit provides the first source and the one or more element information to a generating AI and acquires a design document corresponding to the first source from the generating AI. A program to function as a design document output unit that outputs the design document acquired by the design document acquisition unit.