Information processing method, program, and information processing system
The hierarchical data generation method addresses inefficiencies in large-scale language model dataset integration by layering and associating prompts, resulting in reduced man-hours and enhanced efficiency in data set creation.
Patent Information
- Application Number
- JP2024130248
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-06
AI Technical Summary
The integration of data generated using a large-scale language model requires significant man-hours due to the piecemeal generation of datasets, leading to inefficiencies in dataset creation.
A hierarchical data generation method involving a reception step, output step, and acquisition step, where design prompts are layered and associated, allowing efficient data set creation through a large-scale language model.
This approach reduces the effort and time required to integrate fragmented datasets, enabling efficient data generation and systematic support for user dataset creation.
Smart Images

Figure 0007575148000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing method, a program, and an information processing system. [Background technology]
[0002] Patent Document 1 discloses a prompt generation technique in the field of large-scale language models. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent No. 7313757 Summary of the Invention [Problem to be solved by the invention]
[0004] By giving prompts to the large-scale language model, various data can be generated. Sometimes, a user wants one comprehensive dataset. If the generation work is performed piecemeal using the large-scale language model for each part of the dataset, there is a problem that the labor required to integrate the generated data increases.
[0005] An object of the present invention is to efficiently generate a data set using a large-scale language model. [Means for solving the problem]
[0006] According to the present invention, there is provided an information processing method for generating a hierarchical dataset, comprising a receiving step, an output step, and an acquisition step, in which a design prompt is received in the receiving step, the design prompt has an instruction to generate the dataset, and is composed of a plurality of prompts that are hierarchically organized into a plurality of layers, the prompts in adjacent layers being associated with each other, the design prompt is output to a large-scale language model in the output step, and the dataset is acquired from the large-scale language model in the acquisition step.
[0007] According to the present invention, data sets can be efficiently generated using large-scale language models. [Brief description of the drawings]
[0008] [Figure 1] 1 illustrates an information processing system 100 and an information processing device 1 according to an embodiment. [Diagram 2] FIG. 2A is a hardware configuration diagram of information processing device 1, and FIG. 2B is a functional block diagram of control unit 12. As shown in FIG. [Diagram 3] 1 is a flowchart illustrating an information processing method according to an embodiment. [Figure 4] Fig. 4A is an example of a tree structure in which design information is hierarchically arranged, and Fig. 4B is a diagram for explaining a sheet display step S1 and a receiving step S2 according to the embodiment. [Diagram 5] FIG. 13 is a diagram for explaining an example of a prompt hierarchical structure in Markdown format, and is a diagram for explaining an output step S4 of the embodiment. [Figure 6] FIG. 11 is a diagram for explaining an acquisition step S5 in the embodiment. [Figure 7] FIG. 7A shows how design information for the seat ST is selected in reference step S6 in the embodiment, and FIG. 7B shows how the corresponding portion is highlighted. [Figure 8]FIG. 8A is a diagram showing an example of a prompt in Mermeid notation as an example of a Markdown format, and FIG. 8B is a diagram showing program code (SQL code) which is an example of data generated by the prompt in FIG. 8A. [Figure 9] FIG. 8B is an example of an ER diagram drawn by the prompt in FIG. 8A. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Various characteristic features shown in the following embodiment can be combined with each other. Also, each characteristic feature can be an invention independently.
[0010] 1. Description of the configuration of the embodiment 1.1. Information Processing System Configuration 1, an information processing system 100 includes, as an example, an information processing device 1 and a large-scale language model server 2 (an example of a large-scale language model), which are connected to each other so as to be able to exchange information via a communication network 6 (e.g., the Internet, etc.).
[0011] The information processing device 1 executes each step of the information processing method according to the embodiment (described later in FIG. 3 and subsequent figures). The information processing method according to the embodiment causes the large-scale language model server 2 to generate an arbitrary hierarchical data set. In the embodiment, the term "data set" simply means "a collection of data," and there are no limitations on the purpose, target, use, format, etc. of the data. In the following embodiment, as an example, the data set generated by the large-scale language model server 2 is assumed to be a program code for constructing a system desired by a user U.
[0012] In the embodiment, this "program code" broadly means "information that specifies instructions for a computer." The program code in the embodiment includes source code in any programming language other than a natural language, but is not limited to this and also includes any markup language or markdown language, or any style sheet language (such as CSS). The generated program code is executed in a suitable specification and environment, allowing the development and implementation of a system desired by user U.
[0013] 2 has a neural network trained using, for example, a large amount of teacher data. The large-scale language model server 2 receives an output from the information processing device 1 as input data, generates a response to the input data, and outputs the response to the information processing device 1.
[0014] The input data received by the large-scale language model server 2 is generally called a "prompt." In the embodiment, the "prompt" is input data for issuing an arbitrary instruction to the large-scale language model server 2. The prompt can adopt any format, such as a sentence or a diagram, and any instruction, command, question, etc. can be set. When the prompt is expressed as a sentence, various languages can be used, and any language readable by the large-scale language model server 2 can be adopted. For example, in the embodiment, the language for writing the prompt can be any natural language, any programming language, any database language, any markup language or markdown language, or any style sheet language (such as CSS).
[0015] The specific configuration of the large-scale language model server 2 is not particularly limited, but any large-scale language model called generative AI can be adopted. As an example of a large-scale language model, ChatGPT by OpenAI Inc. may be adopted. The large-scale language model server 2 may adopt only one type of large-scale language model (for example, only ChatGPT), but is not limited thereto, and may adopt a combination of multiple large-scale language models. In the embodiment, the large-scale language model server 2 does not adopt a form of linking with a database such as RAG (Retrieval Augmented Generation). In the embodiment, the prompts to be input to the large-scale language model server 2 are optimized (for example, the order of input, etc.) to efficiently generate program code for constructing a system desired by the user U.
[0016] 1.2.Hardware configuration of information processing device As shown in FIG. 2A, the information processing device 1 has, as an example, a communication unit 10, a memory unit 11, a control unit 12, an information output unit 13, and an input unit 14, and these components are electrically connected within the information processing device 1 via a communication bus 15.
[0017] The communication unit 10 may employ, for example, a wired communication means such as USB, IEEE1394, Thunderbolt (registered trademark), wired LAN network communication, etc. The communication unit 10 may employ a configuration in which it is connected to the communication network 6 via a wireless communication means such as wireless LAN network communication, mobile communication such as 3G / LTE / 5G, Bluetooth (registered trademark) communication, etc. The communication unit 10 may also employ a configuration in which the above-mentioned wired communication means and wireless communication means are used in combination.
[0018] The storage unit 11 stores, as an example, various values such as various programs, constants, variables, and setting values of the information processing device 1 executed by the control unit 12. Any storage device can be adopted for the storage unit 11. As an example, the storage unit 11 can be a storage device such as a solid state drive (SSD), or a random access memory (RAM) that stores temporarily required information (arguments, arrays, etc.) related to the calculation of a program. Furthermore, the information processing device 1 may use an external storage unit (for example, an external storage medium, cloud storage, etc.) in addition to the storage unit 11. In the embodiment, as an example, the storage unit 11 is configured to be capable of storing a sheet ST and design prompts 20a and 20b (see FIG. 4B and FIG. 5) described later, and a program code (see FIG. 6).
[0019] The control unit 12 is configured to execute processing and control related to information processing of the information processing device 1. The control unit 12 can be configured, for example, with a central processing unit (CPU), and in the embodiment, the control unit 12 is an example of a processor capable of executing programs related to each step of a flowchart described later. The control unit 12 realizes various functions related to the information processing device 1, for example, by reading out a program stored in the storage unit 11. Furthermore, the information processing of the software in the information processing device 1 is realized, for example, by the control unit 12 as hardware processing various programs stored in the storage unit 11.
[0020] The information output unit 13 is, for example, a display unit of the information processing device 1. The information output unit 13 may be included in the housing of the information processing device 1 or may be externally attached. The information output unit 13 displays a screen of a graphical user interface (GUI) that can be operated by the user U. For example, the information output unit 13 may be a display device such as a CRT display, a liquid crystal display, an organic EL display, a plasma display, or an electronic paper display, as well as a display device such as a light that can be turned on or a projector. It is optional whether or not the information processing device 1 includes the information output unit 13. For example, the output of the information processing device 1 may be displayed on a display unit that is located at a location independent of the location where the information processing device 1 is installed. The information output unit 13 may also have a device that outputs by voice.
[0021] As an example, the input unit 14 is configured to receive an operation input to the information processing device 1 made by the user U. The input unit 14 may be included in the housing of the information processing device 1 or may be externally attached. For example, the input unit 14 may employ at least one of a touch panel, a switch button, a mouse, a keyboard, and the like. It is optional whether or not the information processing device 1 includes the input unit 14. For example, the operation input of the user U may be received via an input unit of another information processing terminal provided in a remote location independent of the information processing device 1, and the information processing device 1 may receive this operation input via a network.
[0022] 1.3. Functional block configuration of information processing device The functional configuration of the information processing device 1 according to this embodiment will be described with reference to Fig. 2B. Information processing by software stored in the storage unit 11 is specifically realized by the control unit 12, which is an example of hardware, and each functional unit included in the control unit 12 is executed.
[0023] The control unit 12 of the information processing device 1 includes, for example, a sheet display unit 121, a reception unit 122, a prompt generation unit 123, an output unit 124, an acquisition unit 125, and a reference unit 126. Some of these functional units exchange information with the large-scale language model server 2.
[0024] The above-mentioned functional units (sheet display unit 121 to reference unit 126) may be realized by software or hardware. When realized by software, various functions can be realized by a CPU executing a computer program. The program may be stored in a non-transitory recording medium readable by a computer, or may be provided so as to be downloadable from an external server, or may be realized by so-called cloud computing, which reads out a program stored in an external storage unit and realizes the function. When realized by hardware, it can be realized by various circuits such as ASIC, FPGA, or DRP. In the embodiment, various information and concepts including the same are handled, and these are represented by high and low signal values or quantum bits as a binary bit collection consisting of 0 or 1, and communication and calculation can be performed by the above-mentioned software or hardware aspects. The software may be a general-purpose OS or a dedicated OS.
[0025] 1.4. Processing Executed by Information Processing Device (Information Processing Method) Each functional unit included in the control unit 12 in Fig. 2B is configured to be able to execute each step of the flowchart in Fig. 3. The program according to the embodiment executes each step (information processing method) in Fig. 3, thereby causing a computer (information processing device 1) to execute the information processing method according to the embodiment.
[0026] The sheet display unit 121 is configured to be able to execute a sheet display step S1 (see FIG. 4B). The reception unit 122 is configured to be able to execute a reception step S2 (see FIG. 4B and FIG. 5). The prompt generation unit 123 is configured to be able to execute a prompt generation step S3 (FIG. 4B). The output unit 124 is configured to be able to execute an output step S4 (see FIG. 5). The acquisition unit 125 is configured to be able to execute an acquisition step S5 (see FIG. 6). The reference unit 126 is configured to be able to execute a reference step S6 (see FIG. 7). The specific contents of each step will be described later.
[0027] 2. Description of the operation of the embodiment 2.1. Overview of information processing method according to embodiment Embodiments include several features, which are described below. One of its features is that it hierarchically manages the design information for constructing a desired system. Another feature is that prompts issued to the large-scale language model server 2 are managed hierarchically. Yet another feature is that the results generated by the large-scale language model server 2 are managed hierarchically. In the hierarchical management of the embodiment, the components to be managed (each design information, each prompt, each generated result, etc.) are appropriately arranged in each layer and each node of the tree structure. In this tree structure, the components (nodes) of adjacent layers are managed in association with each other. Each of these features can be an independent invention, but as an example of the embodiment, an information processing method, a program, and an information processing system having all of these features are provided.
[0028] Specifically, in the embodiment, as an example, design information for obtaining a system desired by a user U is managed as a systematically hierarchical "design information tree" (see FIG. 4A). The design information tree has a plurality of design information nodes. As an example, the design information includes a requirements definition, a basic design, a workflow, etc., which are assigned to each design information node.
[0029] In addition, in the embodiment, as an example, prompts to be output to the large-scale language model server 2 are managed hierarchically in correspondence with each design information node (see Fig. 4B and Fig. 5). In the embodiment, prompts are issued to the large-scale language model server 2 in an appropriate order according to the systematic design information tree (see Fig. 5). This enables the large-scale language model server 2 to generate any data (program code, as an example).
[0030] In the embodiment, as an example, the generated data generated by the large-scale language model server 2 can be systematically managed as a "hierarchical set of data". In the embodiment, as a specific example, the generated program code is managed as a "document tree structure (i.e., program code tree structure)" (see FIG. 6). The document tree structure has document nodes, and each document node is linked to a corresponding design information node and / or prompt node. By linking, the original design information node or prompt node and the document node generated therefrom can be managed in association with each other. It becomes easy to refer to the corresponding part (see FIG. 7A and FIG. 7B), which makes it easy to correct, change, delete, add, etc. the prompt or generated data (program code). It becomes easy to additionally issue any prompt to a required node in the design information tree structure. When a prompt is corrected, deleted, or additionally issued, the corresponding generated data (corresponding program code) is corrected, deleted, or added, and the hierarchical data set (program tree structure) is automatically updated.
[0031] 2.2. Design Information The design information of the embodiment will be described. FIG. 4A shows an example of design information for configuring a system desired by a user U. The design information includes, as an example, a system overview D0, an actor D 1-1 , D 1-2 ..., Use Case D 2-1 , D 2-2 ..., screen D 3-1 , D 3-2 , D 3-3..., screen element D 4-1 , D 4-2 , D 4-3 ..., Function D 5-1 , D 5-2 , D 5-3 ..., table column D 6-1 , D 6-2 , D 6-3 In the embodiment, the system overview D0 includes design information related to the entire system, such as the system environment, specifications, etc.
[0032] In the embodiment, a hierarchical tree structure is constructed as shown in Fig. 4A. This tree structure defines the relationship between multiple pieces of design information while hierarchically organizing the design information into multiple layers L0 to L6, etc. In the embodiment, in this tree structure, what function is to be implemented for which screen element of which screen, and what information (table / column) of the database is to be referenced or written for that purpose are hierarchically managed.
[0033] 2.3. Description of information processing method and specific processing 3, the information processing method of the embodiment includes, for example, a sheet display step S1, a reception step S2, a prompt generation step S3, an output step S4, an acquisition step S5, and a reference step S6. Each step will be described in detail below.
[0034] (Sheet display step S1) Please refer to FIG. 4B. In the sheet display step S1, the sheet display unit 121 causes the information output unit 13 to display the sheet ST of FIG. 4B. The user U can enter design information into the sheet ST via the input unit 14. The sheet ST is divided into input areas according to layers L0 to L6, etc. In each area, the design information of each node in FIG. 4A is entered as a character string, such as a system overview D0, an actor, a use case, a screen, etc. In FIG. 4B, for the sake of simplicity, only the system overview D0, a use case D1, etc. are entered. 2-1 , screen D 3-1 , D 3-2 For convenience, the manner in which the above is entered is illustrated.
[0035] (Reception step S2) The following description will be given with reference to FIG. 4B and FIG. 5. First, the "design prompt" will be described. In the embodiment, the "design prompt" is a program code (for example, the program code PC 3-1 , P.C. 3-2 , P.C. 3-3 . . . to the large scale language model server 2. This instruction may be, for example, a directive in any language or a directive in a natural language.
[0036] In the embodiment, as an example, two kinds of design prompts 20a, 20b are provided, which are referred to as a first design prompt 20a (see FIG. 4B) or a second design prompt 20b (see FIG. 5) for the sake of distinction.
[0037] The sheet ST in Fig. 4B is for receiving each prompt constituting the first design prompt 20a. In the receiving step S2 of the embodiment, as an example, the receiving unit 122 receives an input of the first design prompt 20a from the user U via the sheet ST in Fig. 4B.
[0038] In the embodiment, the user U enters design information (any actor, any use case, any screen, etc.) in natural language on the sheet ST. Since the large-scale language model server 2 can interpret natural language, the design information in natural language can be treated as a natural language prompt. In the embodiment, the user U issues an instruction to the large-scale language model server 2 via the sheet ST based on the information in the sheet ST, so the user U essentially enters a prompt on the sheet ST. In this sense, in the embodiment, the design information entered in natural language on the sheet ST is also referred to as a first design prompt 20a. The first design prompt 20a is composed of a plurality of natural language prompts.
[0039] It should be noted that, as a practical example, it is desirable for the information processing device 1 to execute a process of adding specific instructions to the character string stored in each record of each node and a process of processing this into Markdown format in order to finally generate a prompt. Although there may be cases where a completed character string is registered as a prompt from the beginning, in general, the character string stored in the sheet ST alone often does not satisfy the requirements as a prompt for the large-scale language model server 2. In this case, it is preferable for the information processing device 1 to generate a prompt by concatenating specific instructions for each node with the character string registered in the sheet ST. In the case of Markdown notation, it is possible to generate a prompt by combining multiple records to create Markdown and adding an instruction that specifies what to do with the Markdown.
[0040] In this regard, in the embodiment, as an example, a predetermined append conversion process is performed on the character strings entered in each record of each node in the sheet ST. The second design prompt 20b is obtained by performing append conversion process on each piece of design information of the first design prompt 20a to convert it into Markdown notation. In the embodiment, as an example, the sheet display unit 121 executes an append conversion process that is preset. This append conversion process supplements the shortage of character strings so as to satisfy the prompt requirements for the large-scale language model server 2, and converts the natural language prompts in each input area (each cell) of the sheet ST into Mermaid notation prompts PRM0, PRM1, PRM2, PRM3, PRM4, PRM5, PRM6, PRM7, PRM8, PRM9, PRM10, PRM11, PRM12, PRM13, PRM14, PRM15, PRM16, PRM17, PRM18, PRM19, PRM20, PRM21, PRM22, PRM23, PRM24, PRM25, PRM26, PRM27, PRM28, PRM29, PRM30, PRM31, PRM32, PRM33, PRM34, PRM35, PRM36, PRM37, PRM38, PRM39, PRM40, PRM41, PRM42, PRM43, PRM44, PRM45, PRM46, PRM47, PRM48, PRM49, PRM50, PRM51, PRM52, PRM53, PRM64, PRM75, PRM86, PRM97, PRM108, PRM116, PRM128, PRM136, PRM145, PRM150, PRM165, PRM176, PRM187, PRM197, PRM216, PRM228, 1―1 . . . (see FIG. 5). The second design prompt 20b can be rewritten as a plurality of Markdown language prompts (i.e., Mermaid prompts PRM0, PRM 1―1 ···).
[0041] As described above, the first and second design prompts 20a, 20b are both prompts based on the design information tree shown in FIG. 4A, and the same content is expressed in different notations.
[0042] In the embodiment, as an example, in each of the first and second design prompts 20a and 20b, different design information such as a system overview, an actor, a use case, etc. are defined according to each layer L0 to L6, etc. As shown in FIG. 5, in the embodiment, multiple prompts PRM0, PRM1, etc. constituting the second design prompt 20b are defined. 1―1 , P.R.M. 1―2 ... is hierarchically organized into multiple layers L0 to L6...
[0043] In each of the first and second design prompts 20a, 20b, the prompts in adjacent layers are associated with each other. For example, in the first design prompt 20a in FIG. 4B, actor D is in layer L1. 1-1 The information is input, and use case D is input to layer L2. 2-1 , D 2-2 are entered, and the relevance of this information is specified in the input area of layer L1 and / or layer L2. In addition, in the second design prompt 20b of FIG. 5, as an example, the prompts of adjacent layers are related by describing the prompts in Markdown format, and more specifically, the prompts of adjacent layers are related by Mermaid notation. A specific example of relating prompts of adjacent layers will be described in "4. Specific examples of prompts and program code."
[0044] In the first design prompt 20a, the system overview D0 is 0-1 Includes: Design Instruction D 0-1 indicates that the data generated by the large-scale language model server 2 based on a plurality of prompts constitutes "one integrated data set." In the embodiment, as an example, the large-scale language model server 2 generates program code as the data set, and this program code is used to construct one integrated system. Therefore, in the embodiment, the design instruction D 0-1 indicates that the first design prompt 20a is composed of a plurality of prompts (design information) that constitute a single integrated system. In response to this, the second design prompt 20b is composed of a system overview prompt PRMO that is a design instruction prompt PRM0-1 Includes design instruction prompt PRM 0-1 As an example, the second design prompt 20b is composed of a plurality of prompts PRMO, PRMO 1-1 , P.R.M. 1-2 ... indicates that they form a single, cohesive system.
[0045] (Prompt generation step S3) In the embodiment, as an example, based on an upper-layer node, a node in a layer lower than the upper-layer node may be automatically generated by the large-scale language model server 2. For example, a list of necessary screens may be generated from a use case, a list of screen elements may be generated from the use case and the screen, or a list of functions may be generated from the screen elements. In this manner, the information processing device 1 may be equipped with a function for automatically creating each node of the design information tree in FIG. 4A from the upper layer to the lower layer in a chain manner. In the embodiment, a character string corresponding to each record of the node automatically generated as described above may be automatically generated as a prompt of the next layer. As an example of this automatic generation, a prompt generation step S3 will be described.
[0046] Please refer to FIG. 4B. In the embodiment, as an example, a prompt generating step S3 is provided. In FIG. 4B, the prompt generating step S3 is illustrated by an arrow. In the embodiment, as an example, the prompt generating unit 123 generates a prompt (for example, a prompt of a higher layer (for example, layer L2) 2-1 ) based on the prompts (e.g. screen D) of the lower layer (e.g. layer L3) 3-1 , D 3-2 )
[0047] As one form of such a prompt generating step S3, the prompt generating step S3 is realized by using the large-scale language model server 2. That is, in the prompt generating step S3, an upper-layer prompt is output to the large-scale language model server 2 (see FIG. 2B). This causes the large-scale language model server 2 to generate a lower-layer prompt.
[0048] For example, use case D as a top-level prompt 2-1 When adopting design information from, for example, "This use case D 2-1 The prompt generating unit 123 may input a question asking, "What screen is needed in the screen D?" as a prompt to the large-scale language model server 2. As a result, the large-scale language model server 2 receives the screen D 3-1 ~D 3-3 Alternatively, the large-scale language model server 2 may not be used. In this case, for example, the prompt generation unit 123 may execute a predetermined rule-based process or refer to a predetermined table or the like, so that when an upper-level prompt is input, a lower-level prompt is output in response to the input.
[0049] The process of the prompt generator 123 is applicable to both the first and second design prompts 20a and 20b.
[0050] (Output step S4) Please refer to Fig. 5. In the output step S4, the output unit 124 outputs the second design prompt 20b to the large-scale language model server 2. In the embodiment, as an example, in the output step S4, the output unit 124 outputs the prompts PRM0, PRM 1-1 , P.R.M. 1-2 ...is output to the large-scale language model server 2. As a data processing method for achieving this, in the embodiment, batch processing may be adopted as an example.
[0051] (Acquisition step S5) Please refer to FIG. 6. In the acquisition step S5, for example, the acquisition unit 125 acquires the program code PC from the large-scale language model server 2. 3-1 , P.C. 3-2 , P.C. 3-3 For convenience, each program code PC 3-1 , P.C. 3-2 , P.C. 3-3The program code set 30 is also collectively referred to as a program code set 30. The acquisition unit 125 acquires each of the acquired program codes PC 3-1 , P.C. 3-2 , P.C. 3-3 ... is stored in the storage unit 11. Each program code PC 3-1 , P.C. 3-2 , P.C. 3-3 ... and each prompt PRM 3-1 , P.R.M. 3-2 , P.R.M. 3-3 are linked to each other and stored in the storage unit 11. This link links corresponding nodes in both tree structures together.
[0052] Here, since the actors and use cases are requirement definitions, each piece of design information (screen, screen elements, functions, data objects, etc.) is determined in order in the lower layers. In one embodiment, the program code is actually generated and stored in the layers L3 and after corresponding to the "screen", and in consideration of this, the program code corresponding to the layers L0 to L2 is not generated in FIG. 6. It should be noted that the layer L3 of the "screen" may not have a screen, and in this case, a function may be linked below it by a batch file or API. The top layer L0 has various uses, and it is possible to describe the overview of the system, define the environment, and specify the language and framework. In this way, the layer L0 mainly allows the setting of prerequisites, and the large-scale language model server 2 can select a language and build an environment based on this.
[0053] The acquisition unit 125 of the embodiment uses the sheet ST of the sheet display unit 121 as a storage format, for example. 3-1 , P.C. 3-2 , P.C. 3-3 This allows the user U to easily grasp the correspondence between the "···" and each of the first and second design prompts 20a, 20b.
[0054] (See step S6) Please refer to Figures 7A and 7B. In the reference step S6, as an example, the reference unit 126 displays reference information 40 on the information output unit 13. The reference information 40 includes information on the components of the program code set 30 generated in the acquisition step S5 (i.e., each program code PC 3-1 , P.C. 3-2 , P.C. 3-3 . . . ) and the corresponding parts of each prompt constituting the first or second design prompt 20a, 20b are presented to the user U. As an example, the reference information 40 of the embodiment is generated when the user U selects the design information D with the mouse cursor MC on the sheet ST. 3-3 When you select the corresponding part, the program code PC 3-3 may be highlighted (see hatching in FIG. 7B).
[0055] It should be noted that Fig. 7B shows only one example, and the present invention is not limited to this. In the embodiment, it is preferable that the information processing device 1 not only stores each program code, but also stores the location of the program code, and the location is always automatically updated. "Location" includes, for example, file name, line number, ID, class, etc. The program code and its location may be stored in the same table (table ST) as the design tree, but is not limited to this, and may be stored in another table as long as the relationship can be secured.
[0056] When the order of a higher-level node or the same node is changed by rewriting a program at a previous prompt, the location information located after the program is rewritten each time, and it is preferable that the location is always automatically updated.
[0057] In an embodiment, various prompt generation patterns across various hierarchies or records can be adopted. As an example, it is preferable to perform ID management for each prompt generation and automatically update the association between the program code and location of the generated result.
[0058] 3. Description of the Functions and Effects of the Embodiments As described above, according to the embodiment, a plurality of prompts in the design prompt are appropriately hierarchically organized into a plurality of layers L0 to L6, etc. Therefore, the large-scale language model server 2 can generate a systematic data set (a systematic program code, for example) based on the design prompt. As a result, the effort and man-hours required for integrating fragmentary data sets can be reduced, and data generation using the large-scale language model server 2 can be efficiently performed. Another advantage is that the data set generation work of the user U can be efficiently supported.
[0059] In particular, in the embodiment, it is possible to generate systematic program code for developing any system desired by a user U. The task of integrating fragmented program code has a problem of increasing the number of steps. The embodiment can effectively suppress this problem.
[0060] Furthermore, according to the embodiment, by presenting the reference information 40 to the user U in the reference step S6, there is an advantage that the user U can easily confirm or edit the data set (program code).
[0061] Also, according to the embodiment, there is an advantage that in the sheet display step S1, the user U can easily organize the prompts for each layer L0 to L6 . . . within the sheet ST.
[0062] Furthermore, according to the embodiment, in the prompt generation step S3, a lower-layer prompt is generated based on an upper-layer prompt, which has the advantage of enabling prompts to be generated systematically by reflecting the relevance of design information between upper and lower layers.
[0063] Furthermore, according to the embodiment, there is an advantage that in the prompt generation step S3, the large-scale language model server 2 can be used to automatically generate lower-level prompts.
[0064] Furthermore, according to the embodiment, there is an advantage that in the output step S4, prompts can be systematically given to the large-scale language model server 2 in an appropriate order from the top to the bottom.
[0065] Furthermore, according to the embodiment, the second design prompt 20b is written in Markdown format, which has the advantage of dramatically improving the convenience of managing a plurality of prompts in a hierarchical manner.
[0066] Also, according to the embodiment, the first design prompt 20a is a design instruction D 0-1 and the corresponding design instruction prompt PRM 0-1 can be provided to the large-scale language model server 2. This has the advantage that, after providing background information regarding one collected data set desired by the user U, the large-scale language model server 2 can process a large number of prompts in a systematic and unified manner.
[0067] 4. Examples of prompts and program codes Please refer to Figures 8A, 8B, and 9. Figure 8A is an example of a prompt in Mermaid notation, and Figure 8B is an example of program code (SQL code) generated by the large-scale language model server 2 using the content of Figure 8A as a prompt. Note, however, that some content has been omitted with "...". Also, since the example described here illustrates the association between prompts, for the sake of simplicity, no mention will be made of the specification of layer numbers in the prompt hierarchy.
[0068] Figure 8A prompt example PRM ex1 is an example of how to associate multiple prompts. ex1 Here is an example prompt: ex2 Contents and prompt example PRM ex3 , P.R.M. ex4 It makes connections between each of the contents.
[0069] Fig. 9 is an ER diagram based on the contents of Fig. 8A. In the embodiment, by adopting the Mermaid notation, there is an advantage that program code generation and various diagrams (any diagram such as an ER diagram) can be realized simultaneously.
[0070] 5. Modifications, etc. The sheet ST in FIG. 4B may adopt any format that can organize the design information into a list. The sheet ST may be, for example, a spreadsheet, or a data input area in any spreadsheet software or the like. The sheet ST is only an example, and any input form other than a sheet may be adopted. It is preferable that the sheet ST has a function for organizing the design information into a list, but this is not limiting, and any data input method and data format may be adopted.
[0071] In the embodiment, the first design prompt 20a is converted into the second design prompt 20b and output to the large-scale language model server 2. However, this is not limiting, and as a modified example, the first design prompt 20a (the content of the sheet ST in FIG. 4B) may be output to the large-scale language model server 2 in natural language as it is, and in this case, the second design prompt 20b may be omitted.
[0072] However, as another modified example, the user U can of course manually perform any operation (correction, change, addition, deletion, etc.) in the prompt or program code described in the embodiment. For example, the user U can perform any additional input to the data of the second design prompt 20b stored in the storage unit 11. Alternatively, the user U may enter a prompt in any Markdown format or any programming language on a sheet ST or any format, and this may be output to the large-scale language model server 2 as the first design prompt 20a. In this modified example, the process of converting a natural language prompt is not necessary, so the second design prompt 20b does not exist.
[0073] As another variation, the description method of the second design prompt 20b is not limited to Mermaid notation, and any Markdown format description method may be adopted, or any format capable of hierarchical expression may be adopted, not limited to Markdown format.
[0074] In the reference step S6, the highlight display is just one example, and any reference function can be adopted. Any information that can identify the corresponding part may be displayed, for example, the line number of the corresponding part.
[0075] As another modification, the prompts may be provided to the large-scale language model server 2 from each node separately and in an appropriate order. Such a modification may be set as a default state. For example, this modification can be used in applications where it is necessary to define each item in detail, such as from a screen element to a function, or from a function to a type of data or a data type to be referenced, etc.
[0076] As another modified example, the information processing device 1 may convert a multi-record character string in a specific node into a Markdown format such as Mermaid and output this as a prompt to the large-scale language model server 2. In particular, it is preferable to use it in generating a sequence diagram, an ER diagram, a class diagram, or the like. It is not limited to Mermaid notation, and for example, when an association is selected for an arbitrary character string using a pull-down or the like, the information processing device 1 may automatically convert it into the specified Markdown format. This has the advantage that the user U can save the trouble of marking up. For example, in the case of Mermaid notation, the information processing device 1 may be configured to automatically define the following definition without the user having to enter it: ` ` ` mermaid erDiagram ||--o{ : ||--|{ :
[0077] As another modified example, the information processing device 1 may generate and issue a prompt by concatenating character strings for each branch of a tree spanning multiple nodes. This can be used, for example, when defining a function in detail at multiple hierarchical levels.
[0078] As a modified example of the prompt generation step S3 in the embodiment, the information processing device 1 may generate a prompt with N child node records (N is any natural number) for one parent node record. For example, if a parent node (upper layer node) has a screen and a child node (lower layer node) has multiple screen elements used on that screen, the information processing device 1 may generate a CSS according to a conversion process stored in advance using the prompt, or may cause the large-scale language model server 2 to generate a CSS. For example, the CSS may be generated from an ID form, a password form, a login button, and a forgotten password button on a login screen.
[0079] In the information processing method according to the embodiment, the "hierarchical data set" generated by the large-scale language model server 2 is not limited to program code (program code group 30 in FIG. 6), and any data set can be adopted. As a modified example, the "hierarchical data set" may be, for example, a scenario branching tree structure of an interactive story. In this case, each branching scenario may be treated as a document node, similar to the program code in FIG. 6, etc. As another example, the "hierarchical data set" may be a tree structure of scenario patterns of a game. As an example, the actors and use cases in the design information tree in FIG. 4A may be replaced with, for example, scenario 1 and scenario 2, etc.
[0080] As another example of the information processing method according to the embodiment, the "hierarchical data set" may be any hierarchical data set in the industrial design field or the architectural design field. For example, in the industrial field, parts may be assembled by linking each layer to a BOM (Bill of Materials). Here, BOM refers to a list of parts, a bill of materials, or a bill of materials configuration required for the manufacture of a product in the manufacturing industry, etc.
[0081] In the information processing method according to the embodiment, the data format included in the "hierarchical data set" is not limited to text data. The large-scale language model server 2 can employ any large-scale language model capable of generating non-text data (e.g., images, sounds, music, videos, or 3D data (3D models, 3D scenes), etc.). In this case, the design prompt may include a prompt for generating any non-text data, and any non-text data may be included in the "hierarchical data set." The above-mentioned 3D data may include, for example, three-dimensional CG and CAD (Computer Aided Design).
[0082] In addition, in the example of the information processing method according to the embodiment, a form of generating a program code for system design has been described, but the present invention is not limited to this. The information processing method according to the embodiment can also be used to generate images (objects) such as still images, videos, CG (computer graphics), CAD, etc. For example, in the case of CG, elements (e.g., objects, textures, light sources, cameras, etc.) of a scene graph (which shows the relationships between elements in an image) can be regarded as nodes, and the elements are given relationships. By regarding these "elements" as "layers" as explained in the embodiment, and creating each prompt in the manner explained in the embodiment, an image (object) can be generated. By linking various libraries such as textures, animations, etc. to the configuration of this modified example, a highly convenient image (object) production application can be constructed.
[0083] The information processing method, the program, and the information processing system according to the embodiment can be applied to the variations of the "hierarchical data set" listed above. Specifically, the sheet display step S1 to the reference step S6 in FIG. 3 may be applied to each of these variations. In each of these variations, the design instruction D 0-1 However, a user may indicate that multiple prompts constitute "one complete data set."
[0084] In the embodiment, various hierarchical patterns of prompt passing are assumed, and various patterns can be adopted for the method of passing the prompt. As a first example, only a list of character strings in a natural language may be passed simply. As a second example, a combination of Markdown notation and a command statement indicating what to do may be passed. As a third example, a command that utilizes the hierarchical structure of the JSON format as it is may be passed. As a fourth example, an image, vector data, sound, 3D object, motion data, or interaction may be passed. In this fourth example, the storage location may be described in a list. As a fifth example, two or more of the first to fourth examples may be combined and adopted.
[0085] Various embodiments are exemplified below. The embodiments shown below can be combined with each other. [Appendix 1] 1. An information processing method for generating a hierarchical data set, comprising the steps of: The method includes a receiving step, an output step, and an acquiring step, In the receiving step, a design prompt is received, the design prompts include instructions for generating the data set and are comprised of a plurality of prompts arranged in a plurality of tiers; the prompts of adjacent layers are associated with each other; The output step includes outputting the design prompt to a large-scale language model; An information processing method, wherein the acquiring step acquires the dataset from the large-scale language model.
[0086] [Appendix 2] 13. The information processing method according to claim 1, The data set includes program code for constructing a system.
[0087] [Appendix 3] 10. The information processing method according to claim 1, further comprising: Further comprising a referencing step, The reference step includes displaying the reference information; An information processing method, wherein the reference information indicates corresponding portions between components of the data set generated in the acquisition step and the prompts that constitute the design prompt.
[0088] [Appendix 4] An information processing method according to any one of Supplementary Note 1 to Supplementary Note 3, A sheet display step is further provided, In the sheet display step, a sheet for receiving input of a character string is displayed, The sheet is divided into input areas according to the layers, In the receiving step, the prompt is received based on the contents of the sheet.
[0089] [Appendix 5] An information processing method according to any one of Supplementary Note 1 to Supplementary Note 4, A prompt generating step is further included, The information processing method, wherein the prompt generating step generates a prompt at a lower level based on the prompt at an upper level.
[0090] [Appendix 6] 6. The information processing method according to claim 5, An information processing method, wherein in the prompt generating step, the prompt in a lower layer is generated by outputting the prompt in an upper layer to the large-scale language model.
[0091] [Appendix 7] An information processing method according to any one of Supplementary Note 1 to Supplementary Note 6, In the output step, the prompts are output to the large-scale language model in order from the top.
[0092] [Appendix 8] An information processing method according to any one of Supplementary Note 1 to Supplementary Note 7, The design prompt includes instructions expressed in Markdown or Markup format.
[0093] [Appendix 9] An information processing method according to any one of Supplementary Note 1 to Supplementary Note 8, the design prompt includes design instructions; 11. A method of processing information, comprising: providing a design prompt for designing a plurality of inputs for a plurality of inputs; and providing a design prompt for designing a plurality of inputs for a plurality of inputs.
[0094] [Appendix 10] A program for causing a computer to execute the information processing method according to any one of Supplementary Note 1 to Supplementary Note 9.
[0095] [Appendix 11] An information processing system comprising at least one information processing device that executes each step of the information processing method according to any one of Supplementary Note 1 to Supplementary Note 9.
[0096] Although the embodiments have been described above, they are presented as examples and are not intended to limit the scope of the invention. The novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made. The embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0097] 1: Information processing equipment 2: Large-scale language model server 6: Communication network 10: Communications Department 11: Storage section 12: Control section 13: Information output section 14: Input section 15: Communication bus 20a: Design prompt (first design prompt) 20b: Design prompt (second design prompt) 30: Program code group 40: Reference information (highlighted) 100: Information processing systems 121: Sheet display area 122: Reception 123: Prompt generation unit 124: Output section 125: Acquisition section 126:Reference section L1, L2, L3, L4, L5, L6: Layers D0: Design information (system overview) D 0-1 :Design information (design instructions) D 1-1 , D 1-2 :Design information (actor) D 2-1 , D 2-2 : Design information (use case) D 3-1 ~D 3-3 :Design information (screen) D 4-1 ~D 4-3 :Design information (screen elements) D 5-1 ~D 5-3 :Design information (function) D 6-1 ~D 6-3 : Design information (tables and columns) PRM0: Prompt (System Overview Prompt) PRM 0-1 : Prompt (design instruction prompt) PRM 1-1 , P.R.M. 1-2 :Prompt(Actor) PRM 2-1 , P.R.M. 2-2 :Prompt (use case) PRM 3-1 ~PRM 3-3 : Prompt (screen) PRM 4-1 ~PRM 4-3 :Prompt (screen element) PRM 5-1~PRM 5-3 :Prompt(function) PRM 6-1 ~PRM 6-3 : Prompt (table column) PRM ex1 ~PRM ex4 :Prompt example PC 3-1 ~PC 3-3 : Program code (screen) PC 4-1 ~PC 4-3 : Program code (screen elements) PC 5-1 ~PC 5-3 : Program code (function) PC 6-1 ~PC 6-3 : Program code (tables and columns) ST: Seat MC: Mouse cursor U :User
Claims
1. An information processing method for generating program code, comprising the steps of: causing a computer to execute a receiving step, an output step, and an acquiring step; In the receiving step, a design prompt is received, the design prompts include instructions for generating the program code and are comprised of a plurality of prompts arranged in a plurality of tiers; the plurality of prompts include prompts defining design information, and the prompts of adjacent layers are associated with each other; The output step includes outputting the design prompt to a large-scale language model; The obtaining step obtains the program code from the large-scale language model; the design prompt includes design instructions; The information processing method, wherein the design instructions instruct that program code generated by a large-scale language model based on the plurality of prompts constitute a single integrated system.
2. The information processing method according to claim 1, The design prompt includes a system overview, a system environment definition, a system language specification, or a framework specification.
3. The information processing method according to claim 1, An information processing method, wherein the design information includes an actor, a use case, a screen, a screen element, a function, a table, or a column.
4. The information processing method according to claim 3, An information processing method, wherein the plurality of prompts include a prompt as shown in (a) below and a prompt as shown in (b) below: (a) prompts indicating the functionality to be implemented for each screen element on each screen (b) A prompt to instruct reference or writing to each table or each column in order to realize (a) above.
5. 2. The information processing method according to claim 1, further causing the computer to perform a referencing step; The reference step includes displaying the reference information; An information processing method, wherein the reference information indicates a corresponding portion between a component of the program code generated in the obtaining step and the prompt that constitutes the design prompt.
6. 2. The information processing method according to claim 1, causing the computer to further perform a prompt generating step; The information processing method, wherein the prompt generating step generates a prompt at a lower level based on the prompt at an upper level.
7. 7. An information processing method according to claim 6, An information processing method in which, in the prompt generation step, the prompt in the lower layer is generated by outputting the prompt in the upper layer to the large-scale language model so as to generate a list of elements or a list of functions for the design information of the prompt in the upper layer as the prompt in the lower layer.
8. 2. The information processing method according to claim 1, Each of the prompts defining the design information constitutes a respective node in each layer; In the output step, each of the prompts is output to the large-scale language model in order from the top, thereby causing the large-scale language model to generate the program code in correspondence with each of the nodes.
9. 2. The information processing method according to claim 1, The design prompts include instructions expressed in a Markdown or Markup format.
10. A program for causing a computer to execute the information processing method according to any one of claims 1 to 9.
11. An information processing system comprising at least one information processing device that executes each step of the information processing method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Text processing model training method and text processing method and device
CN112487182A
Page building method, apparatus, device and non-volatile computer storage medium
JP2018534657A
Automatic flow implementation from text input
JP2023172931A
Text generation device and text generation method
JP7313757B1
JPP7506957B
Cited By
Drawing description generating program and drawing description generating apparatus
JP2026089175A
System development support method, program, and development support system
JP2026116039A
AI collaborative programming support system and method
JP2026132795A
System Development Support Method, Program, and Development Support System
JP7692134B1
Information processing method, information processing device, and program for controlling interaction with a large-scale language model using an external structure.
JP7883731B1
