Information processing device, information processing method, and program

JP2025025447AActive Publication Date: 2025-02-21PAYPAY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023130210
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-08-09
Publication Date
2025-02-21
Estimated Expiration
2043-08-09

AI Technical Summary

Benefits of technology

【0007】 本発明の一態様によれば、所望のコードを容易に生成することができる情報処理装置、情報処理方法、およびプログラムを提供することができる。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025025447000001_ABST
    Figure 2025025447000001_ABST
Patent Text Reader

Abstract

To easily generate desired codes.SOLUTION: An information processing device comprises: an acquisition unit which acquires a document including a method for using a library of a prescribed programming language and sample codes of the library, and a task definition for instructing the generation of sample codes using the library; and a processing unit which acquires information of sample codes corresponding to the task definition in a method according to the way of use of the library obtained by inputting the document and the task definition to an AI chatbot learned so as to output information along an instruction by text with an instruction by text including program codes as an input.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an information processing device, an information processing method, and a program. [Background technology]

[0002] Conventionally, a program generation device has been disclosed that includes a generation unit that generates a composite program based on one or more program components, a visualization unit that visualizes the contents of the composite program, and a regeneration unit that regenerates the composite program based on the one or more program components when a user inputs a predetermined instruction for the visualized composite program (see, for example, Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent Publication No. 2022-17685 Summary of the Invention [Problem to be solved by the invention]

[0004] In conventional techniques, it is sometimes difficult to generate the desired code.

[0005] The present invention has been made in consideration of the above circumstances, and an object of the present invention is to provide an information processing device, an information processing method, and a program that can easily generate a desired code. [Means for solving the problem]

[0006] One aspect of the present invention is an information processing device that includes an acquisition unit that acquires a document including a method for using a library in a specified programming language and sample code for the library, and a task definition that instructs the system to generate sample code using the library, and a processing unit that acquires information on the sample code corresponding to the task definition in a manner that conforms to the method for using the library, by inputting the document and the task definition into an AI chatbot that is trained to receive text instructions including program code as input and output information in accordance with the text instructions. Effect of the Invention

[0007] According to one aspect of the present invention, it is possible to provide an information processing device, an information processing method, and a program that can easily generate a desired code. [Brief description of the drawings]

[0008] [Figure 1] 1 is a diagram illustrating an example of a configuration of an information processing system 1. [Diagram 2] FIG. 1 is a configuration diagram of an information processing device 100. [Diagram 3] FIG. 2 is a diagram for explaining an outline of the processing performed by the summarizing section 110. [Figure 4] 10 is a diagram for explaining an overview of processing by a processing unit 130. FIG. [Diagram 5] FIG. 1 is a diagram showing an example of sample code (1) generated without using this embodiment and sample code (2) generated using this embodiment. [Figure 6] 1 is a sequence diagram showing an example of the flow of processing executed by the information processing device 100 and the AI ​​chatbot server 200. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, an embodiment of a method for controlling an information processing device of the present invention will be described with reference to the drawings. Various devices for providing services to users and performing internal analysis, such as the "information processing device" that will appear below, may be realized by a distributed device group, and each device may be operated by a different business operator. In addition, the owner of the hardware of the device (the provider of the cloud server) and the business operator that actually operates the device may also be different.

[0010] 1 is a diagram showing an example of the configuration of an information processing system 1. The information processing system 1 includes, for example, an information processing device 100 and an AI chatbot server 200. These communicate with each other via a network NW. The network NW includes, for example, the Internet, a LAN (Local Area Network), a wireless base station, a provider device, and the like.

[0011] [AI Chatbot] The AI ​​chatbot server 200 is a model that periodically obtains information from an information source 300 such as an Internet site by crawling, and is trained to respond to text input based on common sense. The AI ​​chatbot server 200 is known by names such as ChatGPT (GPT-4), Alpaca, Vicuna, Raven RWKV, and Marvin. The AI ​​chatbot server 200 is a model that is trained to receive, for example, text instructions including program code as input and output information according to the text instructions. When a document and a task definition are input, the AI ​​chatbot server 200 outputs sample code information corresponding to the task definition in a manner that conforms to the use of the library. For example, the AI ​​chatbot server 200 is a model that is trained to receive, for example, a document, a task definition, and text instructions, and output sample code information corresponding to the task definition in a manner that conforms to the use of the library according to the instructions. When a document, a task definition, and instructions are input, the AI ​​chatbot server 200 outputs sample code information corresponding to the task definition in a manner that conforms to the use of the library according to the instructions. In the above, sample data may be input, and sample code incorporating the sample data may be output.

[0012] [Information processing device] FIG. 2 is a configuration diagram of the information processing device 100. The information processing device 100 includes, for example, a summarizing unit 110, an acquiring unit 120, a processing unit 130, a providing unit 140, and a storage unit 170. The components other than the storage unit 170 are realized by, for example, a hardware processor such as a CPU (Central Processing Unit) executing a program (software). Some or all of these components may be realized by hardware (including circuitry) such as an LSI (Large Scale Integration), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a GPU (Graphics Processing Unit), or may be realized by cooperation between software and hardware. The program may be stored in advance in a storage device (a storage device having a non-transient storage medium) such as an HDD (Hard Disk Drive) or a flash memory, or may be stored in a removable storage medium (non-transient storage medium) such as a DVD or a CD-ROM, and installed in the storage device by mounting the storage medium in a drive device.

[0013] The storage unit 70 is a HDD, a flash memory, a RAM (Random Access Memory), etc. The storage unit 70 may be a NAS (Network Attached Storage) device that the information processing device 100 can access via a network.

[0014] The storage unit 70 stores, for example, document information 172, summary information 174, definition information (task definition, schema definition) 176, generation information 178, etc. The document information 172 is a document in a predetermined program language. For example, the document information 172 is information in Structured Query Language (SQL). Details of these pieces of information will be described later.

[0015] (Summary) The summarizing unit 110 divides the document information 172 and inputs each of the divided documents in turn to the AI ​​chatbot server 200, thereby obtaining summary information that summarizes the input divided documents.

[0016] The document information 172 includes, for example, document information related to a library of a specific version (e.g., how to use the library), sample code (e.g., code such as Java), points to note in a specific version, FAQ, a list of changes up to the specific version, and the like. Some of the above information may be omitted. The document information 172 may also include information such as sample data. The sample code is sample code for implementing the functions of the library. The sample data is sample data used in the sample code. There is a limit to the amount of data (e.g., the number of tokens) that the AI ​​chatbot server 200 can process at one time. When the amount of data in the document information 172 exceeds the limit, the summarizing unit 110 divides the document so that the amount of data does not exceed the limit. The summarizing unit 110 inputs the divided documents in order to the AI ​​chatbot server 200, and obtains a summary of the document output by the AI ​​chatbot server 200.

[0017] FIG. 3 is a diagram for explaining an overview of the processing of the summarizing unit 110. For example, the summarizing unit 110 divides a document into three parts, inputs the document to the AI ​​chatbot server 200 in three separate inputs, and obtains a summary for each input. The summarizing unit 110 generates summarized and encoded summary information 174 based on the summarized document, and stores the generated summary information 174 in the storage unit 170. This is a preprocessing step for the AI ​​chatbot server 200 to process the document again, as described later. The method of summarizing and encoding is determined by the internal implementation of the AI ​​chatbot server 200. The summary information 174 is, for example, information that integrates summaries. For example, the summary information 174 is a single document obtained by sequentially connecting summaries corresponding to the divided documents output by the AI ​​chatbot server 200. The above document includes, for example, document information related to a specific version of the library (for example, how to use the library), sample code, points to note in a specific version, FAQ, a list of changes up to the specific version, and the like. Some of the above information may be omitted. The document may also include information such as, for example, sample data.

[0018] (Acquisition Department) The acquiring unit 120 acquires the summary information 174 (document information 172) and the definition information 176 from the storage unit 170. When the summary information 174 or the definition information 176 is stored in another storage unit or provided from another device, the acquiring unit 120 acquires it from the other storage unit or from another device.

[0019] The definition information 176 is a task definition that instructs to generate sample code by utilizing a library (document information 172). The definition information 176 is, for example, information that defines the structure and properties of database data, the relationships between data, rules for operating the database, and the like. The definition information 176 is, for example, information that defines how data is specifically stored. The definition information 176 is, for example, information that indicates the framework of a database.

[0020] (Processing section) The processing unit 130 obtains information on sample code corresponding to the task definition in a manner conforming to the usage of the library according to the instruction, which is obtained by inputting a document, a task definition, and an instruction to the AI ​​chatbot server 200. For example, the processing unit 130 inputs summary information 174 and definition information 176 to the AI ​​chatbot server 200, and instructs the AI ​​chatbot server 200 to output sample code that applies the sample data of the document conforming to the usage of the library input to the definition information 176.

[0021] FIG. 4 is a diagram for explaining an overview of the processing of the processing unit 130. The processing unit 130 acquires the generation information 178 output by the AI ​​chatbot server 200. The generation information 178 is sample code that applies sample data of a document in accordance with the usage of the library input to the definition information 176. The sample code is sample code in which sample data is incorporated into the framework of the code. For example, sample code in which sample data in accordance with the usage of the library is incorporated is generated in "i0 (AR1 in the figure)" to "i8 (AR2 in the figure)" of the definition information 176 in FIG. 4. The sample code is code that can test whether the function of the library is realized using sample data, or code that supports the administrator in creating code. The sample code may be partially missing or partially defective. In this case, the administrator checks and corrects the sample code to eliminate the missing or defective parts. Specifically, the processing unit 130 instructs the AI ​​chatbot server 200 to automatically generate program code using the library. 4, as an example, the processing unit 130 passes definition information of an SQL table and instructs to generate a usage example of the code of the library accordingly. Note that in the above example, instead of the sample code into which the sample data has been imported, the sample code before the sample data was imported may be generated.

[0022] (Providing Department) The providing unit 140 displays the sample code acquired by the processing unit 130 on a display unit (not shown) or provides it to another terminal device. Furthermore, the providing unit 140 may execute the sample code to check whether it operates normally.

[0023] In this embodiment, the AI ​​chatbot server 200 has been described as having a limit on the amount of data it can handle, but if there is no limit on the amount of data it can handle or if the target document can be processed without being divided, the processing performed by the summarization unit 110 and the functional configuration of the summarization unit 110 may be omitted. In this case, the processing unit 130 inputs the document information 172 and the definition information 176 to the AI ​​chatbot server 200, requests the AI ​​chatbot server 200 to output sample code that uses sample data in accordance with how to use the library of the input document, and obtains the above sample code from the AI ​​chatbot server 200.

[0024] The processing of each of the above functional units may be performed based on the user's operation. For example, the summarizing unit 110, the acquiring unit 120, the processing unit 130, or the providing unit 140 may execute the processing in response to the user's operation, or each processing may be executed automatically.

[0025] As described above, the information processing device 100 automatically generates sample code using a document, and therefore, desired code can be easily generated.

[0026] For example, you may be given a specific document and asked to quickly create a sample code using a library in the document. For example, it is a lot of work to read through the entire document and create the sample code.

[0027] Even if you try to use an AI chatbot, it may be difficult to create the desired sample code. For example, the AI ​​chatbot server 200 may learn information before a specific document is made public, and may not have learned about the specific document. In this case, even if you use the AI ​​chatbot server 200, you may not be able to create sample code that uses the library of the specific document.

[0028] In this embodiment, as described above, even if the AI ​​chatbot has not studied a specified document, the information processing device 100 can easily generate sample code that conforms to the contents of the specified document by inputting summary information 174 (document information 172) and definition information 176 to the AI ​​chatbot server 200.

[0029] Furthermore, even if the AI ​​chatbot cannot process an entire document at once, in this embodiment, the information processing device 100 can easily create sample code by dividing the document and using the divided documents.

[0030] FIG. 5 is a diagram showing an example of sample code (1) generated without using this embodiment and sample code (2) generated using this embodiment. Sample code (1) is sample code generated without inputting a specific document. In sample code (1), the contents of a specific (latest) document are not reflected. That is, in sample code (1), the contents of a recent document are not reflected, and code of a non-existent library generated independently by the AI ​​chatbot server 200 is described. In contrast, in sample code (2), a specific document is provided to the AI ​​chatbot server 200, so that sample code reflecting the specific document is generated. As described above, the information processing device 100 can easily create sample code reflecting a specific document.

[0031] [Sequence diagram] FIG. 6 is a sequence diagram showing an example of the flow of processing executed by the information processing device 100 and the AI ​​chatbot server 200. Note that some or all of the processing in the sequence may be performed manually. For example, the process of dividing the document in S10 may be performed by a work instructor. First, the information processing device 100 divides the document information 172 (S10). Next, the information processing device 100 transmits the divided document to the AI ​​chatbot server 200 and requests summarization (S12). Next, the AI ​​chatbot server 200 summarizes the transmitted document (S14). Next, the AI ​​chatbot server 200 transmits the summary to the information processing device 100 (S16). The information processing device 100 and the AI ​​chatbot server 200 execute the processes from S12 to S16 for each divided document.

[0032] Next, the information processing device 100 integrates the summaries summarized by the AI ​​chatbot server 200 (S18). Next, the information processing device 100 transmits the integrated summary, summary information 174, and definition information 176, to the AI ​​chatbot server 200, and requests the generation of sample code using sample data in accordance with the usage of the document library (S20). Next, the AI ​​chatbot server 200 generates sample code in response to the request (S22), and transmits the generated sample code to the information processing device 100 (S24). Next, the information processing device 100 acquires the transmitted sample code and stores the acquired sample code in the storage unit 170 as generation information 178 (S26). The transmitted sample code is provided to, for example, a work instructor. For example, it is displayed on a display unit of the work instructor's terminal device.

[0033] As described above, the information processing device 100 can automatically generate desired sample code by using the AI ​​chatbot server 200.

[0034] In this embodiment, the use of a database schema has been described as an example, but the present invention may also be applied to a task of acquiring sample code. In this case, the document information 172 is information related to the sample code, and the definition information 176 includes a code definition for creating the code.

[0035] The above describes the form for carrying out the present invention using an embodiment, but the present invention is not limited to such an embodiment, and various modifications and substitutions can be made within the scope that does not deviate from the gist of the present invention. [Explanation of symbols]

[0036] 100 Information processing device 110 Summary 120 Acquisition Department 130 Processing section 172 Document Information 174 Summary Information 176 Definition information 178 Generated information

Claims

1. an acquisition unit that acquires a document including a method for using a library in a predetermined programming language and sample code for the library, and a task definition that instructs the user to generate the sample code using the library; a processing unit that acquires sample code information corresponding to the task definition in a manner conforming to the usage method of the library by inputting the document and a task definition into an AI chatbot that is trained to receive text instructions including program code as input and output information in accordance with the text instructions; An information processing device comprising:

2. A summarizing unit that divides the document and inputs each of the divided documents into the AI ​​chatbot in order to obtain summary information that summarizes the input divided documents, The processing unit acquires the sample code obtained by inputting a document summarizing the plurality of pieces of summary information acquired by the summarizing unit and the task definition into the AI ​​chatbot. The information processing device according to claim 1 .

3. The AI ​​chatbot is a model trained to respond to the input text by learning publicly available information, The model is a model that has not been trained on the document. The information processing device according to claim 1 .

4. One or both of the acquisition unit and the processing unit execute a process in response to a user's operation. The information processing device according to claim 1 .

5. Obtaining a document including a method for using a library in a predetermined programming language and sample code for the library, and a task definition instructing the user to generate the sample code using the library; Inputting the document and the task definition to an AI chatbot that is trained to receive text instructions including program code and output information according to the text instructions; Obtaining sample code information corresponding to the task definition in a manner conforming to the usage of the library, which is obtained by inputting the sample code information. Information processing methods.

6. On the computer, Obtaining a document including a method for using a library in a predetermined programming language and sample code for the library, and a task definition instructing the user to generate the sample code using the library; inputting the document and the task definition into an AI chatbot that is trained to receive text instructions including program code and output information according to the text instructions; obtaining sample code information corresponding to the task definition in a manner conforming to the usage of the library, program.

Citation Information

Patent Citations

  • Program generation device, program generation method and program

    JP2022017685A