Programs, information processing devices, methods, and systems
The system addresses the challenge of providing advice for inexperienced users by performing database searches and generating prompts for a generating AI, ensuring relevant responses are output even for novice users.
Patent Information
- Application Number
- JP2025187188
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-11-06
- Publication Date
- 2026-11-27
AI Technical Summary
Existing systems fail to provide appropriate advice when used by inexperienced users due to their inability to input effective queries.
A system that performs vector and text searches on a database containing detail and list files, extracts relevant chunks, generates prompts for a generating AI, and outputs answers based on these chunks and queries, even for inexperienced users.
Enables the output of appropriate advice for users with little experience in a particular field by leveraging a database of searchable chunks and generating AI to generate relevant responses.
Smart Images

Figure 2026185732000001_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to a program, an information processing device, a method, and a system. BACKGROUND ART
[0002] There is a technique for generating a summary including information useful for a user in response to a query input by the user using a language model (see Patent Document 1).
[0003] Patent Document 1 discloses acquiring a query, referring to the query, extracting one or more matching chunks that are chunks matching the query from one or more target chunks, generating instruction information for generating a summary of the one or more target chunks, the instruction information including the one or more matching chunks, and acquiring output information output by a language model to which the instruction information is input. RELATED ART PATENT DOCUMENT
[0004] [Patent Document 1] Japanese Unexamined Patent Application Publication No. 2025-025519 SUMMARY OF THE INVENTION PROBLEMS TO BE SOLVED BY THE INVENTION
[0005] However, in Patent Document 1, when used by an inexperienced user who cannot input an appropriate query, there is a possibility that useful information may not be output.
[0006] An object of the present disclosure is to output appropriate advice even when used by an inexperienced user in a predetermined field. MEANS FOR SOLVING THE PROBLEMS
[0007] To solve the above problems, a program according to one aspect of the present disclosure is a program for operating a computer comprising a processor and memory, the program causing the processor to perform the following steps: receiving a query from a user regarding the content of a question; performing a vector search and a text search on a database in which a plurality of detail files and a plurality of list files are stored, each created so as to be one chunk, and extracting a plurality of chunks related to the query; generating a prompt for input to a generating AI, which includes an instruction statement that causes the AI to output an answer to the content of the question, and data including the extracted chunks and the query; inputting the created prompt to the generating AI and obtaining an answer from the generating AI corresponding to the prompt; and presenting the obtained answer to the user. [Effects of the Invention]
[0008] According to this disclosure, appropriate advice can be output even when used by users with little experience in a particular field. [Brief explanation of the drawing]
[0009] [Figure 1] This is a block diagram showing the overall configuration of System 1. [Figure 2] This is a block diagram showing an example of the functional configuration of the terminal device 10. [Figure 3] This block shows a functional configuration example for server 20. [Figure 4] This diagram shows the data structure of database 40 for RAG. [Figure 5] This diagram shows the data structure of a table. [Figure 6] This figure shows an example of the processing flow in System 1. [Figure 7] This figure shows an example of the screen in this disclosure. [Figure 8] This is a block diagram showing the basic hardware configuration of Computer 90. [Modes for carrying out the invention]
[0010] The embodiments of this disclosure will be described below with reference to the drawings. In all the drawings illustrating the embodiments, common components are denoted by the same reference numerals, and repeated explanations are omitted. The following embodiments are not intended to unduly limit the content of this disclosure as described in the claims. Not all components shown in the embodiments are necessarily essential components of this disclosure. Also, each drawing is a schematic diagram and is not necessarily a strict illustration.
[0011] Furthermore, in the following description, "processor" refers to one or more processors. At least one processor is typically a microprocessor such as a CPU (Central Processing Unit), but may be another type of processor such as a GPU (Graphics Processing Unit). At least one processor may be single-core or multi-core.
[0012] Furthermore, at least one processor may be a broad-sense processor, such as a hardware circuit that performs some or all of the processing (e.g., an FPGA (Field-Programmable Gate Array) or an ASIC (Application Specific Integrated Circuit)).
[0013] Furthermore, in the following explanation, we may use expressions such as "xxx table" to describe information that yields an output for a given input. This information can be data with any structure, or it can be a learning model such as a neural network that generates an output for a given input. Therefore, "xxx table" can be referred to as "xxx information."
[0014] Furthermore, in the following explanation, the structure of each table is merely an example; one table may be divided into two or more tables, or all or part of two or more tables may constitute a single table.
[0015] Furthermore, in the following description, processes may be described with "program" as the subject, but since a program is executed by a processor to perform predetermined processing while appropriately using a storage unit and / or an interface unit, etc., the subject of the processing may be the processor (or a device such as a controller having the processor).
[0016] The program may be installed in a device such as a computer, or may be stored in a program distribution server or a computer-readable (e.g., non-transitory) recording medium. Further, in the following description, two or more programs may be implemented as a single program, or a single program may be implemented as two or more programs.
[0017] Furthermore, in the following description, identification numbers are used as identification information for various objects, but other types of identification information (e.g., identifiers including letters or symbols) may be adopted instead of identification numbers.
[0018] Furthermore, in the following description, when describing elements of the same type without distinguishing between them, reference numerals (or common reference numerals among reference numerals) are used, and when describing elements of the same type with distinction, element identification numbers (or reference numerals) may be used.
[0019] Furthermore, in the following description, control lines and information lines indicate those considered necessary for explanation, and not necessarily all control lines or information lines in the product are shown. All components may be interconnected.
[0020] Each information processing device is configured by a computer including an arithmetic unit and a storage device. The basic hardware configuration of the computer and the basic functional configuration of the computer implemented by the hardware configuration will be described later. For each of the terminal device 10 and the server 20, descriptions overlapping with the basic hardware configuration of the computer and the basic functional configuration of the computer described later are omitted.
[0021] <1. Overview> In this embodiment, the database stores multiple "detail files" and "list files," each created to represent a single chunk, which is a search unit. The detail files are text files that describe specific procedures and know-how in a particular field of expertise. The list files are text files that list the titles and summaries of multiple detail files. When the server 20 receives a query from a user indicating a question about procedures, it performs a vector search and a text search on the database based on the received query and reads multiple chunks of detail files and list files that are relevant to the content of the query. The server 20 creates a prompt for the generating AI based on the query input from the user and the information of the extracted chunks, inputs it into the generating AI to generate an answer, and presents that answer to the user. For example, a large language model (LLM) can be used as the generating AI.
[0022] <2. Overall System Configuration> Figure 1 is a block diagram showing an example of the overall configuration of System 1. System 1 is a system for providing support services that answer user questions using, for example, generative AI. This disclosure explains the system using an example where the support service is implemented in a specific work environment, and an inexperienced non-expert engaged in that work uses the support service as a user.
[0023] System 1 shown in Figure 1 includes, for example, a terminal device 10, a server 20, a generation AI system 30, and a RAG database 40. The terminal device 10, server 20, generation AI system 30, and RAG database 40 are connected to each other via, for example, a network 80.
[0024] Figure 1 shows an example where System 1 includes one terminal device 10, for the sake of illustration simplification. However, in reality, System 1 may include multiple terminal devices 10 for use by multiple users.
[0025] In Figure 1, System 1 is shown as an example that includes one Server 20, but for example, a collection of multiple devices may be considered as one Server 20. The way in which the multiple functions required to realize Server 20 are distributed to one or more hardware can be appropriately determined according to the processing capacity of each hardware and / or the specifications required for Server 20.
[0026] Figure 1 shows an example where System 1 includes one Generative AI System 30, but System 1 may include two or more Generative AI Systems 30. Also, Figure 1 shows an example where the Generative AI System 30 is independent of Server 20, but Server 20 may include the functions of the Generative AI System 30. In other words, Server 20 may store the LLM included in the Generative AI System 30.
[0027] Figure 1 shows an example where the RAG database 40 is independent of the server 20, but the server 20 may include the functionality of the RAG database 40. In other words, the RAG database 40 may be built on the server 20.
[0028] The terminal device 10 is, for example, an information processing device operated by the user. The terminal device 10 may be implemented as, for example, a mobile device such as a smartphone or tablet, or a stationary PC (Personal Computer), laptop PC, etc.
[0029] The terminal device 10 comprises a communication interface 12, an input device 13, an output device 14, memory 15, storage 16, and a processor 19. The input device 13 is a device for receiving input operations from the user (such as query input) (e.g., a touch panel, touchpad, mouse or other pointing device, keyboard, etc.). The output device 14 is a device for presenting information to the user (such as responses from the LLM) (display, speaker, etc.).
[0030] Server 20 is, for example, an information processing device for managing and operating a business support service using generation AI, and is implemented by a computer connected to network 80. Server 20 may also be, for example, an API (Application Programming Interface) server. As shown in Figure 1, Server 20 includes a communication IF 22, an input / output IF 23, memory 25, storage 26, and a processor 29. The input / output IF 23 functions as an interface for an input device to receive input operations from the business support service administrator and an output device to output information to the administrator.
[0031] The generation AI system 30 is, for example, a cloud server that has an LLM. The number of LLMs included in the generation AI system 30 may be one or multiple.
[0032] LLM (Language Modeling) is a single-modal natural language model built by training on large amounts of text data, and is used for many NLG (Natural Language Generation) tasks, such as generating responses to specific questions, automatically generating sentences, and summarizing text. LLM is an example of a generative AI model. Examples of LLMs include the following: • OpenAI: GPT-4 Google: Gemini 1.5 Flash Anthropic:Claude 3.5 Sonnet
[0033] The generation AI system 30 inputs the text data (information about the read chunks and prompts) sent from the server 20 into the LLM and causes the LLM to output a response to the input prompt. The generation AI system 30 then sends the response output from the LLM back to the server 20.
[0034] The RAG database 40 is a database that stores information about chunks that are searchable by RAG (Retrieval-Augmented Generation) executed by the server 20. In this embodiment, the chunk information includes multiple "detail files" that describe information about predetermined action procedures in a specific field of expertise (e.g., "who does what and when"), and multiple "list files" that list the titles and summaries of the detail files. These detail files and list files are configured to be treated as one chunk, which is the search unit in RAG. The detail files may be written in Markdown format. Using Markdown format clarifies the structure of the text and improves the accuracy of determining its relevance to queries. For example, detail files are created and updated by experts (experts) in each field with the aim of describing the information necessary for advice so that non-experts receiving OJT (On-the-Job Training) can understand and execute it. List files can be used to grasp the overall picture of detail files included in a specific category, or to present options or summaries in response to abstract queries from users. For example, the list files may contain a list of the titles of the detail files within a category. The list file may be automatically updated or newly created by the administrator to reflect any additions or modifications made to the detailed file.
[0035] Each information processing device, such as the terminal device 10, server 20, generation AI system 30, and RAG database 40, may be composed of a computer 90 equipped with an arithmetic unit and a memory device. The basic hardware configuration of the computer 90 and the basic functional configuration of the computer 90 realized by said basic hardware configuration will be described later. Note that explanations of the terminal device 10, server 20, generation AI system 30, and RAG database 40 that overlap with the basic hardware configuration of the computer 90 and the basic functional configuration of the computer will be omitted.
[0036] <3. Configuration of terminal equipment> Figure 2 is a block diagram showing an example of the functional configuration of the terminal device 10. As shown in Figure 2, the terminal device 10 includes a communication unit 120, an input device 13, an output device 14, an audio processing unit 17, a microphone 171, a speaker 172, a camera 160, a location information sensor 150, a storage unit 180, and a control unit 190. Each block included in the terminal device 10 is electrically connected, for example, by a bus.
[0037] The communication unit 120 performs processing such as modulation and demodulation processing for the terminal device 10 to communicate with other devices. The communication unit 120 performs transmission processing on the signal generated by the control unit 190 and transmits it to an external source (for example, the server 20). The communication unit 120 performs reception processing on the signal received from an external source and outputs it to the control unit 190.
[0038] The input device 13 is a device for a user operating the terminal device 10 to input instructions or information. The input device 13 can be implemented, for example, by a touch-sensitive device 131 on which instructions are input by touching the operating surface. If the terminal device 10 is a PC, the input device 13 may be implemented by a reader, keyboard, mouse, etc. The input device 13 converts the instructions input by the user into electrical signals and outputs the electrical signals to the control unit 190. The input device 13 may also include, for example, a receiving port that accepts electrical signals input from an external input device.
[0039] The output device 14 is a device for presenting information to the user operating the terminal device 10. The output device 14 is implemented, for example, by a display 141. The display 141 displays data according to the control of the control unit 190. The display 141 is implemented, for example, by an LCD (Liquid Crystal Display) or an organic EL (Electro-Luminescence) display.
[0040] The audio processing unit 17 performs, for example, digital-to-analog conversion processing of the audio signal. The audio processing unit 17 converts the signal received from the microphone 171 into a digital signal and provides the converted signal to the control unit 190. The audio processing unit 17 also provides the audio signal to the speaker 172. The audio processing unit 17 is implemented, for example, by an audio processing processor. The microphone 171 receives an audio input and provides the audio signal corresponding to that audio input to the audio processing unit 17. The speaker 172 converts the audio signal received from the audio processing unit 17 into audio and outputs the audio to the outside of the terminal device 10.
[0041] Camera 160 is a device that receives light using a photodetector and outputs it as a shooting signal.
[0042] The location information sensor 150 is a sensor that detects the position of the terminal device 10, and is, for example, a GPS (Global Positioning System) module. A GPS module is a receiving device used in a satellite positioning system. In a satellite positioning system, signals are received from at least three or four satellites, and the current position of the terminal device 10, which is equipped with a GPS module, is detected based on the received signals. The location information sensor 150 may also detect the current position of the terminal device 10 from the position of the wireless base station to which the terminal device 10 is connected.
[0043] The storage unit 180 is implemented by, for example, memory 15 and storage 16, and stores data and programs used by the terminal device 10. The storage unit 180 stores, for example, user information 181.
[0044] User information 181 includes, for example, information about the user who uses the terminal device 10. User information includes, for example, the user's name, age, address, date of birth, contact information, etc.
[0045] The control unit 190 is realized when the processor 19 reads a program stored in the memory unit 180 and executes instructions contained in the program. The control unit 190 controls the operation of the terminal device 10. By operating according to the program, the control unit 190 performs the functions of an operation reception unit 191, a transmission / reception unit 192, and a presentation control unit 193.
[0046] The operation reception unit 191 processes instructions or information input from the input device 13. Specifically, for example, the operation reception unit 191 receives instructions or information such as queries input from the touch-sensitive device 131, etc.
[0047] Furthermore, the operation reception unit 191 receives voice commands input from the microphone 171. Specifically, for example, the operation reception unit 191 receives voice signals input from the microphone 171 and converted into digital signals by the voice processing unit 17.
[0048] The transmitting / receiving unit 192 performs processing to enable the terminal device 10 to send and receive data with an external device such as the server 20 in accordance with a communication protocol. Specifically, for example, the transmitting / receiving unit 192 sends information input by the user or instructions from the user to the server 20. The transmitting / receiving unit 192 also receives information provided by the server 20.
[0049] The presentation control unit 193 controls the output device 14 to present information provided by the server 20 to the user. Specifically, for example, the presentation control unit 193 displays information such as answers to queries sent from the server 20 on the display 141. The presentation control unit 193 also outputs information sent from the server 20 through the speaker 172.
[0050] <4. Server Configuration> Figure 3 is a block diagram showing an example configuration of the server 20 shown in Figure 1. As shown in Figure 3, the server 20 performs the functions of a communication unit 201, a storage unit 202, and a control unit 203.
[0051] The communication unit 201 performs processing to enable the server 20 to communicate with external devices, such as the terminal device 10 or the generation AI system 30.
[0052] The memory unit 202 is implemented by memory 25 and storage 26, and stores data and programs used by the server 20. The programs include application programs for providing business support services. The memory unit 202 also stores, for example, an instruction table 2021. The instruction table 2021 stores standardized instruction sentences (instruction templates) used to generate prompts for the generation AI system 30, and templates that are output formats for responses generated by the LLM.
[0053] The control unit 203 is realized when the processor 29 reads a program stored in the memory unit 202 and executes the instructions contained in the program. The control unit 203 controls the operation of the server 20. By operating according to the loaded program, the control unit 203 performs the functions of a receive control module 2031, a transmit control module 2032, a presentation control module 2033, a question processing module 2034, an operation reception module 2035, and a special offer information generation module 2036.
[0054] The receiving control module 2031 controls the process by which the server 20 receives signals from external devices according to a communication protocol. For example, it executes processes such as receiving query input from the terminal device 10 and responses from the generating AI system 30.
[0055] The transmission control module 2032 controls the process by which the server 20 transmits signals to external devices according to a communication protocol. For example, it performs processes that control the transmission of prompts and related information to the generation AI system 30, and the transmission of responses to the terminal device 10.
[0056] The presentation control module 2033 controls the process of presenting the answers, query information to be used for feedback, or reward information obtained from the generation AI system 30 to the terminal device 10 used by the user or the administrator's terminal. Specifically, it executes a process to format the information to be presented into an appropriate display format and instructs the system to send it via the transmission control module 2032.
[0057] The question processing module 2034 retrieves chunk information related to the user's input query and performs a series of processes to generate an answer using LLM.
[0058] The operation reception module 2035 executes the process of receiving queries entered by the user.
[0059] The reward information generation module 2036 executes a process to generate reward grant information for the creator of the detailed file based on predetermined conditions.
[0060] <5. Data Structure> The data structure used in the first embodiment will be described below. Note that the data structure described is an example, and does not exclude data not mentioned. Furthermore, even data represented as the same table may be stored in physically separate memory areas.
[0061] Figure 4 shows an example of the data structure of the RAG database 40. The RAG database 40 shown in Figure 4 has a data structure that associates, for example, categories with the identification information (file ID) of chunks belonging to that category and their storage area. Specifically, it can be conceptualized as a management table having columns for "category," "file ID," and "storage area."
[0062] Furthermore, the RAG database 40 itself stores multiple detailed files and list files for each category, each created to represent a single chunk. For example, let's consider a detailed file that belongs to the category "Employee Information." Suppose one of the detailed files in this category is "Office Usage Rules." This "Office Usage Rules" file might contain, for example, information on the available hours, days of the week, and precautions for using the first floor, and specific details on key usage, management, precautions during use, and confirmations upon leaving the first floor, under the heading "Regarding the Use of the First Floor." In addition to "Office Usage Rules," the "Employee Information" category also contains detailed files on topics such as "Dress Code" and "Company Business Structure Strategy." In this case, the list file might list the titles of the multiple detailed files included in the "Employee Information" category: "Office Usage Rules," "Dress Code," and "Company Business Structure Strategy." Furthermore, these detailed files can be edited and updated as needed by experts or system administrators. The list file is updated or newly created based on any additions or modifications made to the detail file.
[0063] The "Category" field stores unique identification information (e.g., category name, category code) for grouping individual detail files and list files by specific categories or functions. In the example in Figure 4, "Category 1," "Category 2," etc., fall under this category.
[0064] The "File ID" field stores identification information (e.g., file name, unique ID) to uniquely identify individual detail files or list files. In the example in Figure 4, "D0001," "D0005," and "D0008" correspond to the identification information for detail files, while "L0001" corresponds to the identification information for list files.
[0065] The "Storage Area" field stores information indicating the area (e.g., file path) where the detailed file identified by the "Detailed File ID" field is actually stored.
[0066] As shown in Figure 4, the RAG database 40 stores, for example, category information, identification information for individual detail files and list files belonging to that category, and their storage locations in association. This makes it possible to efficiently locate the locations of multiple chunks related to an input query.
[0067] Figure 5 shows an example of the data structure of the instruction table 2021 that can be stored in the memory unit 202. As shown in Figure 5, the instruction table 2021 can be configured as a table having, for example, an instruction ID as the key, and columns for category and instruction.
[0068] The instruction ID is an item that stores an identifier to uniquely identify instruction statements associated with each category. The category indicates the field of expertise or type of work related to the user's query. The instruction is an item that stores a template of an instruction statement to be incorporated into the prompt for the generation AI system 30. Specifically, the instruction is, for example, string (text) information to be included in the prompt, and includes information for each part exemplified by role instructions, answer generation instructions, reference information specifications, query information specifications, and output format instructions. The order in which this information is listed is not particularly limited. The instruction does not have to include all of this information, and may also include other strings.
[0069] Role instructions include text that specifies the LLM's role (position) when generating the answer. For example, role instructions include sentences that specify the LLM's role in generating the answer, such as, "You are an expert familiar with XX tasks."
[0070] The response generation instruction contains text that instructs the LLM on what kind of response it should generate. For example, the response generation instruction might include: "Based on the following reference information and the query entered by the user, generate specific advice." The content of the response generation instruction may vary depending on the associated category.
[0071] The reference information specification includes instructions for LLM to recognize and use chunks (contents of detail files and list files) extracted from the RAG database 40, which are entered at the prompt, or placeholders indicating the location where the chunk data should be inserted.
[0072] The query information specification includes instructions for the LLM to recognize and use the content of the original query entered by the user at the prompt, as well as placeholders indicating where to insert the query string.
[0073] Output format instructions include instructions regarding the output format (template), structure, style, or elements to be included in the response generated by the LLM (e.g., conclusion, reasons, specific steps).
[0074] <6. Operation> The operation of the information processing system in this embodiment will now be described. Figure 6 is a flowchart showing an example of the processing flow in this embodiment.
[0075] In step S11, the server 20 receives a query from the user regarding the content of the question. Specifically, for example, the operation reception module 2035 receives a query entered by the user operating the terminal device 10. The query is text information that includes the problem the user wants to solve, the information they want to know, or instructions. For example, a query that a user might use when looking up how to deal with a bug would be, "Please tell me how to deal with error code E001."
[0076] In step S12, the server 20 uses the received query to perform a search on the database and retrieves multiple chunks related to the query. Specifically, the query processing module 2034 uses the query received in step S11 to perform a vector search and a text search on the RAG database 40. The query processing module 2034 identifies related chunks and retrieves them from the RAG database 40 by using a hybrid search that combines, for example, a semantic search based on the similarity between the vector representation of the query and the vector representation of the chunks, and a text search based on the degree of match between the keywords in the query and the text within the chunks.
[0077] In step S13, the server 20 sorts the chunks read in step S12 based on their relevance to the query and narrows down the chunks to be used as input to the generating AI system 30. Specifically, the question processing module 2034 calculates or obtains a relevance score with respect to the original query for each chunk read. This relevance score is an evaluation value calculated by combining, for example, a score indicating the similarity between the query and the chunk obtained by vector search and a score indicating the degree of keyword match obtained by text search, using predetermined weighting and calculation formulas. The question processing module 2034 determines that chunks with higher relevance scores are more relevant to the original query. The question processing module 2034 ranks the chunks in descending order of relevance score and extracts a predetermined number of chunks from the top, or chunks whose relevance score exceeds a predetermined threshold, as information to be input to the generating AI system 30.
[0078] In step S14, the server 20 creates a prompt for input to the generating AI system 30. Specifically, the question processing module 2034 generates a prompt that includes, for example, an instruction to output an answer to a question for input to the generating AI, and data including the chunks extracted in step S13 and the query received in step S11. The instruction may use a template obtained from the instruction table 2021 of the storage unit 202. For example, if the instruction is "Please answer based on the following information," and the data includes reference information (extracted chunks) and query information (received query), these are combined to form the prompt.
[0079] In step S15, the server 20 inputs the created prompt to the generation AI system 30, causing the generation AI system 30 to generate a response corresponding to the prompt. Specifically, the question processing module 2034 inputs the prompt created in step S14 and the reference information, which is the content of the chunk extracted in step S13, into the LLM of the generation AI system 30, causing the LLM to generate a response to the query. Based on the input prompt and reference information, the generation AI system 30 generates a response to the prompt and sends it to the server 20. The receiving control module 2031 receives this response.
[0080] In step S16, the server 20 presents the response obtained from the generating AI system 30 to the user. Specifically, the presentation control module 2033 generates information to display the response obtained in step S15 on the screen of the terminal device 10 used by the user, and the transmission control module 2032 transmits this information to the terminal device 10. This allows the user to confirm the response from the generating AI system 30.
[0081] [Chunk type control] Furthermore, when extracting and narrowing chunks in steps S12 and S13, the question processing module 2034 may determine the degree of specificity of the query received in step S11. The question processing module 2034 determines the degree of specificity based, for example, on the specialization of keywords included in the query, the presence or absence of proper nouns, or the question format. The question processing module 2034 then controls the type of chunks to be extracted according to the determined degree of specificity. For example, if the user inputs an abstract and comprehensive query asking about the policy itself, such as "I don't know what to do about XX," the question processing module 2034 controls itself to prioritize the extraction of "list files" from among the highly relevant chunks. The extracted list files are input to the generation AI system 30 in the subsequent steps S14 and S15, and the generation AI system 30 generates answers based on the list files, such as presenting options or explaining the overall picture.
[0082] Furthermore, the server 20 may use the extracted list file as the first step when performing multi-stage processing as an AI agent. Specifically, the question processing module 2034 first creates a prompt to cause the generation AI system 30 to generate an initial answer to present summary information, options, etc. to the user based on the contents of the extracted list file, and inputs it into the generation AI system 30. The presentation control module 2033 presents the initial answer obtained from the generation AI system 30 to the user. Subsequently, the question processing module 2034 internally generates a new search query to extract a specific detail file based on the user's input regarding the initial answer, or the generation AI system 30's judgment that further detailed information is needed. Then, it can perform multi-stage processing that repeats querying the generation AI system 30 and searching the RAG database 40, such as performing a search again in the RAG database 40 using the same method as in steps S12 and S13.
[0083] When determining the degree of specificity of the query received in step S11, if the user enters a query that asks for specific and detailed information, such as "I don't know the procedure for a particular thing," the question processing module 2034 controls itself to prioritize selecting the "detail file" from among the most relevant chunks. The extracted detail file is input to the generating AI system 30 in a subsequent step, and the generating AI system 30 generates a specific answer based on the detail file.
[0084] [Feedback processing] In this embodiment, the process has mainly been described up to the point where the server 20 presents an answer to the user's question to the user (step S16). However, the server 20 may also receive an evaluation from the user of the presented answer, and if the evaluation meets a predetermined criterion (for example, a low evaluation), it may perform a feedback process in which it presents the original query corresponding to that evaluation to the system administrator or the expert who created the extracted chunks.
[0085] In this case, after the server 20 presents the answer in step S16, it receives user response evaluation information transmitted from the terminal device 10. This process is performed, for example, by the receiving control module 2031. The evaluation information may include, for example, a satisfaction score, a flag indicating a high or low rating, or evaluation comments.
[0086] The question processing module 2034 determines whether the received evaluation information matches the pre-set criteria for a "low evaluation." These criteria may include receiving a specific low score, a low evaluation flag, or comments containing negative keywords. If the criteria are met, the question processing module 2034 identifies the answer that received the low evaluation and the query entered by the user that generated that answer. It then outputs the identified query and related answers and evaluation information to the administrator via the presentation control module 2033 or the transmission control module 2032. This allows the administrator to easily identify answers with low accuracy and consider measures to review detailed files, etc.
[0087] [Reward information generation process] In this embodiment, the server 20 was described up to the point where it provided an answer to the user's question. In this embodiment, the number of times the detail file has been extracted as a chunk may be stored, and processing may be performed to grant a reward to the creator of the detail file according to the number of times.
[0088] The reward information generation module 2036 performs processing to grant rewards when instructed by the administrator or according to a pre-set schedule. The reward information generation module 2036 controls the process of generating and outputting information regarding the granting of rewards to the creator of a detailed file based on the number of times the detailed file has been extracted from the RAG database 40. In step S13, when the question processing module 2034 narrows down the chunks, if the extracted chunk is a "detailed file", it identifies that detailed file and increments the extraction count counter stored in the storage unit 202 that is associated with the identified detailed file.
[0089] The reward information generation module 2036 first accesses the storage unit 202 and reads the latest extraction count counter and creator information associated with each detail file. Next, based on the retrieved extraction count, the reward information generation module 2036 identifies the detail files and their creators that are eligible for rewards, in accordance with predetermined reward granting rules. Then, for each identified target, it generates reward granting information, including the content of the reward to be granted. Finally, the reward information generation module 2036 passes the generated reward granting information to the transmission control module 2032 or the presentation control module 2033 for subsequent processing, such as linking to an external personnel evaluation system, displaying reports to administrators, or notifying creators. This series of processes makes it possible to provide incentives to creators who have provided useful detail files.
[0090] <7. Screen example> An example of the screen of the display 141 of the terminal device 10 in this disclosure is described below.
[0091] Figure 7 shows an example of a chat-style interface screen that displays user query input and responses from the generating AI system 30.
[0092] Area 1411 is the area that displays the query entered and submitted by the user to the system regarding the question. In the example in Figure 7, the query "Please tell me how to deal with error code E001" was entered by the user and is displayed.
[0093] Area 1412 is the area that displays the answers generated by the generation AI system 30 to the queries displayed in area 1411. These answers are generated by the generation AI system 30, taking into account relevant information (chunks) extracted from the RAG database 40 based on the queries. In the example in Figure 7, an explanatory text on how to deal with error code E001 is generated and displayed by the generation AI system 30.
[0094] Area 1413 is an interface area for receiving user feedback on the answers displayed in Area 1412. In the example in Figure 7, the question "Are you satisfied with the answers?" is displayed along with "Satisfied" and "Dissatisfied" buttons. By selecting one of the buttons, the user can input their evaluation of the presented answers into the system. The evaluation information entered here is sent to Server 20 and used in the feedback processing described above. In particular, if "Dissatisfied" is selected, the corresponding query and extracted chunks are presented to the administrator, etc., and can be used to improve files in the RAG database 40, etc.
[0095] <8.Summary> As described above, in the above embodiment, the server 20 first performs vector search and text search on a database containing multiple detail files and multiple list files, each configured as a single chunk, which are search units, based on the query received from the user, and extracts the detail files or list files related to the query as chunks. It also generates a prompt for input to the generating AI, which includes an instruction sentence to output an answer to the question, and data containing the extracted chunks and the query. This prompt is input to the generating AI system 30 to obtain an answer, and the obtained answer is presented to the user. Chunk extraction on a file-by-file basis makes it possible to handle semantically cohesive information, such as specific action procedures or category summaries, without splitting it, and can provide LLM with information that is highly relevant to the query. As a result, even when used by a user with little experience in a particular field, appropriate advice can be output.
[0096] <Basic Computer Hardware Configuration> Figure 8 is a block diagram showing the basic hardware configuration of computer 90. Computer 90 includes at least a processor 901, main memory 902, auxiliary memory 903, and a communication interface IF991. These are electrically connected to each other by a communication bus 921.
[0097] The processor 901 is hardware for executing the instruction set written in a program. The processor 901 consists of an arithmetic unit, registers, peripheral circuits, etc.
[0098] Main memory 902 is used to temporarily store programs and data processed by programs, etc. For example, it is a volatile memory such as DRAM (Dynamic Random Access Memory).
[0099] Auxiliary storage device 903 refers to a storage device for saving data and programs. Examples include flash memory, HDD (Hard Disc Drive), magneto-optical disk, CD-ROM, DVD-ROM, and semiconductor memory.
[0100] The IF991 communication interface is an interface for inputting and outputting signals for communication with other computers via a network using wired or wireless communication standards. A network consists of various mobile communication systems, such as the internet, LANs, and wireless base stations. For example, a network includes 3G, 4G, and 5G mobile communication systems, LTE (Long Term Evolution), and wireless networks that can connect to the internet via designated access points (e.g., Wi-Fi®). When connecting wirelessly, communication protocols include, for example, Z-Wave®, ZigBee®, and Bluetooth®. When connecting via a wired connection, the network also includes connections made directly via USB (Universal Serial Bus) cables, etc.
[0101] Furthermore, by distributing all or part of each hardware configuration across multiple computers 90 and connecting them to each other via a network, a computer 90 can be virtually realized. Thus, the concept of computer 90 includes not only a computer 90 housed in a single enclosure or case, but also a virtualized computer system.
[0102] <Basic Functional Configuration of Computer 90> The functional configuration of the computer realized by the basic hardware configuration of computer 90 (Figure 8) will be explained. The computer comprises at least one functional unit: a control unit, a memory unit, and a communication unit.
[0103] Furthermore, the functional units of computer 90 can also be realized by distributing all or part of each functional unit across multiple computers 90 interconnected via a network. The concept of computer 90 includes not only a single computer 90 but also a virtualized computer system.
[0104] The control unit is realized when the processor 901 reads various programs stored in the auxiliary storage device 903, loads them into the main memory device 902, and executes processing according to those programs. The control unit can realize various functional units that perform information processing depending on the type of program. In this way, the computer is realized as an information processing device that performs information processing.
[0105] The memory unit is implemented by the main memory 902 and the auxiliary memory 903. The memory unit stores data, various programs, and various databases. The processor 901 can also reserve memory areas corresponding to the memory unit in the main memory 902 or the auxiliary memory 903 according to the program. The control unit can also cause the processor 901 to perform operations such as adding, updating, and deleting data stored in the memory unit according to the various programs.
[0106] A database, specifically a relational database, is used to manage and link together tabular data sets called masters, which are structurally defined by rows and columns. In a database, tables are called tables, masters are called masters, the columns of tables are called columns, and the rows of tables are called records. In a relational database, relationships can be established and linked between tables and masters. Typically, each table and master has a primary key column to uniquely identify records, but setting a primary key column is not mandatory. The control unit can instruct the processor 901 to add, delete, or update records in specific tables and masters stored in the memory unit, according to various programs. Furthermore, by storing data, various programs, and various databases in the memory unit, the information processing device and information processing system related to this disclosure can be considered to have been manufactured.
[0107] Furthermore, the databases and masters in this disclosure may include any data structures (lists, dictionaries, associative arrays, objects, etc.) in which information is structurally defined. Data structures also include data that can be considered as data structures by combining data with functions, classes, methods, etc. written in any programming language.
[0108] The communication unit is implemented by the communication IF991. The communication unit provides the functionality to communicate with other computers 90 via the network. The communication unit can receive information transmitted from other computers 90 and input it to the control unit. The control unit can cause the processor 901 to perform information processing on the received information according to various programs. The communication unit can also transmit information output from the control unit to other computers 90.
[0109] Furthermore, each of the above-mentioned configurations, functions, processing units, processing means, etc., may be implemented in hardware, in whole or in part, for example, by designing them as integrated circuits. The present invention can also be implemented by software program code that realizes the functions of the embodiment. In this case, a storage medium on which the program code is recorded is provided to a computer, and the processor of that computer reads the program code stored in the storage medium. In this case, the program code read from the storage medium itself realizes the functions of the embodiment described above, and the program code itself and the storage medium on which it is stored constitute the present invention. Examples of storage media used to supply such program code include flexible disks, CD-ROMs, DVD-ROMs, hard disks, SSDs, optical disks, magneto-optical disks, CD-Rs, magnetic tapes, non-volatile memory cards, ROMs, etc.
[0110] Furthermore, the program code that implements the functions described in this embodiment can be implemented in a wide range of programming or scripting languages, such as assembler, C / C++, Perl, Shell, PHP, and Java (registered trademark).
[0111] Furthermore, the program code for the software that implements the functions of the embodiment may be distributed via a network and stored in a storage means such as a computer's hard disk or memory, or in a storage medium such as a CD-RW or CD-R, and the computer's processor may read and execute the program code stored in the storage means or storage medium.
[0112] The functions realized by the components described herein may be implemented in a circuit or processing circuitry, including general-purpose processors, application-specific processors, integrated circuits, ASICs (Application Specific Integrated Circuits), CPUs (a Central Processing Unit), conventional circuits, and / or combinations thereof, programmed to realize the functions described herein. A processor is considered a circuit or processing circuitry, including transistors and other circuits. A processor may be a programmed processor that executes a program stored in memory. In this specification, circuitry, unit, and means are hardware programmed to perform or execute the functions described herein. Such hardware may be any hardware disclosed herein, or any hardware known to be programmed to perform or execute the functions described herein. If the hardware is a processor that is considered to be a type of circuitry, then the circuitry, means, or unit is a combination of hardware and software used to constitute the hardware and / or processor.
[0113] While several embodiments of this disclosure have been described above, these embodiments can be implemented in a variety of other forms, and various omissions, substitutions, and modifications are permitted without departing from the spirit of the invention. These embodiments and their variations are included in the scope and spirit of the invention, as well as in the claims and their equivalents.
[0114] <9. Addendum> The details described in each of the above embodiments are noted below.
[0115] (Note 1) A program for operating a computer comprising a processor and memory, wherein the program is configured to operate the processor, A step to receive query input from the user regarding the question content, Based on the received query, the steps include performing vector and text searches on a database containing multiple detail files and multiple list files, each created so that it constitutes one chunk, and extracting multiple chunks related to the query; A step of generating a prompt that includes an instruction sentence for inputting the question content to the generating AI, and data including the extracted chunk and the query, The steps include inputting the created prompt into a generating AI and obtaining a response from the generating AI corresponding to the prompt, A program that performs the steps of presenting the obtained answer to the user and executing the following. (Note 2) The aforementioned database contains: The aforementioned detailed file contains information about a predetermined procedure and stores multiple text files created for each predetermined category. The program described in (Appendix 1) stores a text file as the aforementioned list file, which is created for each category and contains a list of the multiple detailed files included in that category. (Note 3) The aforementioned detailed file is the program described in (Appendix 1) or (Appendix 2), written in Markdown format. (Note 4) In the step of extracting the aforementioned chunk, A program according to any of (Appendix 1) to (Appendix 3), which ranks the extracted chunks based on their similarity to the query and extracts a predetermined number of chunks from the top. (Note 5) The aforementioned processor, A program according to any one of (Appendix 1) to (Appendix 4), which receives a user's evaluation of the aforementioned answer, and if the evaluation is low, further performs the step of presenting the administrator with the query corresponding to the low-rated answer. (Note 6) The aforementioned list file is a program described in any of (Appendix 1) to (Appendix 5) that is updated or newly created based on any additions or modifications made to the aforementioned detail file. (Note 7) The aforementioned processor, A program according to any one of (Appendix 1) to (Appendix 6), which further performs the step of storing the number of times the detailed file has been extracted as the chunk, and outputting information for granting benefits to the creator of the detailed file according to the number of times. (Note 8) A program according to any one of (Appendix 1) to (Appendix 7), which, in the step of extracting the chunks, controls the extracted chunks to be at least one of the detail file and the list file, depending on the degree of specificity of the content of the query. (Note 9) An information processing device comprising a processor and memory, An information processing device in which the processor executes all steps in any of the programs described in (Appendix 1) to (Appendix 8). (Note 10) A method to be performed on a computer having a processor and memory, A method by which the processor executes all steps in the program described in any of (Appendix 1) to (Appendix 8). (Note 11) A system comprising means for executing all steps in any of the programs described in (Appendix 1) to (Appendix 8). [Explanation of Symbols]
[0116] 1... System 10…Terminal device 120... Communications Department 13…Input device 14…Output device 15…Memory 16…Storage 19… Processor 20... Server 22...Communication IF 23…Input / Output Interface 25…Memory 2 hours… storage 29… Processor 30…Generative AI System 40…Database for RAG
Claims
1. A program for operating a computer comprising a processor and memory, wherein the program is configured to operate the processor, A step to receive query input from the user regarding the question content, Based on the received query, the steps include performing vector and text searches on a database containing multiple detail files and multiple list files, each created so that it constitutes one chunk, and extracting multiple chunks related to the query, A step of generating a prompt that includes an instruction sentence for inputting to the generating AI to output an answer to the question content, and data including the extracted chunk and the query, The steps include inputting the created prompt into the generating AI and obtaining a response from the generating AI corresponding to the prompt, The steps include presenting the obtained response to the user, A program that executes the command.
2. The aforementioned database contains: The aforementioned detailed file contains information about a predetermined procedure and stores multiple text files created for each predetermined category. The program according to claim 1, wherein the aforementioned list file stores a text file created for each category, which contains a list of the multiple detailed files included in that category.
3. The program according to claim 1, wherein the aforementioned detail file is written in Markdown format.
4. In the step of extracting the aforementioned chunk, The program according to claim 1, which ranks the extracted chunks based on their similarity to the query and extracts a predetermined number of chunks from the top.
5. The aforementioned processor, The program according to claim 1, further comprising the steps of receiving a user's evaluation of the answer, and if the evaluation is low, presenting the query corresponding to the low-rated answer to the administrator.
6. The program according to claim 1, wherein the list file is updated or newly created based on the addition or modification of the detail file.
7. The aforementioned processor, The program according to claim 1, further comprising the steps of storing the number of times the detailed file has been extracted as a chunk, and outputting information for granting benefits to the creator of the detailed file according to the number of times.
8. The program according to claim 1, wherein in the step of extracting the chunks, the extracted chunks are controlled to be at least one of the detail file and the list file, depending on the degree of specificity of the content of the query.
9. An information processing device comprising a processor and memory, An information processing apparatus wherein the processor performs all steps in the program described in any one of claims 1 to 8.
10. A method to be performed on a computer having a processor and memory, A method by which the processor performs all steps in the program described in any one of claims 1 to 8.
11. A system comprising means for performing all steps in a program according to any one of claims 1 to 8.
Citation Information
Patent Citations
Information processing device, information processing method, program, and recording medium
JP2025025519A
