Information processing device, information processing method, and information processing program
The information processing device enhances chatbot accuracy by using a search and specifying unit to refine and rank answers, addressing issues with abstract questions and multiple similar sentences, ensuring precise responses.
Patent Information
- Application Number
- JP2024079389
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-05-15
AI Technical Summary
Conventional automatic response services, such as chatbots, struggle to provide accurate answers to user questions when the questions are abstract, have multiple similar sentences, or when the source of the answer is unknown, leading to inappropriate or incorrect responses.
An information processing device that includes a search unit to find a second generation target with high similarity to a user's question and a specifying unit to identify a first generation target for creating answers, utilizing question conversion, search improvement, and reranking processes to enhance answer accuracy.
Improves search performance by providing accurate and detailed answers to user questions, even when questions are abstract or have multiple similar sentences, by refining search results and evaluating relevance.
Smart Images

Figure 0007564400000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, an information processing method, and an information processing program. [Background technology]
[0002] In the past, automatic response services such as chatbots have become popular. For example, when a user inputs a question, a technology is known in which a search model is used to create an answer by referring to a sentence corresponding to the user's question. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2023-076413 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, conventional technologies sometimes fail to provide an appropriate answer to a user's question, for example, when the user's question is abstract, when there are many similar sentences referenced when creating an answer to a question, or when the source of the answer is unknown and it is difficult to determine whether it is correct or not.
[0005] The present application has been made in consideration of the above, and aims to improve search performance for generating appropriate answers to user questions. [Means for solving the problem]
[0006] The information processing device of the present application is characterized by having a search unit that searches for second-generation objects which are generation objects that have a high similarity to information based on a user's question and are generated based on a first-generation object, and an identification unit that identifies the first-generation objects that serve as a basis for creating an answer to the question based on the second-generation objects searched for by the search unit. Effect of the Invention
[0007] According to one aspect of the embodiment, it is possible to improve search performance for creating an appropriate answer to a user's question. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is an explanatory diagram for explaining an overview of information processing according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of the configuration of an information processing system according to the embodiment. [Diagram 3] FIG. 3 is a diagram illustrating an example of information processing according to the embodiment. [Figure 4] FIG. 4 is a diagram illustrating an example of information processing (question conversion) according to the embodiment. [Diagram 5] FIG. 5 is a diagram illustrating an example of information processing (search refinement) according to the embodiment. [Figure 6A] FIG. 6A is an explanatory diagram (1) for explaining the relationship between a first generation object and a second generation object according to the embodiment. [Figure 6B] FIG. 6B is an explanatory diagram (2) for explaining the relationship between the first generation target and the second generation target according to the embodiment. [Figure 7] FIG. 7 is a diagram illustrating an example of information processing (reranking) according to the embodiment. [Figure 8] FIG. 8 is an explanatory diagram for explaining the rerank according to the embodiment. [Figure 9] FIG. 9 is a diagram illustrating an example of the configuration of a terminal device according to the embodiment. [Figure 10] FIG. 10 is a diagram illustrating an example of the configuration of an information processing device according to an embodiment. [Figure 11] FIG. 11 is a diagram illustrating an example of a first generation target storage unit according to the embodiment. [Figure 12] FIG. 12 is a diagram illustrating an example of a second generation target storage unit according to the embodiment. [Figure 13]FIG. 13 is a flowchart illustrating an example of the question conversion process according to the embodiment. [Figure 14] FIG. 14 is a flowchart illustrating an example of a search refinement process according to an embodiment. [Figure 15] FIG. 15 is a flowchart showing an example of the reranking process according to the embodiment. [Figure 16] FIG. 16 is a hardware configuration diagram illustrating an example of a computer that realizes the functions of the information processing device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, the information processing device, the information processing method, and the information processing program according to the present application will be described in detail with reference to the drawings. Note that the information processing device, the information processing method, and the information processing program according to the present application are not limited to the embodiments. In addition, the same parts in the following embodiments are given the same reference numerals, and duplicated explanations are omitted.
[0010] (Embodiment) [1. Overview of Information Processing] Conventionally, automatic response services such as chatbots are becoming more and more popular. For example, a technology is known in which, when a user inputs a question, a search model is used to create an answer while referring to a sentence corresponding to the user's question. However, the conventional technology may not be able to provide an appropriate answer to the user's question in some cases, such as when the user's question is abstract, when there are many similar sentences to refer to when creating an answer to a question, or when the source of the answer is unknown and it is difficult to determine whether the answer is correct or not.
[0011] For example, when a user asks a question such as "What are the company's employee benefits?", if the question is too abstract to be searched, or if related sentences cannot be found, the system may not be able to answer the question. Also, for example, if there are many similar sentences and it is not possible to determine which one to use, the system may answer using all of them regardless of whether they are related to the answer. Also, for example, if the source of the answer is unknown, the system may answer using sentences that are not directly mentioned, such as translations.
[0012] Fig. 1 is a diagram showing an example of information processing according to the conventional technology. When a user U1 inputs a question Q about a company's internal regulations (step S1), a number of sentences that are highly similar to the question Q are searched for (step S2) and extracted (step S3) from the sentences in the internal regulations, and an answer to the question Q is generated from the sentences and provided (step S4).
[0013] However, as described above, the information processing of FIG. 1 may not be able to provide an appropriate answer to a user's question. In particular, so-called generative AIs, such as sentence generation models such as GPT and Stable Diffusion, are trained using information belonging to many domains in order to generate and output responses (text and images) to various inputs. As a result of such training, it can be said that generative AIs can output general answers to general questions, but it cannot be said that they can generate appropriate answers to questions that require information in a specific domain, such as company regulations. On the other hand, a model that has learned only information from a specific domain has not learned general responses, so it is considered that the user needs to provide appropriate input. For this reason, a process is required to appropriately provide specialized information, such as company regulations, as an answer to a question entered by a user without considering the input for obtaining an appropriate answer. The present application has been made in view of the above, and aims to improve search performance for creating appropriate answers to user questions.
[0014] 2. Configuration of the Information Processing System An information processing system 1 shown in Fig. 2 will be described. As shown in Fig. 2, the information processing system 1 includes a terminal device 10 and an information processing device 100. The terminal device 10 and the information processing device 100 are connected to each other via a predetermined communication network (network N) so as to be able to communicate with each other in a wired or wireless manner. Fig. 2 is a diagram showing an example of the configuration of the information processing system 1 according to an embodiment.
[0015] The terminal device 10 is an information processing device used by a user who asks a question. The user is, for example, a user who asks a question about the contents of regulations, laws, rules, manuals, etc. For example, a user who asks a question such as "Please tell me about the employee benefits in the company" in order to check the employee benefits in the company. The user inputs a question using, for example, a predetermined chat tool. The terminal device 10 may be any device as long as it can realize the processing in the embodiment. In addition, the terminal device 10 may be a device such as a smartphone, a tablet terminal, a notebook PC, a desktop PC, a mobile phone, or a PDA. FIG. 2 shows a case where the terminal device 10 is a smartphone.
[0016] The terminal device 10 is, for example, a smart device such as a smartphone or a tablet, and is a mobile terminal device that can communicate with any server device via a wireless communication network such as 4G to 5G (Generation) or LTE (Long Term Evolution). The terminal device 10 has a screen such as a liquid crystal display with a touch panel function, and may receive various operations on display data such as content, such as tapping, sliding, and scrolling, performed by a user's finger or a stylus. In FIG. 2, the terminal device 10 is used by a user U1.
[0017] The information processing device 100 is an information processing device that aims to improve search performance for creating an appropriate answer to a user's question, and may be any device that can realize the processing in the embodiment. For example, even when the user's question is abstract, when there are many similar sentences in the sentence reference when creating an answer to a question, or when the source of the answer is unknown and it is difficult to judge whether it is correct or not, the object is to provide an appropriate answer to the user's question. The information processing device 100 performs at least one of the following three main processes (question conversion, search improvement, and reranking). For example, the information processing device 100 may perform at least one of the following processes, and another information processing device may perform the other processes, and the processing result may be provided to the information processing device 100.
[0018] In the first process (question conversion), the information processing device 100 provides the user's question to the generation AI to make the question more specific. This is believed to allow the question to be appropriately searched for even if it is abstract, and also allows related sentences to be appropriately searched. In the second process (search improvement), the information processing device 100 uses the first process result to search for information that is highly similar to the first process result, and identifies information that is the basis for creating an answer to the question. This is believed to allow an answer to be obtained using sentences that are truly related to the answer, even if there are many similar sentences. In the third process (rerank), the information processing device 100 uses the second process result to evaluate the relevance of the second process result to the question and rerank the second process result. This is believed to allow an answer to be obtained using an appropriate source, even if the source is unknown and it is difficult to judge whether it is correct or not. Then, the information processing device 100 provides the third process result to the generation AI to generate and provide an answer to the question.
[0019] The generative AI is, for example, a generative model trained on data published on the Internet. For example, there is a GPT (Generative Pre-trained Transformer) model that generates answers to questions. In such a model, answers to questions are generated from data published on the Internet. Since new data is published on the Internet every day, the answers provided by the model are updated every day. In other words, even if the same question is asked, different answers will be generated because the data referenced when the model generates the answer differs depending on the time of the question. In addition, since the model can provide detailed answers to questions in a wide range of fields, users ask the model a wide variety of questions.
[0020] Although FIG. 2 illustrates a case in which the terminal device 10 and the information processing device 100 are separate devices, the terminal device 10 and the information processing device 100 may be integrated.
[0021] [3. An example of information processing] FIG. 3 is a diagram showing an example of information processing according to an embodiment. The diagram summarizes the above-mentioned three processes, and shows a flow of a series of processes. Details of the three processes will be described later for each process. When a user U1 inputs a question Q about a company's internal regulations (step S11), the question Q is provided to a generation AI (step S12) to perform question conversion (question specification) (step S13). Then, similarity (cosine similarity) with the information after the question is compared to search for multiple sentences with high similarity (step S14), and each sentence linked to each sentence is identified (step S15). Then, the identified sentences are provided to a generation AI (step S16) and reranked by evaluating the relevance with the question Q (step S17). Then, sentences with high relevance evaluation are extracted based on the reranking result (step S18), and an answer to the question Q is generated from the extracted sentence and provided (step S19). Details of each process will be described below.
[0022] FIG. 4 is a diagram showing an example of information processing (question conversion) according to the embodiment. The information processing device 100 acquires a question of the user U1 transmitted from the terminal device 10 by the user U1 inputting a question (step S101). In FIG. 4, a question Q is acquired. The information processing device 100 provides the question Q to the generation AI together with a prompt for concretizing the question Q (step S102), and acquires a generation result by the generation AI (step S103). Note that this generation result is information for narrowing down targets that are the basis for creating an answer to the question Q in the second process. That is, the information processing device 100 uses the generation result in step S103 to search for information that is the basis for creating an answer to the question Q (step S104). Note that this question conversion process may be a process executed when the abstraction level of the question is high. For example, the information processing device 100 may evaluate the abstraction level of the question Q, and perform question conversion if the abstraction level of the question Q is evaluated high, and perform the second process using the question Q if the abstraction level of the question Q is not evaluated high.
[0023] Here, details of the question conversion according to the embodiment will be described. There are mainly two types of question conversion according to the embodiment. The first question conversion is conversion to a provisional answer. For example, if the question Q is "Tell me about the employee benefits," the question Q is converted to a provisional answer such as "Our company puts a lot of effort into employee benefits. Below are our main employee benefits systems. Health insurance: Our company provides health insurance to all employees. This allows employees to cover medical expenses in the event of illness or injury. These are our main employee benefits systems. We are enhancing these systems to increase employee comfort and satisfaction."
[0024] The second type of question transformation is transformation into a question similar to the question. For example, transformation into one or more questions. For example, if the question Q is "Tell me about employee benefits," the question Q is transformed into one or more similar questions such as "What are the types and contents of employee benefits?", "Tell me about the company's employee benefits system," "What are the benefits of employee benefits?", and "Tell me how to introduce employee benefits and give some specific examples."
[0025] The information processing device 100 may perform question conversion by providing the generation AI with a prompt for converting the question Q into a provisional answer together with the question Q, or may perform question conversion by providing the generation AI with a prompt for converting the question Q into a similar question together with the question Q. The prompt may include an instruction sentence that expresses at least one of the role, task content, task purpose, premise, and constraint condition in natural language together with an instruction sentence indicating an instruction to convert the question Q into a provisional answer. Here, the role is a sentence that indicates the position from which the generation AI will answer when generating an answer, for example, a sentence that sets a role such as "You are a professional in prompt generation". The task content is a sentence that indicates the content of the task that the generation AI will perform when generating an answer, for example, a sentence that gives a task instruction such as "Your task is to write a sentence that answers the user's question". The task purpose is a sentence that indicates the purpose of the task that the generation AI will perform when generating an answer, for example, a sentence that gives a task purpose such as "It is to help the user search for related sentences". The premise is a sentence indicating the premise under which the generation AI performs the task when generating an answer, for example, a sentence giving the premise of the task, such as "This is about the procedures of the company regulations." The constraint is a sentence indicating the constraint under which the generation AI performs the task when generating an answer, for example, a sentence giving the constraint of the task, such as "Write within XX characters." The conversion of the question Q into a provisional answer may be performed based on instructions such as the role, task content, task purpose, premise, and constraint. The prompt may include an instruction sentence indicating an instruction to convert the question Q into a similar question, and an instruction sentence expressing at least one of the role, task content, task purpose, premise, and constraint in natural language. The conversion of the question Q into a similar question may be performed based on instructions such as the role, task content, task purpose, premise, and constraint.
[0026] As a result, while vector search is difficult for abstract questions, it is possible to improve search accuracy by making the question more specific.
[0027] FIG. 5 is a diagram showing an example of information processing (search refinement) according to an embodiment. In the following embodiment, an object that is a base for creating an answer to a question Q is a first generation object, and an object generated from the first generation object is a second generation object. The first generation object and the second generation object have a parent chunk and child chunk relationship. For example, the second generation object is a generation object generated by dividing the first generation object into a predetermined sentence unit. Also, for example, the second generation object is a generation object generated by dividing the first generation object into sentence units so that the number of characters is equal to or less than the maximum number. Also, the first generation object is a generation object generated from a predetermined source data on the premise that it is used to answer a question.
[0028] In Fig. 5, in order to determine candidate information to be used in creating an answer to question Q, candidate information to be used in creating an answer to question Q is directly searched from the information type of first generation target, and information for identifying candidate information to be used in creating an answer to question Q is searched from the information type of second generation target. Here, as a result of searching information from the information type of first generation target and the information type of second generation target, if candidate information to be used in creating an answer to question Q can be directly searched from the information type of first generation target, that information is determined as candidate information to be used in creating an answer to question Q. On the other hand, if candidate information to be used in creating an answer to question Q cannot be directly searched from the information type of first generation target, it is determined whether or not information to identify candidate information to be used in creating an answer to question Q can be searched from the information type of second generation target, and if it is determined that information can be searched, information identified by linking to that information is determined as candidate information to be used in creating an answer to question Q. Note that, as in the former case, a direct search from the information type of first generation targets refers to, for example, a case where information having a high similarity to the first processing result can be searched from the information type of first generation targets. For example, this refers to a case where information having a high similarity to the first processing result can be searched from the information type of first generation targets more than information that can be searched from the information type of second generation targets. On the other hand, as in the latter case, a search from the information type of second generation targets refers to, for example, a case where information having a high similarity to the first processing result cannot be searched from the information type of first generation targets. For example, this refers to a case where information having a high similarity to the first processing result cannot be searched from the information type of first generation targets more than information that can be searched from the information type of second generation targets.
[0029] In addition, in FIG. 5, in order to determine candidate information to be used in creating an answer to question Q, information is searched from the information type of the first generation and the information type of the second generation, but only the information type of the second generation may be used. In other words, the search is not limited to the case where both information that can be searched from the information type of the first generation and information that can be searched from the information type of the second generation are searched, and only information that can be searched from the information type of the second generation may be searched. In this case, information that can be used as candidates to be used in creating an answer to question Q is not searched from the information type of the first generation, but information for identifying candidate information to be used in creating an answer to question Q is searched from the information type of the second generation. Then, information identified in association with the information searched in this way is regarded as candidate information to be used in creating an answer to question Q.
[0030] 6A is an explanatory diagram for explaining the relationship between the first generation target and the second generation target according to the embodiment. In FIG. 6A, parent data D2 and parent data D3, etc., which are the first generation targets, are generated from source data D1, child data D4 and child data 5, which are the second generation targets, are generated from parent data D2, child data (grandchild data) D8 and child data (grandchild data) D9, which are the second generation targets, are generated from child data D4, and child data (grandchild data) D10 and child data (grandchild data) D11, which are the second generation targets, are generated from child data D5. Note that, when source data D1 is the entire text of the company regulations, parent data D2 and parent data D3, etc. are part of the company regulations, child data D4 and child data 5 are further parts thereof, and child data (grandchild data) D8, child data (grandchild data) D9, child data (grandchild data) D10 and child data (grandchild data) D11 are further parts thereof.
[0031] FIG. 6B shows a specific example of FIG. 6A. In FIG. 6B, parent data D2 and parent data D3 in FIG. 6A correspond to parent chunks, child data D4 and child data 5 in FIG. 6A correspond to child chunk 1, and child data (grandchild data) D8, child data (grandchild data) D9, child data (grandchild data) D10, and child data (grandchild data) D11 in FIG. 6A correspond to child chunk 2. In addition, in FIG. 6A and FIG. 6B, child data (great-grandchild data from the perspective of the first generation target) may be generated from each of child data (grandchild data) D8 to child data (grandchild data) 11 that are the second generation target. The great-grandchild data generated in this way corresponds to child chunk 3 (not shown). In the following embodiment, child chunks (child chunk 2, child chunk 3, ...) after child chunk 1 are all second generation targets for the parent chunk that is the first generation target.
[0032] The information processing device 100 acquires the first processing result (step S201). That is, the information processing device 100 acquires information after converting the question Q. The information processing device 100 searches for information having a high similarity to the first processing result (step S202). At this time, the information processing device 100 searches by vector search together with the question Q, which is the original question. For example, the information processing device 100 searches based on the similarity of vector features. Then, as a result of searching for information from the information type of the first generation target and the information type of the second generation target, respectively, when the information processing device 100 searches for information from the information type of the second generation target, it identifies information linked to the searched information (information corresponding to the information type of the first generation target) (step S203). In this case, for example, when a plurality of pieces of information corresponding to the information type of the second generation target are searched, the information processing device 100 identifies a plurality of pieces of information corresponding to the information type of the first generation target by linking each piece of information and identifying each piece of information corresponding to the information type of the first generation target. In step S203, the information processing device 100 searches for information from the information type of the first generation and the information type of the second generation, respectively, and if information is searched from the information type of the first generation, the information processing device 100 identifies the searched information (information corresponding to the information type of the first generation). In this case, for example, if a plurality of pieces of information corresponding to the information type of the first generation are searched, the information processing device 100 identifies a plurality of pieces of information corresponding to the information type of the first generation.
[0033] The information processing device 100 may determine whether information having a high similarity to the first processing result is searched from the information type of the first generation target as a result of searching information from the information type of the first generation target and the information type of the second generation target, respectively. If the information processing device 100 determines that information having a high similarity to the first processing result can be searched from the information type of the first generation target, it may directly search for information corresponding to the information type of the first generation target from the information type of the first generation target to identify the information thus searched, and if it determines that information having a high similarity to the first processing result cannot be searched from the information type of the first generation target, it may search for information corresponding to the information type of the second generation target from the information type of the second generation target and identify the information corresponding to the information type of the first generation target from the information thus searched.
[0034] Also, in steps S202 and S203, when there are multiple second-generation objects, the information processing device 100 may identify a generation object one level above the searched second-generation object. For example, using the examples of FIGS. 6A and 6B, when the searched second-generation object is child chunk 1, the information processing device 100 may identify a parent chunk linked to child chunk 1, when the searched second-generation object is child chunk 2, the information processing device 100 may identify child chunk 1 linked to child chunk 2, and when the searched second-generation object is child chunk 3, the information processing device 100 may identify child chunk 2 linked to child chunk 3. Then, the information processing device 100 may use the generation object thus identified as a second processing result. That is, it may be a candidate to be used in answering the question. Also, even in such a case, the information processing device 100 may identify a first-generation object of the searched second-generation object. For example, using the examples of FIG. 6A and FIG. 6B, if the searched second-generation object is child chunk 1, a parent chunk linked to child chunk 1 may be identified, if the searched second-generation object is child chunk 2, a parent chunk linked to child chunk 1 linked to child chunk 2 may be identified, if the searched second-generation object is child chunk 3, a parent chunk linked to child chunk 1 linked to child chunk 2 linked to child chunk 3 may be identified, and may be the second processing result. Also, if a parent chunk is directly searched for, the information processing device 100 may identify the parent chunk searched for in this way, and may be the second processing result. That is, the parent chunk identified in this way may be a candidate to be used for answering the question.
[0035] At this time, the source data, the first generation object, and the second generation object may not be limited to text data, and may be multimodal data such as image data. For example, the information processing device 100 may generate images of each generation by dividing the image into pixels, and may generate an image of a first generation with a reduced resolution and an image of a second generation with a further reduced resolution. By vector converting the images of each generation together with the text, a multimodal search can be realized. For example, the information processing device 100 may convert the image into text using various models that recognize the image and the object photographed in the image and output the recognized object in text format, and may link the text and the text present around the image to metadata, and may specify the second processing result in metadata units. For example, when a text is searched, the information processing device 100 may specify data of the generation object linked to the second generation object, which is metadata linked to the searched text, as the second processing result. Also, for example, the information processing device 100 may directly search the metadata and specify the searched metadata as the second processing result.
[0036] As a result, with conventional technology, when there was a lot of noise, search accuracy would decrease and appropriate searches could not be performed even if a correct answer was found, but with this technology, it is possible to search for highly relevant information using the embedding accuracy of the "child," and by referencing the "parent," it is possible to create comprehensive and detailed answers from a wide range of contexts.
[0037] FIG. 7 is a diagram showing an example of information processing (reranking) according to the embodiment. The information processing device 100 acquires a second processing result (step S301). That is, it acquires a plurality of search results searched based on the question Q. The information processing device 100 provides the question Q and the plurality of search results together with a prompt for evaluating the relevance between the question Q and the plurality of search results to the generation AI (step S302), and acquires an evaluation result by the generation AI (step S303). Note that this evaluation result is information for reranking the plurality of search results, which are the second processing result, in order to create an answer to the question Q. That is, the information processing device 100 reranks the plurality of search results, which are the second processing result, using the evaluation result in step S303, and extracts the search results to be used in creating an answer to the question Q (step S304). Note that in this extraction process, a predetermined number of highly rated search results are extracted by ranking the plurality of search results in order of high evaluation.
[0038] Then, the information processing device 100 provides the question Q and the extraction result together with a prompt for generating an answer to the question Q to the generation AI (step S305), and obtains the answer result by the generation AI (step S306). Then, the information processing device 100 provides the obtained answer result to the user U1 as an answer to the question Q (step S307).
[0039] Thus, in Figure 7, the information processing device 100 evaluates the relevance of each of the multiple search results to question Q, extracts search results that are evaluated to have a high relevance, generates an answer to question Q using the extracted search results, and provides the generated answer to user U1.
[0040] FIG. 8 is an explanatory diagram for explaining reranking according to an embodiment. In FIG. 8, documents A to E are candidates for multiple search results searched based on a question Q. Note that documents A to E are first generation targets. Documents A to E are evaluated for relevance to question Q by a generation AI, and top search results with high relevance are extracted. In FIG. 8, document D with the highest relevance rating, document B with the second highest relevance rating, and document C with the third highest relevance rating are extracted. Then, an answer is created using the top search results with high relevance ratings. In FIG. 8, an answer to question Q is created using document D with the highest relevance rating, document B with the second highest relevance rating, and document C with the third highest relevance rating.
[0041] At this time, each of documents A to E may not be limited to text data, and may be multimodal data such as image data. The information processing device 100 may generate an answer to the question Q based on image data or the like that is a result of a plurality of searches. At this time, the final answer to the question Q may be text data or image data.
[0042] As a result, information that is evaluated as having a high degree of similarity in the vector search can be reevaluated based on the relevance to the question and narrowed down to the top-ranking information, making it possible to create highly accurate answers.
[0043] 4. Terminal Device Configuration Next, the configuration of the terminal device 10 according to the embodiment will be described with reference to Fig. 9. Fig. 9 is a diagram showing an example of the configuration of the terminal device 10 according to the embodiment. As shown in Fig. 9, the terminal device 10 has a communication unit 11, an input unit 12, an output unit 13, and a control unit 14.
[0044] (Communications Department 11) The communication unit 11 is realized by, for example, a network interface card (NIC) etc. The communication unit 11 is connected to a predetermined network N by wire or wirelessly, and transmits and receives information to and from the information processing device 100 etc. via the predetermined network N.
[0045] (Input section 12) The input unit 12 accepts various operations from a user. In FIG. 4 and the like, the input unit 12 accepts various operations from a user U1. For example, the input unit 12 may accept various operations from a user via a display surface using a touch panel function. The input unit 12 may also accept various operations from buttons provided on the terminal device 10, or a keyboard or mouse connected to the terminal device 10. For example, the input unit 12 accepts an operation for inputting a question.
[0046] (Output section 13) The output unit 13 is a display screen of a tablet terminal or the like realized by, for example, a liquid crystal display or an organic EL (Electro-Luminescence) display, and is a display device for displaying various information. For example, the output unit 13 displays information transmitted from the information processing device 100. For example, the output unit 13 displays an answer to a user's question generated by the information processing device 100.
[0047] (Control unit 14) The control unit 14 is, for example, a controller, and is realized by executing various programs stored in a storage device inside the terminal device 10 using a RAM (Random Access Memory) as a working area by a CPU (Central Processing Unit) or an MPU (Micro Processing Unit). For example, the various programs include application programs installed in the terminal device 10. For example, the various programs include application programs that display information (such as answers to user questions) transmitted from the information processing device 100. The control unit 14 is also realized by an integrated circuit such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array).
[0048] As shown in FIG. 9, the control unit 14 has a receiving unit 141 and a transmitting unit 142, and realizes or executes the information processing operations described below.
[0049] (Receiving unit 141) For example, the receiving unit 141 receives information transmitted from the information processing device 100. For example, the receiving unit 141 receives an answer to a user's question.
[0050] (Transmitter 142) The transmission unit 142 transmits, for example, information on a user's operation. For example, the transmission unit 142 transmits a question accepted from the user. For example, the transmission unit 142 transmits a question input, specified, or selected by the user.
[0051] 5. Configuration of Information Processing Device Next, the configuration of the information processing device 100 according to the embodiment will be described with reference to Fig. 10. Fig. 10 is a diagram showing an example of the configuration of the information processing device 100 according to the embodiment. As shown in Fig. 10, the information processing device 100 has a communication unit 110, a storage unit 120, and a control unit 130. Note that the information processing device 100 may have an input unit (e.g., a keyboard, a mouse, etc.) that accepts various operations from an administrator of the information processing device 100, and a display unit (e.g., a liquid crystal display, etc.) that displays various information.
[0052] (Communication unit 110) The communication unit 110 is realized by, for example, a NIC etc. The communication unit 110 is connected to a network N by wire or wirelessly, and transmits and receives information to and from the terminal device 10 etc. via the network N.
[0053] (Storage unit 120) The storage unit 120 is realized by, for example, a semiconductor memory element such as a RAM or a flash memory, or a storage device such as a hard disk or an optical disk. As shown in FIG. 10, the storage unit 120 has a first generation target storage unit 121 and a second generation target storage unit 122.
[0054] The first generation object storage unit 121 stores first generation objects. Here, FIG. 11 shows an example of the first generation object storage unit 121 according to the embodiment. The information stored in the first generation object storage unit 121 is used, for example, to evaluate the relevance to a user's question, and is also used to create an answer to the user's question. The information stored in the first generation object storage unit 121 is also used, for example, to evaluate the similarity to a user's question, and is also used to identify the first generation object. As shown in FIG. 11, the first generation object storage unit 121 has items such as "first generation object ID", "source data ID", and "first generation object".
[0055] "First generation target ID" indicates identification information for identifying a first generation target. "Source data ID" indicates identification information for identifying source data linked to the first generation target of the target. "First generation target" indicates a first generation target. In the example shown in FIG. 11, conceptual information such as "first generation target #1" and "first generation target #2" is stored in "first generation target", but in reality, text or images indicating the first generation target are stored.
[0056] The second generation target storage unit 122 stores second generation targets. Here, FIG. 12 shows an example of the second generation target storage unit 122 according to the embodiment. The information stored in the second generation target storage unit 122 is used, for example, to evaluate the similarity with a user's question, and is also used to identify a first generation target. As shown in FIG. 12, the second generation target storage unit 122 has items such as "second generation target ID," "first generation target ID (or second generation target ID)," and "second generation target."
[0057] "Second generation target ID" indicates identification information for identifying a second generation target. "First generation target ID (or second generation target ID)" indicates identification information for identifying a first generation target linked to the second generation target of the target. Also, if the second generation target of the target is a "grandchild," it indicates identification information for identifying the second generation target that is the "child." "Second generation target" indicates a second generation target. In the example shown in Figure 12, conceptual information such as "second generation target #1" and "second generation target #2" is stored in "second generation target," but in reality, text or images indicating the second generation target are stored.
[0058] (Control unit 130) The control unit 130 is a controller, and is realized, for example, by a CPU, an MPU, or the like, executing various programs stored in a storage device inside the information processing device 100 using a RAM as a working area. The control unit 130 is also realized, for example, by an integrated circuit such as an ASIC or an FPGA.
[0059] 10, the control unit 130 has an acquisition unit 131, a conversion unit 132, a search unit 133, an identification unit 134, an evaluation unit 135, an extraction unit 136, a generation unit 137, and a provision unit 138, and realizes or executes the information processing action described below. Note that the internal configuration of the control unit 130 is not limited to the configuration shown in FIG. 10, and may be other configurations as long as they perform the information processing described below.
[0060] (Acquisition part 131) The acquiring unit 131 acquires various types of information from the storage unit 120. In addition, the acquiring unit 131 stores the acquired various types of information in the storage unit 120.
[0061] The acquisition unit 131 acquires various pieces of information from an external information processing device. The acquisition unit 131 acquires various pieces of information from other information processing devices such as the terminal device 10.
[0062] The acquiring unit 131 acquires, for example, a question from a user. For example, the acquiring unit 131 acquires a question that is input, specified, or selected by the user.
[0063] (Conversion unit 132) The conversion unit 132 converts, for example, a user's question into specific information. For example, the conversion unit 132 converts the user's question into specific information using a generation AI in order to create an answer to the user's question. That is, for example, the conversion unit 132 converts into information for creating an answer to the user's question.
[0064] The conversion unit 132 converts, for example, the information into which the similarity is determined in order to narrow down the target (corresponding to the search target) that is the basis for creating an answer. For example, the conversion unit 132 converts, together with the user's question, into information into which the similarity is determined by vector search.
[0065] The conversion unit 132 performs the conversion process when the user's question satisfies a predetermined condition, for example. For example, the conversion unit 132 performs the conversion process when the user's question is not too short (when the question is equal to or longer than a predetermined number of characters, etc.).
[0066] The conversion unit 132 converts, for example, the user's question into information that is a tentative answer to the question as an example of information that embodies the user's question. In addition, the conversion unit 132 converts, for example, the user's question into information that is one or a plurality of questions similar to the question as an example of information that embodies the user's question.
[0067] The conversion unit 132 converts the user's question into specific information, for example, by providing the generation AI with an instruction sentence indicating an instruction to convert the question. Also, the conversion unit 132 converts the user's question into specific information, for example, by providing the generation AI with an instruction sentence expressing at least one of the role, task content, task purpose, premise, and constraint condition in natural language.
[0068] (Search section 133) The search unit 133 searches, for example, based on the information converted by the conversion unit 132. For example, the search unit 133 searches for information having a high similarity (cosine similarity) based on a vector search with the information converted by the conversion unit 132. For example, the search unit 133 searches for information corresponding to the type of information of the second generation target generated based on information corresponding to the type of information of the first generation target. For example, the search unit 133 searches for information corresponding to the type of information of the second generation target generated by dividing the information corresponding to the type of information of the first generation target into a predetermined sentence unit, or information corresponding to the type of information of the second generation target generated by dividing and dividing the information corresponding to the type of information of the first generation target into sentence units so that the number of characters is equal to or less than the maximum number. Also, for example, the search unit 133 searches for information corresponding to the type of information of the first generation target. For example, the search unit 133 determines whether information having a high similarity to the first processing result can be searched from the information type of the first generation target as a result of searching information from the information type of the first generation target and the information type of the second generation target, and searches for information corresponding to the first generation target when it is determined that information having a high similarity to the first processing result can be searched from the information type of the first generation target. At this time, for example, when the search unit 133 determines that information having a high similarity to the first processing result cannot be searched from the information type of the first generation target, it searches for information corresponding to the second generation target. Also, for example, the search unit 133 searches for multiple pieces of information (information corresponding to a predetermined generation target) having a high similarity based on a vector search with the information converted by the conversion unit 132. For example, the search unit 133 searches for a predetermined number of pieces of information (information corresponding to a predetermined generation target) having a high similarity.
[0069] (Specific Section 134) The identification unit 134, for example, identifies information corresponding to the type of information called a first-generation target, which is a basis for creating an answer to a question, based on information corresponding to the type of information called a second-generation target searched by the search unit 133. For example, the identification unit 134 identifies information corresponding to the type of information called a first-generation target linked to information corresponding to the type of information called a second-generation target searched by the search unit 133. For example, the identification unit 134 identifies each piece of information corresponding to the type of information called a first-generation target linked to a plurality of pieces of information corresponding to the type of information called a second-generation target searched by the search unit 133. In addition, the identification unit 134 identifies information corresponding to the type of information called a first-generation target searched by the search unit 133 as information that is a basis for creating an answer to a question. For example, the identification unit 134 identifies each piece of information corresponding to the type of information called a first-generation target searched by the search unit 133.
[0070] (Evaluation Section 135) The evaluation unit 135 evaluates, for example, the relevance between the first generation objects (corresponding to the search results) identified by the identification unit 134 and the user's question. For example, the evaluation unit 135 evaluates the relevance between each of the multiple first generation objects and the user's question. For example, the evaluation unit 135 performs the evaluation by providing the generation AI with an instruction sentence indicating an instruction to evaluate the relevance between each of the multiple first generation objects and the user's question. For example, the evaluation unit 135 performs the evaluation by providing the generation AI with the multiple first generation objects and the user's question together with an instruction sentence indicating an instruction to evaluate the relevance between each of the multiple first generation objects and the user's question.
[0071] (Extraction part 136) The extraction unit 136 extracts, for example, first-generation objects whose relevance has been highly evaluated by the evaluation unit 135 from among the first-generation objects identified by the identification unit 134. For example, the extraction unit 136 extracts a predetermined number of first-generation objects having high relevance by ranking the first-generation objects identified by the identification unit 134 in order of relevance.
[0072] (Generation unit 137) The generation unit 137 generates an answer to the user's question, for example, by using one or more first-generation objects extracted by the extraction unit 136. For example, the generation unit 137 generates an answer to the user's question by providing the generation AI with an instruction sentence indicating an instruction to generate an answer to the question using the first-generation objects. For example, the generation unit 137 generates an answer to the user's question by providing the generation AI with one or more first-generation objects and the user's question together with an instruction sentence indicating an instruction to generate an answer to the question using the first-generation objects.
[0073] (Provider 138) The providing unit 138 provides, for example, the answer generated by the generating unit 137 to the user as the answer to the user's question.
[0074] [6. Information processing flow] Next, the procedure of information processing by the information processing system 1 according to the embodiment will be described with reference to Fig. 13 to Fig. 15. Fig. 13 is a flowchart showing the procedure of the question conversion process according to the embodiment, Fig. 14 is a flowchart showing the procedure of the search refinement process according to the embodiment, and Fig. 15 is a flowchart showing the procedure of the reranking process according to the embodiment.
[0075] As shown in FIG. 13, the information processing device 100 acquires a user's question (step S401). The information processing device 100 judges whether the user's question satisfies a predetermined condition (step S402). When the information processing device 100 judges that the user's question satisfies the predetermined condition (step S402; YES), the information processing device 100 provides the question to the generation AI together with an instruction sentence indicating an instruction to convert the question (step S403). Then, the information processing device 100 converts the user's question into specific information (step S404). On the other hand, when the information processing device 100 judges that the user's question does not satisfy the predetermined condition (step S402; NO), the information processing device 100 ends the information processing. In this case, the information processing device 100 may notify the user of a request to ask the question again (the content of the question may be the same) or a request to change the question.
[0076] As shown in Fig. 14, the information processing device 100 acquires information that embodies a user's question (step S501). The information processing device 100 searches for a plurality of first-generation objects or second-generation objects that have a high similarity to the information that embodies the user's question by comparing the features of the information that embodies the user's question with the candidates for first-generation objects and the candidates for second-generation objects (step S502). The information processing device 100 identifies information that serves as a basis for creating an answer to the user's question by identifying the plurality of first-generation objects that have been searched or the first-generation objects that are linked to the plurality of second-generation objects that have been searched (step S503).
[0077] In addition, in steps S502 and S503, the information processing device 100 may determine the similarity between the information that embodies the user's question by comparing the feature amounts of the information and the first-generation object candidates, and when there is a first-generation object candidate with a high similarity, search for multiple first-generation objects with high similarity and identify the searched multiple first-generation objects to identify information that will be the basis for creating an answer to the user's question. In addition, in steps S502 and S503, the information processing device 100 may determine the similarity between the information that embodies the user's question by comparing the feature amounts of the information and the first-generation object candidates, and when there is no first-generation object candidate with a high similarity, search for multiple second-generation objects with high similarity and identify first-generation objects linked to the searched multiple second-generation objects to identify information that will be the basis for creating an answer to the user's question. At this time, if there is no candidate for a second generation object with a high similarity, the information processing device 100 may notify the user that a highly accurate answer result cannot be provided, or may notify the user that a change to the question is required (obviously, the notification is not limited to such examples). Also, in steps S502 and S503, the information processing device 100 may determine both the similarity with the first generation object and the similarity with the second generation object, search for multiple generation objects with higher similarity, and identify multiple first generation objects based on the search results to identify information that will be the basis for creating an answer to the user's question.
[0078] As shown in FIG. 15, the information processing device 100 acquires a plurality of first-generation objects that satisfy a predetermined condition (step S601). The information processing device 100 provides the generation AI with the plurality of first-generation objects and the question together with an instruction sentence indicating an instruction to evaluate the relevance between each of the plurality of first-generation objects and the user's question (step S602). The information processing device 100 evaluates the relevance between each of the plurality of first-generation objects and the user's question, and reranks the first-generation objects in descending order of relevance according to the relevance (step S603). The information processing device 100 extracts a predetermined number of first-generation objects with high relevance based on the reranking result (step S604). Then, the information processing device 100 generates an answer to the user's question based on the extraction result (step S605).
[0079] [7. Effects] As described above, the information processing device 100 according to the embodiment includes the search unit 133 and the identification unit 134. The search unit 133 searches for a second generation object that is a generation object having a high similarity to information based on a user's question and is generated based on a first generation object. The identification unit 134 identifies a first generation object that is a basis for creating an answer to a question, based on the second generation object searched by the search unit 133.
[0080] As a result, the information processing device 100 according to the embodiment can, for example, promote the improvement of search performance for creating appropriate answers to user questions. Also, the information processing device 100 according to the embodiment can, for example, search for highly related information, and can enable comprehensive and detailed answer generation from a wide range of contexts by referring to "parents."
[0081] In addition, the search unit 133 searches for second-generation targets that are highly similar to the information generated by providing the question to a generation AI that is capable of generating a provisional answer to a specified question or generating one or more questions similar to the specified question.
[0082] As a result, the information processing apparatus 100 according to the embodiment can perform a more accurate search by using, for example, a converted question, thereby promoting improvement in search performance.
[0083] In addition, the search unit 133 searches for second-generation objects based on information generated by providing the generation AI with prompts and questions for generating information for determining similarity together with questions to search for second-generation objects.
[0084] This enables the information processing device 100 according to the embodiment to search for, for example, highly relevant information, thereby enabling generation of a more accurate answer.
[0085] The second generation object is a generation object generated by dividing the first generation object into predetermined sentence units.
[0086] As a result, the information processing apparatus 100 according to the embodiment can promote improvement of search performance by, for example, appropriate chunk division on a sentence-by-sentence basis.
[0087] The second generation object is a generation object generated by dividing the first generation object into sentence units so that the number of characters is equal to or less than the maximum number of characters.
[0088] As a result, the information processing device 100 according to the embodiment can promote improvement of search performance by, for example, appropriate chunk division based on the number of characters.
[0089] Moreover, the first generation object is a generation object generated from a given source data on the premise that it will be used to answer a question.
[0090] This allows the information processing device 100 according to the embodiment to appropriately use chunks generated on the premise that they will be used to answer a question, for example, to generate an answer.
[0091] Furthermore, the predetermined source data is company regulations created for company use.
[0092] This allows the information processing apparatus 100 according to the embodiment to promote improvement in search performance for creating an appropriate answer to a user's question regarding, for example, company regulations.
[0093] [8. Hardware Configuration] Moreover, the information processing device 100 according to the embodiment described above is realized, for example, by a computer 1000 having a configuration as shown in Fig. 16. Fig. 16 is a hardware configuration diagram showing an example of a computer that realizes the functions of the information processing device 100. The computer 1000 has a CPU 1100, a RAM 1200, a ROM 1300, a HDD 1400, a communication interface (I / F) 1500, an input / output interface (I / F) 1600, and a media interface (I / F) 1700.
[0094] The CPU 1100 operates and controls each unit based on a program stored in the ROM 1300 or the HDD 1400. The ROM 1300 stores a boot program executed by the CPU 1100 when the computer 1000 is started up, programs that depend on the hardware of the computer 1000, and the like.
[0095] The HDD 1400 stores programs executed by the CPU 1100, data used by such programs, etc. The communication interface 1500 acquires data from other devices via a predetermined communication network and sends it to the CPU 1100, and transmits data generated by the CPU 1100 to other devices via the predetermined communication network.
[0096] The CPU 1100 controls output devices such as a display and a printer, and input devices such as a keyboard and a mouse, via the input / output interface 1600. The CPU 1100 acquires data from the input devices via the input / output interface 1600. The CPU 1100 also outputs generated data to the output devices via the input / output interface 1600.
[0097] Media interface 1700 reads a program or data stored in recording medium 1800 and provides it to CPU 1100 via RAM 1200. CPU 1100 loads the program from recording medium 1800 onto RAM 1200 via media interface 1700 and executes the loaded program. Recording medium 1800 is, for example, an optical recording medium such as a DVD (Digital Versatile Disc) or a PD (Phase change rewritable Disc), a magneto-optical recording medium such as an MO (Magneto-Optical disk), a tape medium, a magnetic recording medium, or a semiconductor memory.
[0098] For example, when the computer 1000 functions as the information processing device 100 according to the embodiment, the CPU 1100 of the computer 1000 executes programs loaded onto the RAM 1200 to realize the functions of the control unit 130. The CPU 1100 of the computer 1000 reads and executes these programs from the recording medium 1800, but as another example, the CPU 1100 may obtain these programs from another device via a predetermined communication network.
[0099] [9. Others] Furthermore, among the processes described in the above embodiments, all or part of the processes described as being performed automatically can be performed manually, or all or part of the processes described as being performed manually can be performed automatically by a known method. In addition, the information including the processing procedures, specific names, various data and parameters shown in the above documents and drawings can be changed arbitrarily unless otherwise specified. For example, the various information shown in each drawing is not limited to the illustrated information.
[0100] In addition, each component of each device shown in the figure is a functional concept, and does not necessarily have to be physically configured as shown in the figure. In other words, the specific form of distribution and integration of each device is not limited to that shown in the figure, and all or part of them can be functionally or physically distributed and integrated in any unit according to various loads, usage conditions, etc.
[0101] Furthermore, the above-described embodiments can be appropriately combined as long as the processing contents are not contradictory.
[0102] Although some of the embodiments of the present application have been described in detail above with reference to the drawings, these are merely examples, and the present invention can be embodied in other forms that incorporate various modifications and improvements based on the knowledge of those skilled in the art, including the forms described in the Disclosure of the Invention section.
[0103] Furthermore, the above-mentioned "section, module, unit" can be read as "means" or "circuit", etc. For example, an acquisition section can be read as an acquisition means or an acquisition circuit. [Explanation of symbols]
[0104] 1. Information Processing Systems 10 Terminal Equipment 11 Communications Department 12 Input section 13 Output section 14 Control section 100 Information processing device 110 Communications Department 120 Storage section 121 First Generation Target Memory Unit 122 Second Generation Target Memory Unit 130 Control section 131 Acquisition Department 132 Conversion unit 133 Search Department 134 Specific part 135 Evaluation Department 136 Extraction part 137 Generation part 138 Provision Department 141 Receiving unit 142 Transmitter N Network
Claims
1. a search unit that, when a first generation object having a similarity to information based on a user's question equal to or greater than a predetermined threshold can be searched for, searches for the first generation object as a search result, and, when a first generation object having the similarity equal to or greater than the predetermined threshold cannot be searched for, searches for a second generation object which is a generation object having a high similarity to the information and which is generated based on the first generation object, and searches for the second generation object as a search result; an identification unit that identifies the first generation object that is a basis for creating an answer to the question based on the search results obtained by the search unit; 13. An information processing device comprising:
2. The search unit is The question is provided to a generation AI capable of generating a provisional answer to a predetermined question or generating one or more questions similar to the predetermined question, thereby searching for the second generation object having a high similarity to the generated information.
2. The information processing apparatus according to claim 1,
3. The search unit is The second-generation object is searched for based on the information generated by providing the prompt for generating the information for which the similarity is determined together with the question to the generation AI in order to search for the second-generation object, and the question.
3. The information processing apparatus according to claim 2.
4. The second generation object is a generation object generated by dividing the first generation object into a predetermined number of sentences.
2. The information processing apparatus according to claim 1,
5. The second generation object is a generation object generated by dividing the first generation object into sentences so that the number of characters is equal to or less than the maximum number of characters.
2. The information processing apparatus according to claim 1,
6. The first generation object is a generation object generated from a predetermined source data on the premise that it is used to answer a question.
2. The information processing apparatus according to claim 1,
7. The predetermined source data is a company policy created for the company.
7. The information processing apparatus according to claim 6,
8. 1. A computer-implemented information processing method, comprising: a search step of searching for a first generation object having a similarity to information based on a user's question equal to or greater than a predetermined threshold value when such a first generation object can be searched for, and searching for a second generation object which is a generation object having a high similarity to the information and which is generated based on the first generation object when such a first generation object cannot be searched for, and obtaining the search result; an identification step of identifying the first generation object that will be used as a basis for creating an answer to the question based on the search results obtained by the search step; 13. An information processing method comprising:
9. a search procedure for searching for a first generation object having a similarity to information based on a user's question equal to or greater than a predetermined threshold value when such a first generation object can be searched for, and searching for a second generation object which is a generation object having a high similarity to the information and which is generated based on the first generation object when such a first generation object cannot be searched for, and obtaining such a search result; an identification step of identifying the first generation object that is a basis for generating an answer to the question based on a search result obtained by the search step; An information processing program characterized by causing a computer to execute the above.
Citation Information
Patent Citations
Passage type questioning and answering device, method, and program
JP2018124914A
Method, computer device, and computer program for providing dialogue dedicated to domain by using language model
JP2023076413A
Document Processing and Response Generation System
JP2023532669A
Utilizing Word Embeddings for Term Matching in Question Answering Systems
US20190377747A1
Cited By
Information processing apparatus, information processing method, carrier means, and information processing system
EP4811166A1
Speech output device, speech output method, and program
JP2026076924A
Speech output device, speech output method, and program
JP2026076990A
Response support system, response support method, and response support program
JP2026092249A
Computer-implemented method, system and computer program
JP2026098840A
