Information processing device, information processing method, and information processing program
The system addresses inefficiencies in LLM-based information extraction by generating a static script for LLMs, reducing time and cost, and ensuring consistent accuracy across diverse file formats.
Patent Information
- Application Number
- JP2024539757
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2024-04-11
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-04-11
AI Technical Summary
Existing large-scale language models (LLMs) require repeated calls for information extraction, leading to inefficiencies in time and cost, and inconsistent extraction accuracy due to the lack of a constant extraction process.
A system that generates a static script using a trained language model (LLM) for information extraction from various file formats, reducing the need for repeated calls and ensuring consistent accuracy by using sample data and prompts to create a reusable script.
The system reduces time and cost while ensuring reproducible and accurate extraction of desired information from diverse file formats, allowing non-specialist users to create effective scripts.
Smart Images

Figure 0007551203000012 
Figure 0007551203000001 
Figure 0007551203000004
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing apparatus for acquiring desired information from a file data group including various information. [Background technology]
[0002] In recent years, the use of large-scale language models (LLMs, hereinafter sometimes abbreviated as LLMs) to acquire predetermined information from file data groups has become widespread. For example, Patent Document 1 discloses a technology that uses LLMs to collect character information related to predetermined items from a variety of printed materials with no set format, such as advertising flyers. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent No. 7430437 Summary of the Invention [Problem to be solved by the invention]
[0004] The technology of Patent Document 1 collects one or more pieces of character information related to one or more specific items from a group of character strings printed on a leaflet read by OCR by giving the LLM a prompt including an instruction to specify the items to be collected and various other instructions related to the collection. In the case of such a technology, the LLM must be called up every time information collection processing is performed, which causes problems of time and cost. In addition, since the LLM is called up every time processing is performed, there is a problem that the extraction accuracy is not constant. [Means for solving the problem]
[0005] Therefore, in order to solve the above-mentioned problems, the present invention provides the following information processing device etc. That is, the information processing device includes a prompt setting unit that sets a prompt for specifying desired information, which is information on a desired item, from a plurality of file data including a plurality of target items, a sample setting unit that sets sample file data to be input to a trained language model together with the set prompt, a script generation unit that inputs the set prompt and the set sample file data to the trained language model to generate a script for acquiring the specified desired information, and a desired information acquisition unit that acquires the specified desired information from the target file data by the generated script.
[0006] In addition to the above features, the present invention provides an information processing device further comprising a script storage unit for storing the generated script.
[0007] In addition to the above-mentioned features, the present invention provides an information processing device in which the script generating unit further inputs answer information that is information on the correct answer of the specified desired information for the sample file data to generate the script.
[0008] In addition to the above features, the present invention provides an information processing device further having a script evaluation unit that evaluates the result of obtaining the specified desired information from the sample file data using the generated script in comparison with the correct answer information.
[0009] In addition to the above-mentioned features, the present invention provides an information processing device in which the script generation unit further inputs an evaluation result by the script evaluation unit to generate the script.
[0010] In addition to the above features, the present invention provides an information processing device further having a script correction unit that inputs the generated script and some or all of the target file data into the trained language model and corrects the generated script to adapt it to the target file data.
[0011] In addition to the above-mentioned features, the present invention provides an information processing device in which the script correction unit further inputs a prompt that is the basis of the generated script into the trained language model to correct it.
[0012] In addition to the above-mentioned characteristics, the present invention provides an information processing device in which the script correction unit also corrects the script stored in the script storage unit.
[0013] In addition to the above features, the present invention provides an information processing device further comprising a detailed prompt setting unit for setting a detailed prompt that is a detailed prompt for acquiring desired information specified by the set prompt.
[0014] In addition to the above features, the present invention provides an information processing apparatus further comprising a verification unit that verifies the acquisition result acquired by the desired information acquisition unit.
[0015] In addition to the above features, the present invention provides an information processing device in which the script correction unit corrects the script by reflecting a result of the verification by the verification unit.
[0016] The present invention also provides an information processing method executed by an information processing device, comprising: a prompt setting step of setting a prompt for specifying desired information, which is information relating to a desired item, from a plurality of file data including a plurality of target items; a sample setting step of setting sample file data to be input into a trained language model together with the set prompt; a script generation step of inputting the set prompt and the sample file data into the trained language model to generate a script for acquiring the desired information; and a desired information acquisition step of acquiring the desired information from the plurality of target file data using the generated script.
[0017] The present invention also provides an information processing program that causes an information processing device to execute the following steps: a prompt setting step for setting a prompt for specifying desired information, which is information relating to a desired item, from a plurality of file data including a plurality of target items; a sample setting step for setting sample file data to be input into a trained language model together with the set prompt; a script generation step for inputting the set prompt and the sample file data into the trained language model to generate a script for acquiring the desired information; and a desired information acquisition step for acquiring the desired information from the plurality of target file data using the generated script.
[0018] The present invention also provides an information processing device having a script holding unit that holds a script for acquiring desired information, which is information relating to a desired item, from a plurality of file data including a plurality of target items, a held script correction unit that inputs a part or all of the target file data into the learned language model and corrects the held script to adapt it to the target file data, and a second desired information acquisition unit that acquires the desired information from the plurality of target file data using the corrected script.
[0019] In addition to the above-mentioned features, the present invention provides an information processing device in which the retained script correction unit further inputs a prompt for correcting the retained script to the pre-trained language model for correction.
[0020] The present invention also provides an information processing method executed by an information processing device, comprising: a script retaining step of retaining a script for acquiring desired information, which is information relating to a desired item, from a plurality of file data including a plurality of target items; a retained script modification step of inputting a part or all of the target file data into the trained language model and modifying the retained script to adapt it to the target file data; and a second desired information acquisition step of acquiring the desired information from the plurality of target file data using the modified script.
[0021] The present invention also provides an information processing program that causes an information processing device to execute the following steps: a script retaining step of retaining a script for acquiring desired information, which is information relating to a desired item, from a plurality of file data including a plurality of target items; a retained script modification step of inputting a part or all of the target file data into the learned language model and modifying the retained script to adapt it to the target file data; and a second desired information acquisition step of acquiring the desired information from the plurality of target file data using the modified script. Effect of the Invention
[0022] According to the present invention, it is possible to obtain desired information from a file data group containing various information while reducing the time and cost required, and to extract reproducible information with a certain degree of extraction accuracy. [Brief description of the drawings]
[0023] [Figure 1] FIG. 1 is a block diagram showing an example of a functional configuration of an information processing apparatus according to a first embodiment; [Diagram 2] Conceptual diagram explaining the functions of the script generation part [Diagram 3] FIG. 1 is a conceptual diagram showing an example of the hardware configuration for implementing an information processing device according to a first embodiment of the present invention; [Figure 4]FIG. 1 is a flow chart showing an example of a process flow of an information processing apparatus according to a first embodiment. [Diagram 5] FIG. 11 is a block diagram showing an example of a functional configuration of an information processing apparatus according to a second embodiment. [Figure 6] A diagram showing the detailed prompt settings and examples [Figure 7] A diagram showing how each setting in the Advanced prompt is applied [Figure 8] Conceptual diagram showing an example of an input screen when setting detailed prompts [Figure 9] A diagram showing various settings for performing verification. [Figure 10] Conceptual diagram showing an example of converting PDF file data into a text file with location information added [Figure 11] Conceptual diagram showing another example of converting file data formats [Figure 12] A conceptual diagram showing another aspect of data reduction. [Figure 13] Conceptual diagram showing an example of displaying the location on the image as evidence [Figure 14] FIG. 11 is a block diagram showing an example of a functional configuration of an information processing apparatus according to a third embodiment. [Figure 15] FIG. 11 is a flow chart showing an example of a process flow of an information processing apparatus according to a third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0024] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. Note that the present invention should not be limited to these embodiments, and can be embodied in various forms without departing from the spirit of the present invention.
[0025] <Example 1> <Summary> The present invention is directed to obtaining desired information by executing a script (simple program) from various file data groups, and generates the script by inputting sample file data and a prompt into a learned language model (LLM, hereinafter sometimes abbreviated as LLM), which is typically a large-scale language model. Here, a static script can be generated that ensures robustness (the degree to which extraction can be performed accurately from a variety of formats) within the range of the input samples. In addition, the LLM is called only once when generating the script, which reduces the time and cost required by the conventional technology. In addition, since processing is performed using a static script, the extraction result is uniquely determined.
[0026] The following describes the functions and processing flow of the information processing device, as well as the contents of the hardware. The functional blocks of the present system described below can be realized as a combination of hardware and software. Specifically, if a computer is used, the hardware components include a CPU (Central Processing Unit), main memory, bus, or secondary storage device (hard disk drive, non-volatile memory, storage media such as CDs and DVDs, and drives for reading these media, etc.), input devices used for inputting information, printers, display devices, and other external peripheral devices, as well as interfaces for the external peripheral devices, communication interfaces, driver programs and other application programs for controlling these hardware devices, and user interface applications. Then, by the arithmetic processing of the CPU according to the program deployed on the main memory, data input from input devices and other interfaces and stored in the memory or hard disk is processed and stored, and commands for controlling the above hardware and software are generated. Alternatively, the functional blocks of the present system may be realized by dedicated hardware.
[0027] This invention can be realized not only as a system, but also as a method. A part of such an invention can be configured as software. Furthermore, a program used to cause a computer to execute such software, and a recording medium on which the program is fixed, are naturally included in the technical scope of this invention (the same applies throughout this specification).
[0028] <Functional configuration> Fig. 1 is a block diagram showing an example of the functional configuration of an information processing device according to the present embodiment. As shown in Fig. 1, the information processing device 100 includes a prompt setting unit 101, a sample setting unit 102, a script generating unit 103, a script storage unit 104, and a desired information acquiring unit 105.
[0029] <Prompt setting section> The prompt setting unit 101 has a function of setting a prompt for specifying desired information, which is information on a desired item, from a plurality of file data including a plurality of target items. The target file data may be stored in a storage provided in the present information processing device, or may be stored in a storage connected to the present information processing device via a communication line or the like. In addition, there are many types of file formats for the file data, and the file formats are not limited to these, but include, for example, Word files, Portable Document Format (PDF) files, Excel files, image files, Comma Separated Values (CSV) files, text files, Building Information Modeling (BIM) files, 2D Computer Aided Design (2D CAD) files, and 3D model files.
[0030] In addition, "desired information" means information on a desired item or information obtained by performing some kind of calculation or processing on the information on that item (total number, average information, maximum information, spatial relationships such as distance and collision, 3D model information, 3D graphic information, image, text information, etc.). For example, when the "total number of elevators" is desired from a group of file data of CSV files related to the facilities of multiple buildings, the number of elevators in the buildings included in each file is extracted and the total number of elevators is the desired information. In addition to the calculation of number information, the results of processing such as 3D space processing and 3D graphic processing may be set as the desired information. For example, when the "collision points between columns and beams" are desired for 3D model files of multiple buildings, the desired information is 3D space information obtained by extracting all the models of columns and beams included in each file, calculating whether they collide, and extracting the collision points.
[0031] Furthermore, for example, when the "inconsistencies between the elevation and floor plans" are desired for 3D drawing files of multiple buildings, all architectural design information of the elevation and floor plan contained in each file is extracted, and the presence or absence of consistency when reconstructed as a 3D solid is confirmed, and the text of the inconsistencies becomes the desired information. In such 3D spaces and processing of 3D spaces, the present invention, which performs a certain process statically, often allows the desired information to be obtained more accurately. A prompt for specifying such desired information is set. This prompt may be set by the user, or may be set in advance by a person who provides the device to the user.
[0032] A script for acquiring the desired information specified by a prompt set in the script generating unit described later is generated, but a prompt for instructing the generation of the script may also be set in the prompt setting unit. For example, if the desired information is "total number of elevators" as in the above example, a prompt may be set with instructions for specifying the desired information, such as "Please find the total number of elevators from multiple given CSV files," or a prompt may be set with instructions for creating a script for acquiring the specified desired information, such as "Please create a script for finding the total number of elevators from multiple given CSV files."
[0033] Furthermore, if the script processing is complicated, you can set a prompt to generate the script in multiple steps. For example, in the example of extracting "collision points between pillars and beams" from the 3D model mentioned above, you can divide it into (1) a prompt to generate a script to extract the pillar and beam models contained in each file, (2) a prompt to generate a script to check whether there is a collision between them, and (3) a prompt to generate a script to obtain information on the 3D space where the collision points have been extracted, and specify a prompt to generate each script.
[0034] <Sample setting section> The sample setting unit 102 has a function of setting sample file data to be input to the trained language model together with the set prompt. The sample file data is a model file data when desired information is acquired from a plurality of target file data. For example, when "total number of elevators" is set as the desired information as in the above example, a CSV file of a plurality of "building facilities" including information on the number of elevators is set as the sample file data. When "collision points between columns and beams" is set as the desired information, a 3D model file of a plurality of building structures including information on columns and beams is set as the sample file data. When "consistency between elevations and floor plans" is set as the desired information, a 2D drawing file of a plurality of "building designs" including information on elevations and floor plans is set as the sample file data.
[0035] It is also preferable to set a plurality of file data containing desired information and each having a different format as sample file data, since this contributes to the generation of a script that can generically obtain desired information from file data of various formats.
[0036] In many cases, the sample file data is naturally a small number compared to the multiple file data to be acquired, but the opposite is also possible. The sample file data may be a part of the multiple file data to be acquired, or may be a different file data. The sample file data may be set by the user, or may be set in advance by a person who provides the device to the user.
[0037] For convenience, the prompt setting and the sample file data setting have been described as separate configurations, but the prompt and the sample file data may be configured to be set together. In other words, by setting a prompt that specifies desired information and also includes link information to sample file data, the functions of the prompt setting unit and the sample setting unit described above can be realized in the same way.
[0038] <Script generation part> The script generation unit 103 has a function of inputting the set prompt and the set sample file data into the trained language model, and generating a script for acquiring the specified desired information.
[0039] 2 is a conceptual diagram explaining the function of the script generation unit. The example shows sample file data 201 and 202. The sample file data is a list showing the facilities (elevators, fire extinguishing facilities, sanitary facilities) for each building and their number, with one sample file data 201 written in Japanese and the other sample file data 202 written mainly in English.
[0040] These sample file data are input to the LLM along with the prompts. In the following, we will use the LLM, which is a typical example of a trained language model, to explain. Note that the trained language model may be anything other than the LLM, such as a small language model or a multimodal language model that can handle images and other formats, as long as it can perform natural language processing tasks.
[0041] And the prompt 203 shown is: "I'll give you some sample CSV files listing the facilities of buildings. These lines show the types and quantities of facilities in multiple buildings. Please create a script that extracts the number of elevators from these CSV files and calculates the total number." This instructs the generation of a script that calculates the total number of elevators, which is the desired information.
[0042] LLM 204 generates a script in response to the input of such prompt 203 and sample file data 201, 202. By using a list of English characters as well as a list of Japanese characters as sample file data, the generated script 205 executes a process of adding up the total number of pieces of information in the "Number" column in the row where the "Equipment" column is "Elevator" and the total number of pieces of information in the "Number" column in the row where the "Elevator" column is "Equipment". By inputting various samples of characters, it is possible to create a script that can handle so-called "variations in characters."
[0043] In addition, when the script processing is complicated as described above, a script may be generated for each of the prompts set in a plurality of steps. Also, it is conceivable that the user may modify the generated script by himself.
[0044] In addition, by inputting sample file data in various formats, it is possible to generate a script that can properly extract information from file data in each format.In the example of extracting "collision points between columns and beams" from the 3D model mentioned above, by inputting multiple 3D models in different formats as sample data, a general-purpose script that can handle a variety of model formats can be generated.
[0045] The script generation unit can also be configured to generate a script by further inputting correct answer information, which is correct information of the desired information specified for the sample file data. For example, in the above example, if the total number of elevators extracted from the set sample file data is "241," this "241" becomes the correct answer information. Inputting this correct answer information into the LLM also contributes to the generation of a script that can obtain the desired information more accurately.
[0046] The correct answer information specified here may be in any format, such as not only numerical information but also a 3D space model resulting from the processing of the script, a 2D figure, an image, or text. Moreover, the correct answer information may be not only information on the final result of the script but also information on the correct answer in the processing process. For example, in the example of extracting "collision points between pillars and beams" from the above-mentioned 3D model, (1) the pillar and beam models included in each file, (2) the presence or absence of collision between them, and (3) information on the 3D space from which the collision points are extracted may be given as correct answer information in the processing process. Furthermore, since it requires expertise in operation for the user to specify the 3D model that is the correct answer information, it is also desirable to install a 3D viewer or display unit that allows the user to easily specify the 3D model or 3D space that is the correct answer information.
[0047] <Script storage section> The script storage unit 104 has a function of storing the generated script. By having the script storage unit, it is possible to reuse a script that has been set once, and to acquire values with reproducibility from a large amount of target file data. In addition, the generated script may be used to store the acquisition results acquired by the desired information acquisition unit (described later) in association with the original prompt and sample file data that were input together.
[0048] <Desired information acquisition unit> The desired information acquisition unit 105 has a function of acquiring the specified desired information from the target file data by the generated script. The generated script is executed on the target file data to perform processing to acquire the specified desired information. It is preferable to save the acquired results. This is to provide the acquired results for post-processing such as verifying and reformatting the acquired results, as will be described later.
[0049] In addition, the information acquired by the desired information acquisition unit may be passed to another script as new target file data. In other words, the generation of the script and the acquisition of desired information from the target file in the present invention can be linked, making it possible to configure more complicated processing.
[0050] As described above, the process of obtaining the desired information is performed by executing a script, which reduces the time and cost required compared to calling LLM each time to obtain the desired information, and also enables reproducible information to be extracted with a certain degree of extraction accuracy.
[0051] Furthermore, there was an issue where "even if we tried to prepare a static script to solve this problem, only engineers with specialized knowledge could create the script themselves." However, by generating scripts with LLM, it has the effect of allowing anyone to create their own scripts.
[0052] <Hardware configuration> 3 is a conceptual diagram showing an example of the configuration of hardware for realizing the information processing device of the first embodiment. As shown in the figure, the information processing device 300 has a CPU 301 that performs various arithmetic processing, a RAM 302 that is a volatile recording medium, a storage 303 such as a flash memory or HDD that is a non-volatile storage medium, a communication interface 304, and an input / output interface 305. The RAM 302 reads out a program that performs various arithmetic processing to cause the CPU 301 to execute the program, and provides a work area (working area) for the program. In addition, a plurality of addresses are assigned to the RAM 302, and the programs executed by the CPU 301 can exchange data with each other and perform processing by identifying and accessing the addresses (the same applies throughout this specification).
[0053] Here, the functions of the prompt setting unit 101, the sample setting unit 102, the script generating unit 103, and the desired information acquiring unit 105 of the information processing device 100 in Fig. 1 are mainly realized by the CPU 301 and the RAM 302 in Fig. 3. Also, the function of the script storing unit 105 is mainly realized by the storage 303 in Fig. 3. Also, when a database that stores file data is present externally, or when an extracting unit uses a trained language model such as an LLM that is present externally, each function is realized by mutually sending and receiving signals and information via a communication interface 304 and an input / output interface 305.
[0054] <Processing flow> FIG. 4 is a flow diagram simply illustrating an example of the flow of processing of the information processing device according to the first embodiment. First, a prompt for specifying desired information, which is information related to a desired item, from a plurality of file data including a plurality of target items is set (S401: prompt setting step). Then, sample file data to be input to the trained language model together with the set prompt is set (S402: sample setting step). Then, the set prompt and the set sample file data are input to the trained language model to generate a script for acquiring the specified desired information (S403: script generation step). Then, the generated script is accumulated (S404: script accumulation step). Then, the specified desired information is acquired from the target file data by the generated script (S405: desired information acquisition step). The sample setting step may be performed before the prompt setting step, or both steps may be performed integrally. Also, the script accumulation step may be performed after the desired information acquisition step.
[0055] <Effects> According to the information processing device of this embodiment, it is possible to obtain desired information from a group of file data containing various information while reducing the time and cost required, and it is also possible to extract reproducible information with a certain degree of extraction accuracy.
[0056] <Example 2> <Summary> The present embodiment is an information processing apparatus based on the first embodiment, and further includes a configuration for evaluating and modifying a generated script, a configuration for setting more detailed prompts, and a configuration for verifying acquired results.
[0057] <Functional configuration> Fig. 5 is a block diagram showing an example of the functional configuration of the information processing device of this embodiment. As shown in Fig. 5, the information processing device 500 has a prompt setting unit 501, a sample setting unit 502, a script generating unit 503, a script storing unit 504, and a desired information acquiring unit 505, similar to the first embodiment, and further has a script evaluating unit 506, a script correcting unit 507, a detailed prompt setting unit 508, and a verifying unit 509. The description of the same configuration as the first embodiment will be omitted, and the script evaluating unit 506, the script correcting unit 507, the detailed prompt setting unit 508, and the verifying unit 509 will be described below.
[0058] <Script evaluation section> The script evaluation unit 506 has a function of evaluating the result of acquiring the specified desired information from the sample file data by the generated script, by comparing it with the correct answer information. This correct answer information is as described in the script generation unit of the first embodiment. The generated script actually acquires the desired information from the sample file data, and the result is compared with the correct answer information, thereby making it possible to evaluate how accurate the script is. In other words, if the acquired result matches the correct answer information, it can be evaluated as accurate.
[0059] Moreover, by configuring the script generation unit to further input the evaluation results to the LLM, it is possible to generate a script based on the evaluation results, which can be useful for generating a more accurate script. For example, it is also possible to configure the system to continue regenerating the script until the acquired information matches the correct answer information. Note that the script evaluation may be performed on the scripts stored in the script storage unit.
[0060] <Script modification part> The script correction unit 507 has a function of inputting the generated script and a part or all of the target file data into the trained language model, and correcting the generated script so as to adapt it to the target file data. Note that the trained language model used for the correction may be the same as the trained language model used in the script generation unit described above, or may be a different one.
[0061] For example, if the target file data contains file data in a file format that was not included in the sample file data input when creating the script, or contains item names to be acquired, the desired information may not be acquired accurately. To prevent such a situation, the generated script is input into the trained language model together with the target file data.
[0062] Then modify the script by providing a prompt like the example below: This script was written with the following objective in mind: Select the row that indicates elevators from the list of facilities in the building from the CSV file, extract the information from the column indicating the total number, and calculate the total number. However, it may not work properly with the file data you are processing. Please find out what is not working properly and fix the script." For example, if a script created to obtain the "total number of elevators" executes a process of adding up the total number of pieces of information in the "Number" column in a row where the "Equipment" column is "Elevator" and the total number of pieces of information in the "Number" column in a row where the "Equipment" column is "Elevator", if the target file data includes file data having a "Number" column in a row where the "Equipment" column is "Elevator", the information of this file data will not be obtained, and accurate desired information cannot be obtained. Therefore, by inputting the created script and the target file data into the trained language model along with the above-mentioned prompt, a script adapted to the target file data can be generated.
[0063] The modification to adapt to the file data may be performed by inputting the file data one by one from the target file data into the LLM, or by inputting all the file data into the LLM, or by further inputting the prompt that was the basis for creating the script to be modified.
[0064] In addition, the scripts stored in the script storage unit can be modified in the same way as the generated scripts are modified. Since the stored scripts may need to be modified due to an increase, decrease, or change in the target file data, it is preferable to configure the scripts so that they can be modified.
[0065] <Detailed prompt settings section> The detailed prompt setting unit 508 has a function of setting a detailed prompt, which is a detailed prompt for acquiring desired information designated by the set prompt. The setting items of the detailed prompt described below include items to be applied in script generation, items to be applied to target file data, items to be applied when acquiring desired information from target file data by executing the generated script, and may also be items to be applied in post-processing using LLM after the execution of the script. The manner in which the detailed prompt is applied can be set in various ways.
[0066] Figure 6 illustrates the detailed prompt setting items (name, description, necessity) and a setting example (example). In this example, the prompt set to specify the desired information is "Please output the collision points between the columns and beams."
[0067] For example, setting item 1 is named "Assign multiple desired information names," and is indicated as a setting item for "accurate understanding of character definitions." The explanation for this is "explicitly assign multiple desired information to be extracted," with an example being "["pillar,""Pillar"]." By setting this detailed prompt, an instruction is added to the instruction "Output the collision points between pillars and beams," to include not only "pillar," but also anything marked as "Pillar" as a target for extraction.
[0068] Other setting items for the detailed prompt include "Add description of desired information", which adds an explanation of the desired information to be extracted for an accurate understanding of the character definition, "Format specification", which allows the user to specify the format they want to extract in order to prevent erroneous extractions and standardize the format of the output results, "Condition setting", which changes the extracted content according to specific conditions in order to handle exceptions and improve accuracy, and "Show sample script", which sets in advance a script that LLM will use as a reference when generating a script in order to improve the accuracy of script generation in LLM. Of course, there are more than just these, and users can set various setting items themselves to configure the detailed prompt.
[0069] Here, the application methods for each of the setting items mentioned above can be broadly divided into three: Method 1 "narrow down the file contents," Method 2 "connect the prompts," and Method 3 "check and reformat the detection results." Method 1 means narrowing down the file data to be input before inputting it into LLM, and Method 2 means connecting the configured detailed prompt to the main prompt. Method 3 means reformatting the extraction results according to a specified format, etc.
[0070] Fig. 7 is a diagram showing how each setting item of the detailed prompt is applied. As shown in the figure, for each of the items "Assigning multiple desired information names", "Assigning description of desired information", "Condition setting", and "Show sample script", "Linking prompts" of method 2 is applied. Furthermore, for "Format specification", all of methods 1 to 3 are applied. Application examples will be described later.
[0071] FIG. 8 is a conceptual diagram showing an example of an input screen when a detailed prompt is set. As shown in the figure, a prompt "Please output the collision point between the column and the beam" that has already been set is displayed on the upper left side of a screen 801. Then, input fields 802 for each setting item of "desired information name", "format specification", "condition setting", and "sample script" are displayed on the left side of the screen. In addition, input fields for other setting items are displayed by a user's operation. A detailed prompt is set by accepting a user's input operation in each of these input fields. Then, the script generation unit applies the set detailed prompt to generate a script, or the desired information acquisition unit applies the set detailed prompt to acquire desired information. By setting a detailed prompt in this manner, it is possible to improve the accuracy of acquiring desired information.
[0072] Here is an example of applying the above detailed prompt. For example, if you set "'Pillar' also refers to 'column'" in the "Desired information name" field and "If pillar cannot be extracted, output blank" in the "Condition setting" field, this detailed prompt will be connected to the main prompt and input. Then, by applying the "Desired information name", the 3D model marked "Pillar" will also be extracted as a pillar, and the collision point between the pillar and beam will be output. Also, if a pillar cannot be extracted from the target file data, a blank will be output.
[0073] Furthermore, the detailed prompt setting unit can be configured to automatically set each setting item according to the set prompt when setting the detailed prompt. Alternatively, it may be configured to accept settings made by the user and recommend some settings for items that have not been set. By accepting detailed prompt settings from the user, extraction can be performed flexibly and appropriately in accordance with the user's intentions, but it may be difficult for the user to set the optimal prompt. Therefore, functions such as automatic entry and suggestion of detailed prompts are effective. These functions can simplify the process and improve operability.
[0074] In order to simplify and improve operability, it is also preferable to configure the desired information acquisition unit to perform a test that applies the set prompt and detailed prompt before executing the script on all of the target file data. This test involves executing the script on a portion of the target file data. Based on the results of this test, the user can determine whether the set prompt and detailed prompt will bring about the results he or she desires, and can reconfigure the prompts, etc., to obtain more desirable acquisition results.
[0075] As shown in Fig. 8, a "Test" button 804 is displayed on the left side of a screen 801 below a detailed prompt input field 802 and a prompt display field 803, and a test is performed by pressing this button. The test results are displayed in a dotted frame 805 that is shown for explanatory purposes in the figure. Based on the extracted results from this test, the user can reset the prompt or perform actual acquisition processing using the script that obtained the test results.
[0076] In this example, the detailed prompt is set separately from the prompt for specifying desired information. However, the prompt and the detailed prompt may be set continuously and integrally.
[0077] <Verification Department> The verification unit 509 has a function of verifying the results obtained by the desired information acquisition unit. There are various specific aspects of the verification by the verification unit. The verification described below may be performed by inputting a prompt to the LLM, or by executing a coded script.
[0078] 9 is a diagram illustrating various settings when performing verification. As shown in the figure, four types of settings can be made, namely, "Use detailed prompts", "Verification prompts", "Verification script", and "Compare between files".
[0079] "Use detailed prompt" uses the extraction settings set in the detailed prompt for validation. For example, if a format is specified in the "Format specification" setting item of the detailed prompt, the specified format is compared with the extraction results to validate whether "the extraction results are within a certain similarity range with the specified format." In addition, the settings in "Condition setting" are used to validate whether "if extraction is not possible, are blanks output?"
[0080] Furthermore, the "verification prompt" is used to set a unique prompt for verification, for example, by setting and inputting a prompt such as "Please check whether this information indicates the material of the elevator door." Furthermore, the "verification script" is used to set a unique script for verification, for example, as shown in the figure, by inputting a command to return "Error" if the detection result is less than "1," and to return "OK" otherwise.
[0081] Furthermore, when extracting from multiple files, "file comparison" checks the validity of the extracted results by comparing them with other files. As an example, when comparing extracted files A to D, file A, file C, and file D are all written using numbers and symbols only, whereas file B is written mainly in kanji. In such a case, the verification result is that "file B is not valid compared to the others."
[0082] Here, when the verification unit verifies the obtained results, the script modification unit described above can be configured to modify the script to reflect the verification results. For example, if the information in the extraction result is an error as described above, an instruction such as "In the previous extraction, information XXX was extracted, but the verification result was an error. Please modify the script taking this error result into consideration" is input to the LLM to modify the script.
[0083] <Hardware configuration> The information processing device of this embodiment can be realized by the hardware configuration shown in Fig. 3 according to the embodiment 1. The functions of a script evaluation unit 506, a script correction unit 507, a detailed prompt setting unit 508, and a verification unit 509, which are components specific to the information processing device of the embodiment 2 shown in Fig. 5, are mainly realized by the CPU 301 and the RAM 302 in Fig. 3.
[0084] <Processing flow> The process flow of the information processing device of this embodiment is basically the same as the process flow of the information processing device of embodiment 1. The information processing device of this embodiment further includes a script evaluation step of evaluating the result of obtaining desired information from sample file data by the generated script in comparison with correct answer information, a script correction step of inputting the generated script and a part or all of the target file data into a trained language model and correcting the generated script so as to adapt it to the target file data, a detailed prompt setting step of setting a detailed prompt that is a detailed prompt for obtaining desired information by the set prompt, and a verification step of verifying the acquisition result obtained in the desired information acquisition step.
[0085] <Effects> According to the information processing apparatus of this embodiment, it is possible to provide an information processing apparatus which aims to improve the accuracy and robustness of desired information acquisition.
[0086] <Additional features> Based on the first or second embodiment, the information processing device may be configured with the following functional configuration added thereto.
[0087] <Filtering section> The filtering unit has a function of removing predetermined file data from the target file data to be acquired by the desired information acquisition unit. There are various filtering methods. For example, filtering is performed based on file attributes (extension, size, file name, data items associated with the file, etc.). Also, individual keywords are set and filtering is performed based on these keywords. Specifically, filtering is performed by generating a script for filtering by performing semantic search, clustering, character search, etc., and executing the script. Filtering may also be performed by giving instructions to the LLM. For example, by inputting an instruction such as "Does this file contain elevator contents?", filtering can be performed based on whether or not the file contains elevator contents.
[0088] This filtering function can meet the needs of users who, for example, want to obtain the area from the architectural summary of 500 target file data, but want to skip the elevation drawings.
[0089] <Conversion section> The conversion unit has a function of converting the format of the target file data according to the characteristics of the file data. When the information processing device has a conversion unit, the desired information acquisition unit acquires the desired information from the file data converted by the conversion unit. For example, when the file data is in PDF format, it is converted into a text file format. In addition, in the case of image data, character recognition is performed by OCR to convert it into a text file format. In addition, in the case of three-dimensional data, it may be converted into two-dimensional data or an image. Such conversion contributes to improving robustness.
[0090] Furthermore, when converting to a text file, it is also preferable to convert so that the location information of the text is added. FIG. 10 is a conceptual diagram showing an example of converting PDF format file data into a text file with location information added. FIG. 10(a) shows a part of a PDF format file showing a building area table of a house. FIG. 10(b) shows an example of converting each text of "shape", "formula", and "area" into a JSON format described with their location information. FIG. 10(c) shows an example of converting text into an Array format described with location information. In this way, by adding location information, extraction is performed taking into account the relationship between texts, which contributes to improving robustness. FIG. 10(d) shows an example of converting text showing a table showing the "area" and "tatami" of each of "Western-style room 1", "Western-style room 2", and "Western-style room 3" in the original file into text with table information instead of location information (within the dotted line frame in the figure). By converting in this way, it is possible to obtain the target while maintaining the table structure.
[0091] Fig. 11 is a conceptual diagram showing another example of converting the format of file data. As shown in Fig. 11, in the case of a file containing figures (kitchen floor plan), converting it into SVG format and making it text with figure information makes it easier to obtain using a script. Conversely, two-dimensional vector information may be converted into a raster image, or data may be converted from three-dimensional to two-dimensional.
[0092] <Data Reduction Division> The data reduction unit has the function of reducing the target file data. Data reduction can be performed in various ways. For example, data reduction can be performed by narrowing down the target file data to a specific space, property, area, specific page or section, paragraph, table, etc. It is also possible to filter by file attributes (page number, position, etc.), by individual keywords (semantic search, clustering, character search), or by spatial position (x, y, z, coordinates). Filtering can also be performed by inputting instructions to the LLM ("Does this file contain elevator contents?").
[0093] FIG. 12 is a conceptual diagram showing another aspect of data reduction. As shown in FIG. 12(a), a specific portion 1202 is cut out from one file data 1201, and it is checked whether the target data is included therein. If the target data is included as a result, the portion is subjected to an acquisition process for acquiring the desired information. If the target data is not included, a portion 1203 shifted from the previous portion is cut out, and a similar check is performed. In this way, by excluding from the acquisition target those that do not contain the target data in the check before acquisition, it is possible to improve the processing efficiency. Note that this check may be performed by executing a script, using LLM, or by other methods. Also, such processing may be performed in a three-dimensional space.
[0094] 12(b), the above-mentioned check is performed while shifting the specific portion, and the portion containing the desired data is temporarily stored in memory 1204. Then, it is checked whether processing memory 1204 contains all the elements necessary to acquire the desired data, and if it does, the portion held in the memory is provided for acquisition processing by the desired information acquisition unit. On the other hand, if it does not contain all the elements, the specific portion is shifted further and the series of processes from the above-mentioned check are repeated.
[0095] <Ground indication section> The reason display unit has a function of displaying the reason why the result obtained by the desired information obtaining unit was obtained.
[0096] This information processing method allows users to set a prompt to specify the desired information, input it into the LLM together with sample file data, and execute the generated script to obtain the desired information. However, it can be difficult to set a prompt to generate an optimal script to obtain the desired information. Therefore, by displaying the reasons (intermediate processes, etc.) that led to the obtained results, it is possible to show the user "what they can do to improve the obtained results."
[0097] Fig. 13 is a conceptual diagram showing an example of displaying a position on an image as evidence. The figure shows a PDF file showing a building area table of a house, and the position of information (characters) obtained from this file is highlighted on the image by being surrounded by a thick dotted frame 1301. This allows the user to know where the obtained results were obtained from. Also, for a script that processes a 3D model, displaying the process of the script and highlighting the information used at that time are also useful for checking the evidence.
[0098] Also, a display explaining the reason for the acquisition may be displayed. For example, as a pre-processing step, an instruction such as "Please output the reason why this information was output as the acquisition result for each detailed process" can be input to the LLM before acquisition. Then, after acquisition, the acquisition result is displayed, and the reason, for example, "Z-01301 is located 140px to the right of the text "Drawing number" and matches the specified regular expression, so Z-01301 was extracted as the drawing number" is displayed. In this way, the user can reflect on various settings by being shown the effect of the prompt that he or she set and the script generated by it on the acquisition result, which can contribute to optimizing the acquisition of desired information.
[0099] <Example 3> <Summary> The present embodiment is an information processing apparatus similar to the information processing apparatus of the first or second embodiment.
[0100] <Functional configuration> 14 is a block diagram showing an example of the functional configuration of the information processing device of this embodiment. As shown in FIG. 14, the information processing device 1400 includes a script storage unit 1401, a stored script correction unit 1402, and a second desired information acquisition unit 1403.
[0101] <Script storage section> The script storage unit 1401 has a function of storing a script for acquiring desired information, which is information on a desired item, from a plurality of file data including a plurality of target items. In the first embodiment, the script generated by the script generation unit was the subject of correction by the script correction unit, but in this embodiment, a script created and set in advance is stored in the script storage unit. The contents of the stored script are the same as those in the first and second embodiments, so a repeated description will be omitted.
[0102] <Retention script modification part> The retained script correction unit 1402 has a function of inputting a part or all of the target file data into the trained language model, and correcting the retained script to adapt it to the target file data.
[0103] The function of the stored script correction unit is the same as the function of the script correction unit in the first and second embodiments, except that the target of correction is a script stored in the script storage unit. Therefore, a redundant description will be omitted here.
[0104] The system can also be configured to input prompts to the trained language model to modify the stored script, such as prompts on how the script should be modified, such as specifying file types or formats that should be adapted for acquisition, or specifying data that should be removed.
[0105] <Second desired information acquisition unit> The second desired information acquisition unit 1403 has a function of acquiring the desired information from the target multiple file data by the modified script. The function of the second desired information acquisition unit is the same as the function of the desired information acquisition unit in the first and second embodiments, except that the desired information is acquired by the script modified by the stored script modification unit. Therefore, a redundant description will be omitted here.
[0106] <Hardware configuration> The information processing device of this embodiment can be realized by the hardware configuration shown in Fig. 3 according to the embodiment 1 or 2. The functions of the stored script correction unit 1402 and the second desired information acquisition unit 1403 of the information processing device of the embodiment 3 shown in Fig. 14 are mainly realized by the CPU 301 and the RAM 302 in Fig. 3. Also, the function of the script storage unit 1401 is mainly realized by the storage 303 in Fig. 3.
[0107] <Processing flow> 15 is a flow diagram showing an example of the process flow of the information processing device of this embodiment. First, a script for acquiring desired information, which is information on a desired item, from a plurality of file data including a plurality of target items is stored (S1501: script storage step). Then, a part or all of the target file data is input to a trained language model, and the stored script is modified to adapt to the target file data (S1502: stored script modification step). Then, the modified script is used to acquire the desired information from the target file data (S1503: conversion step).
[0108] <Effects> According to the information processing apparatus of this embodiment, by making it possible to modify a script that has been set up and stored in advance, it is possible to obtain desired information using a script that is adapted to the target file data. [Explanation of symbols]
[0109] 100, 500: Information processing equipment 101, 501: Prompt setting section 102, 502: Sample setting section 103, 503: Script generation section 104, 504: Script storage section 105, 505: Desired information acquisition unit 506: Script evaluation section 507: Script Modification Section 508: Detailed prompt setting section 509: Verification Department 301:CPU 302:RAM 303: Storage 304: Communication interface 305: Input / Output Interface 1400: Information processing device 1401: Script storage unit 1402: Retention script modification part 1403: second desired information acquisition unit
Claims
1. a prompt setting unit for setting a prompt for designating desired information from file data including the desired information; a sample setting unit that sets sample file data to be input to a trained language model together with the set prompt; a script generation unit that inputs the set prompt and the set sample file data into the trained language model to generate a script for acquiring specified desired information; The script generation unit is an information processing device that further inputs correct answer information that is correct answer information of the specified desired information for the sample file data to generate the script.
2. The information processing apparatus according to claim 1 , further comprising a script storage unit that stores the generated script.
3. 3. The information processing apparatus according to claim 1, further comprising a desired information acquisition unit that acquires the specified desired information from the file data by the generated script.
4. 4. The information processing apparatus according to claim 3, further comprising a script evaluation unit that evaluates a result of acquiring the specified desired information from the sample file data by the generated script in comparison with the correct answer information.
5. The information processing apparatus according to claim 4 , wherein the script generating section further receives an evaluation result by the script evaluating section to generate the script.
6. The information processing device according to claim 3 , further comprising a script correction unit that inputs the generated script and a part or all of the file data into the trained language model and corrects the generated script to adapt it to the file data.
7. The information processing apparatus according to claim 6 , wherein the script correction unit further inputs a prompt that is a basis of the generated script into the trained language model to correct the script.
8. 8. The information processing apparatus according to claim 6, which refers to claim 2, or claim 7, which refers to claim 2, wherein the script correction section also corrects the script stored in the script storage section.
9. 3. The information processing apparatus according to claim 1, further comprising a detailed prompt setting unit for setting a detailed prompt which is a detailed prompt for acquiring desired information specified by the set prompt.
10. The information processing apparatus according to claim 6 , further comprising a verification unit that verifies the acquisition result acquired by the desired information acquisition unit.
11. The information processing apparatus according to claim 10 , wherein the script correction unit corrects the script by reflecting a result of the verification by the verification unit.
12. An information processing method executed by an information processing device, a prompt setting step of setting a prompt for designating desired information from file data including the desired information; a sample setting step of setting sample file data to be input to the trained language model together with the set prompt; and a script generating step of inputting the set prompt and the set sample file data into the trained language model to generate a script for acquiring specified desired information, The information processing method includes a step of generating the script by further inputting correct answer information that is correct answer information of the specified desired information for the sample file data, to generate the script.
13. a prompt setting step of setting a prompt for designating desired information from file data including the desired information; a sample setting step of setting sample file data to be input to the trained language model together with the set prompt; a script generation step of inputting the set prompt and the set sample file data into the trained language model to generate a script for acquiring specified desired information; An information processing program for causing an information processing device to execute the The script generating step is an information processing program that generates the script by further inputting correct answer information that is correct answer information of the specified desired information for the sample file data.
Citation Information
Patent Citations
Method, program and information processing device for collecting character information printed on printed matter
JP7430437B1
Cited By
Design support device
JP2026173586A
Design support device
JP7737581B1
system
JP7747915B1
Programs, information processing devices, methods, and systems
JP7870511B1
Information processing device, information processing method, and information processing program
WO2026078738A1
