Information processing device, program, and dialogue method that respond to user speech with a response voice based on knowledge data.
The information processing device uses a chunk memory and language model to predict and pre-store relevant chunks for immediate response generation, addressing delays in existing dialogue systems by minimizing real-time knowledge data retrieval.
Patent Information
- Application Number
- JP2026075063
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2026-04-28
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2046-04-28
AI Technical Summary
Existing dialogue systems require significant computational resources and time to generate responses after the user's spoken audio is complete, leading to delays in providing immediate responses.
An information processing device that utilizes a chunk memory to store predicted question sentences and chunks, performs immediate search and response generation using a language model, and predicts the next question to pre-store relevant chunks in the memory, allowing for rapid response generation.
Enables quick response sentence generation by minimizing the need for real-time knowledge data retrieval, thus reducing response time and enhancing user interaction efficiency.
Smart Images

Figure 0007954881000001_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a dialogue system technology that returns response speech in response to a user's spoken speech. In particular, it is suitable for speech FAQ (Frequently Asked Question) systems.
Background Art
[0002] FAQ systems for customer support include technologies such as chatbots embedded in websites and applications. Such systems can respond to various questions from an unspecified number of users regardless of time of day, contributing to reducing service costs and improving customer satisfaction.
[0003] Conventionally, there is a technology for semantically understanding a user's spoken language (for example, see Patent Document 1). According to this technology, a user's spoken speech is converted into text using a model, and semantic information is obtained through a language understanding task.
[0004] There is also FAQ system technology that infers response sentences using Large Language Models (LLMs) in response to natural language questions from users (for example, see Patent Document 2). According to this technology, a large language model determines whether the question sentence itself is suitable for inferring a response sentence. When it is determined to be unsuitable, a response sentence for delving into the question sentence is presented to the user.
Prior Art Documents
Patent Documents
[0005]
Patent Document 1
Patent Document 2
Summary of the Invention
Problems to be Solved by the Invention
[0006] In existing dialogue systems, a response is generated after the user's utterance is complete. Often, this process requires external knowledge data (e.g., documents). In this case, after the user's utterance is complete, the system searches for the knowledge data and uses it to generate the response. However, generating an answer by searching knowledge data after the user's spoken audio is complete—that is, after the entire question has been obtained—requires significant computational resources and takes a long time. This creates a problem where delays are likely to occur before a response can be provided. In systems like voice FAQs, immediate responses are required for the user.
[0007] Therefore, the present invention aims to provide an information processing device, a program, and a dialogue method that can generate a response sentence as quickly as possible when responding to a user's spoken voice with a response voice based on knowledge data. [Means for solving the problem]
[0008] According to the present invention, in an information processing device that responds to a user's spoken voice with a response voice, As an immediate response, A chunk memory that stores predicted question sentences and chunks in association, A speech recognition means that takes user speech as input and recognizes the user's question, A chunk memory search means that uses chunk memory to search for chunks corresponding to predictive question sentences that are similar to the question sentence by a predetermined threshold or more, A response generation means that uses a language model to generate a response to the user using the question and the retrieved chunk, A voice conversion means for converting the response text into a voice response to the user, It has, For question prediction, immediacy is not required. background Within the time range, A knowledge database that stores chunks containing the text of knowledge data, A question prediction means that uses a language model to predict the next predicted question from the user's question, A knowledge data retrieval means that searches a knowledge database for the next chunk containing text related to the next predicted question, and stores the next predicted question and the next chunk in chunk memory in association with each other. It is characterized by having the following features.
[0009] According to another embodiment of the information processing apparatus of the present invention, The question prediction means predicts the next question by considering not only the user's question but also the answer to that question. That is also desirable.
[0010] According to another embodiment of the information processing apparatus of the present invention, The chunk memory associates embedded vectors based on the predicted question sentences. The chunk memory search method is, A vector transformation means for converting the user's question text into an embedded vector, A vector search means that uses chunk memory to perform an embedded vector search to find embedded vectors of predicted question sentences that are similar to the embedded vector of the question sentence and exceed a predetermined threshold, and outputs chunks corresponding to the embedded vectors of the found predicted question sentences. It is also preferable to close it.
[0011] According to another embodiment of the information processing apparatus of the present invention, The chunk memory search means, when it is unable to find a predicted question that is similar to the user's question above a predetermined threshold, uses the user's question to search for a predicted question. The next predicted question will be: The data is input into the knowledge data retrieval system and stored in chunk memory. Next prediction In response to the question Next Remember the chunk, and then, again, the relevant Next Output chunks That is also desirable.
[0012] According to another embodiment of the information processing apparatus of the present invention, The chunk memory search unit may also instruct the response sentence generation unit to generate a filler response sentence to the user .
[0013] According to another embodiment of the information processing apparatus of the present invention, the chunk memory search unit outputs predicted question sentences that have not been searched among predicted question sentences stored in the chunk memory, to the response sentence generation unit, and the response sentence generation unit may generate, following the generated response sentence, Not found in search results an inquiry sentence asking the user whether the user desires the predicted question sentence .
[0014] According to another embodiment of the information processing apparatus of the present invention, each chunk is associated with an embedding vector based on text, the knowledge database stores text and embedding vectors in association with each other for each chunk, and the knowledge data search unit includes, as Retrieval-Augmented Generation (RAG), vector conversion means for converting a predicted question sentence into an embedding vector, The following embedding vector search means for performing embedding vector search to search for a first predetermined number of top embedding vectors similar to the embedding vector of the predicted question sentence using the knowledge database, and outputting chunks having the embedding vectors, keyword search means for performing keyword search to search for a second predetermined number of top chunks similar to keywords of the predicted question sentence using the knowledge database, and outputting the searched chunks, Next and semantic ranking search means for performing semantic ranking search to arrange the first predetermined number of chunks based on embedding chunk search and the second predetermined number of chunks based on keyword search in descending order of semantic relevance to the predicted question sentence, search for a third predetermined number of top chunks, and output the searched chunks . Next The next chunk is The semantic ranking search method to output and It is also preferable to close it.
[0015] According to the present invention, in a program that causes a computer mounted on an information processing device that responds to a user's spoken voice with a response voice, As an immediate response, A chunk memory that stores predicted question sentences and chunks in association, A speech recognition means that takes user speech as input and recognizes the user's question, A chunk memory search means that uses chunk memory to search for chunks corresponding to predictive question sentences that are similar to the question sentence by a predetermined threshold or more, A response generation means that uses a language model to generate a response to the user using the question and the retrieved chunk, A voice conversion means for converting the response text into a voice response to the user, It has, For question prediction, immediacy is not required. background Within the time range, A knowledge database that stores chunks containing the text of knowledge data, A question prediction means that uses a language model to predict the next predicted question from the user's question, A knowledge data retrieval means that searches a knowledge database for the next chunk containing text related to the next predicted question, and stores the next predicted question and the next chunk in chunk memory in association with each other. It is characterized by enabling the computer to function in this way.
[0016] According to the present invention, in a method of dialogue for a device that responds to a user's spoken voice with a response voice, The device is A knowledge database that stores chunks containing the text of knowledge data, Chunk memory that stores predicted question sentences and chunks in association with each other. It has, As an immediate response, The first step involves inputting the user's spoken audio and recognizing the user's question, A second step involves using chunk memory to search for chunks corresponding to predictive question sentences that are similar to the question sentence by a predetermined threshold or more, A third step involves using a language model to generate a response to the user using the question and the retrieved chunk. The fourth step is to convert the response text into a voice response for the user. It has, For question prediction, immediacy is not required. background Within the time range, The fifth step involves using a language model to predict the next question from the user's question, The sixth step involves searching the knowledge database for the next chunk containing text related to the next predicted question, and storing the next predicted question and the next chunk in chunk memory in association with each other. It is characterized by performing the following. [Effects of the Invention]
[0017] According to the information processing device, program, and dialogue method of the present invention, when responding to a user's spoken voice with a response voice based on knowledge data, it is possible to generate a response sentence as quickly as possible. [Brief explanation of the drawing]
[0018] [Figure 1] This is a functional configuration diagram of the information processing device according to the present invention. [Figure 2] This is an explanatory diagram of the chunk memory search unit and the answer text generation unit in the present invention. [Figure 3] This is an explanatory diagram of the question prediction unit in the present invention. [Figure 4] This is an explanatory diagram of the knowledge data retrieval unit in the present invention. [Figure 5] This is an explanatory diagram for the chunk memory search unit when no search is performed. [Figure 6] This is a first explanatory diagram showing the sequence of question and answer statements in the present invention. [Figure 7] This is a second explanatory diagram showing the sequence of question and answer statements in the present invention. [Figure 8] This is a third explanatory diagram showing the sequence of question and answer sentences in the present invention. [Figure 9] This is a functional configuration diagram for building a knowledge database. [Modes for carrying out the invention]
[0019] Embodiments of the present invention will be described in detail below with reference to the drawings.
[0020] Figure 1 is a functional configuration diagram of the information processing device according to the present invention.
[0021] According to Figure 1, the information processing device 1 of the present invention communicates with the terminal 2, which serves as the user's front end, via a network. Terminal 2 picks up the user's spoken voice with its microphone and transmits the spoken voice to the information processing device 1. Terminal 2 also receives a response voice from the information processing device 1 and replies to the user through its speaker. Furthermore, Terminal 2 may also display the response to the user on its display. Here, "user" can refer to an unspecified number of third parties or a specific number of people (for example, employees who use an internal company system). Let's assume that the user is, for example, someone who asks a question in an FAQ and needs an answer based on knowledge data.
[0022] The information processing device 1 responds to the user's spoken voice with a response voice based on knowledge data. As shown in Figure 1, the information processing device 1 has a knowledge database 10.
[0023] [Knowledge Database 10] Knowledge database 10 is a collection of "chunks" containing the text of knowledge data. Here, "knowledge data" refers to text based on documents (external information) that are the subject of FAQ responses. These documents may be in a wide variety of file formats, but the "knowledge data" refers to the text extracted from them. A "chunk" is a division of text into predetermined units. These units may be based on a predetermined number of characters (e.g., 256 characters), pages, or paragraphs.
[0024] Furthermore, according to the knowledge database 10, a chunk may also be associated with an embedded vector based on its text. That is, the knowledge database 10 stores the text and the embedded vector in association for each chunk. Embedding vectors are created by transforming text-based chunks into high-dimensional vectors that numerically represent meaning and features using the Application Programming Interface (API) of a Large-Scale Language Model (LLM). This allows the semantic features of words and sentences to be represented as numerical arrays, enabling quantitative analysis of similarities and relationships between texts. For example, it could be OpenAI's Embedding API, ada®, which is pre-trained with general linguistic knowledge from a large text corpus.
[0025] Furthermore, the knowledge database 10 may store chunks and embedding vectors based on an index. Chunks can be searched quickly by index search.
[0026] According to Figure 1, the information processing device 1 has functional parts in the following two stages. <Immediate response (Fast Taker)> : A function that is executed immediately after the question is recognized from the user's spoken voice. <Question Prediction (Slow Thinker)> : A function that is executed while answering a user's question or while waiting for the user's question to be submitted.
[0027] According to Figure 1, the information processing device 1 includes a speech recognition unit 101, a chunk memory 13, a chunk memory search unit 14, a response text generation unit 15, and a speech conversion unit 102, as part of the <immediate response> stage. Here, the system searches for a chunk from a pre-predicted set of chunks in response to the user's "question," instantly generates an answer, and sends it back to the user.
[0028] According to Figure 1, the information processing device 1 includes a question prediction unit 11 and a knowledge data retrieval unit 12 as part of the <question prediction> stage. Here, while the system is responding to a user's question or waiting for a question from the user, it predicts a potential question based on the user's previous question (and the response to the user), and stores the corresponding chunk in advance.
[0029] These functional components are realized by executing programs that enable the computer installed in the information processing device to function. Furthermore, the processing flow of these functional components can also be understood as a method of interaction within the information processing device.
[0030] <Immediate response (Fast Taker)> [Voice recognition unit 101] The speech recognition unit 101 takes the user's "spoken voice" as input and recognizes the user's "question sentence" in text form (see S1 in Figure 1). Specifically, the speech recognition unit 101 could be Vosk®, an open-source library that is lightweight and can be used offline. Alternatively, Faster-Whisper® or Julius® could also be used. By using these libraries, it is possible to output question sentences (text) from spoken audio at high speed. Although this is presented as a question, it can of course be a unit where the user's utterance is interrupted during the formation of a sentence.
[0031] [Chunk memory 13] The chunk memory 13 stores the "predicted question sentence" and the "chunk" in association. The chunk memory 13 stores the "chunk" retrieved by the knowledge data retrieval unit 12 during the <question sentence prediction> stage. Here, the chunk memory 13 may be text-based as the predictive question, or it may be associated with an embedding vector based on that predictive question. This is a conversion of the text-based question into a high-dimensional vector that numerically represents its meaning and features.
[0032] [Chunk memory search unit 14] The chunk memory search unit 14 uses the chunk memory 13 to search for "chunks" that correspond to "predicted question sentences" that are similar to the "question sentence" by a predetermined threshold or more (see S2 in Figure 1).
[0033] Figure 2 is an explanatory diagram of the chunk memory search unit and the answer text generation unit in the present invention.
[0034] Assume that the predicted question sentences in chunk memory 13 are embedded vectors. According to Figure 2, the chunk memory search unit 14 has a vector conversion unit and a vector search unit. (Vector transformation section) The vector conversion unit converts the user's question (the entire sentence) into an embedded vector. (Vector search unit) The vector search unit performs an embedded vector search from the chunk memory 13 to find embedded vectors of predicted question sentences that are similar to the embedded vector of the question sentence and exceed a predetermined threshold, and outputs the chunks corresponding to the embedded vectors of the found predicted question sentences. Specifically, the similarity between the embedding vector of the question and the embedding vector of the predicted question in the chunk memory 13 may be calculated using cosine similarity or Euclidean distance. The chunks to be searched may be one or multiple. The chunks associated with these embedded vectors are output to the response text generation unit 15. The vector search unit of the chunk memory search unit 14 only needs to search the chunk memory 13, thus enabling high-speed processing.
[0035] [Answer sentence generation section 15] The response generation unit 15 uses a language model to generate a response to the user using the user's "question" and the "chunks" retrieved from the chunk memory 13 by the chunk memory search unit 14 (see S3 in Figure 1). Furthermore, the system may also consider the user's past responses (for example, around 10 turns) when generating responses to the user.
[0036] The response generation unit 15 may communicate with a Generative Artificial Intelligence (AI) server via a network as a backend for creating response texts. The response generation unit 15 is based on a pre-trained large-scale language model (LLM). A large-scale language model is a type of deep learning model that has been trained on a large amount of text data. Based on neural network architectures such as Transformer, it can understand context and generate natural language sentences. These are pre-trained with general linguistic knowledge from a large text corpus. Specifically, examples include OpenAI's ChatGPT®, Anthropic's Claude®, Google's Gemini®, and Meta's Llama®. These are pre-trained using general linguistic knowledge derived from large text corpora.
[0037] According to Figure 2, the response generation unit 15 sends a prompt to the language model, for example, the following: -------------------------------------------------------------------------------- You are an FAQ engine for voice assistants. For the following #question, generate an answer based on the #chunk. #Question ············· #chunk ············· -------------------------------------------------------------------------------- In response, the response generation unit 15 obtains the response from the language model. This response is then output to the speech conversion unit 102.
[0038] [Voice conversion unit 102] The voice conversion unit 102 converts the "answer text" output from the answer text generation unit 15 into "response voice" for the user. Specifically, there are open-source libraries such as VoiceVox® and Piper®, which are lightweight and can be used offline. By using these libraries, it is possible to output response voices quickly from the response text. The information processing device 1 then transmits the converted response voice to the terminal 2 and responds to the user through its speaker.
[0039] <Question Prediction (Slow Thinker)> [Question Prediction Section 11] The question prediction unit 11 uses a language model to predict the next "predicted question" from the user's "question" (see S4 in Figure 1). The question prediction unit 11 may also predict the next predicted question by considering the user's answer to that question in addition to the user's question. Furthermore, the question prediction unit 11 may predict the next predicted question by considering multiple past questions and multiple past answers from the user.
[0040] Figure 3 is an explanatory diagram of the question prediction unit in the present invention.
[0041] As shown in Figure 3, the question prediction unit 11 uses an internal or external lightweight language model. For example, the language model may be GPT-4.1-nano(registered trademark). This allows for the immediate prediction of the next predicted question from the user's question. Also,
[0042] According to Figure 3, the question prediction unit 11 sends a prompt to the language model, for example, like the following: -------------------------------------------------------------------------------- You are an FAQ engine for voice assistants. Please generate the next predicted question for the user from the following #question(and #answer)(s). #Question ·· (#Answer text ······················································································································· is -------------------------------------------------------------------------------- In response, the question prediction unit 11 obtains a predicted question from the language model.
[0043] [Knowledge Data Retrieval Section 12] The knowledge data retrieval unit 12 searches the knowledge database 10 for "chunks" containing text related to "predictive question sentences" (see S5 in Figure 1), associates the "predictive question sentences" and "chunks," and stores them in the chunk memory 13 (see S6 in Figure 1). In the knowledge database 10, the text of the knowledge data is associated with an embedded vector based on that text. In other words, the knowledge database 10 stores the text and the embedded vector in a corresponding manner for each chunk. As a result, the knowledge data retrieval unit 12 functions as a Retrieval-Augmented Generation (RAG) unit using the knowledge database 10.
[0044] Figure 4 is an explanatory diagram of the knowledge data retrieval unit in the present invention.
[0045] According to Figure 4, the knowledge data retrieval unit 12 includes a vector conversion unit, an embedded vector retrieval unit, a keyword retrieval unit, and a semantic ranking retrieval unit. This involves performing a triple search (embedded vector search unit, keyword search unit, and semantic ranking search unit) to improve the accuracy of knowledge data retrieval (which takes more time).
[0046] (Vector transformation section) The vector transformation unit converts the predicted question sentence into an embedded vector. This is the same as the vector transformation unit of the chunk memory search unit 14 in Figure 2 mentioned above.
[0047] <Triple Search> (Embedded vector search unit) The embedded vector search unit uses the knowledge database 10 to perform an "embedded vector search" to find a predetermined number of embedded vectors that are similar to the embedded vector of the predicted question sentence, starting from the top ones, and outputs chunks that contain those embedded vectors. This is the same as the vector search unit shown in Figure 2 above. Specifically, this evaluates the similarity between the embedding vector of the predicted question and the embedding vector of the chunk in the knowledge database 10. For example, it searches for the top 5 (first predetermined number) chunks with the highest similarity between the vectors.
[0048] (Keyword Search Section) The keyword search unit uses the knowledge database 10 to perform a "keyword search" that searches for a second predetermined number of chunks from the top that are similar to the keyword (search query) in the predicted question sentence, and outputs the searched chunks. Specifically, this evaluates the degree of match between the keywords in the question and the keywords in the chunk text of the knowledge database 10. For example, it searches for the top 5 (or a second predetermined number) chunks with the highest keyword match degrees.
[0049] The keyword search unit may use a statistical algorithm such as BM25 (Okapi BM (Best Matching) 25). This allows the text of each chunk in response to the question to be ranked by score.
[0050] BM25 is an improved algorithm based on TF-IDF (Term Frequency - Inverse Document Frequency). It considers word frequency (TF), determining that words appearing more frequently in a text are more important. Conversely, it also considers inverse document frequency (IDF), determining that words in a search query that are common words appearing in many texts are less important. On the other hand, words that appear only in specific texts are considered more important. A distinctive feature of BM25 is its consideration of text length. Generally, longer texts tend to contain more words, and therefore have a higher word frequency. BM25 compensates for this effect by considering text length. BM25 combines these factors to score the importance of the text. A higher score indicates greater relevance to the search query, resulting in a higher ranking in search results. Of course, the keyword search unit is not limited to BM25; it may be based on existing keyword search algorithms or other algorithms.
[0051] (Semantic Ranking Search Department) The semantic ranking search unit performs a "semantic ranking search" which sorts a predetermined number of chunks based on embedded chunk search and a predetermined number of chunks based on keyword search in order of semantic relevance to the predicted question sentence, searches for the top-ranking (or third predetermined number from the top) chunks, and outputs the searched chunks.
[0052] The semantic ranking search unit sorts the text chunks found by the embedded vector search unit (e.g., 5 items) and the text chunks found by the keyword search unit (e.g., 5 items) in descending order of semantic relevance to the question, and ultimately selects the top-ranking (or third predetermined number of top items) chunks. For example, it may select the top 1 item (or the top multiple items) from 10 text items (= 5 items + 5 items).
[0053] Semantic ranking, unlike keyword search, uses techniques such as natural language processing and machine learning to understand the meaning, context, and intent of a search query, and then ranks the results in order of relevance. In particular, it inherits the advantages of fuzzy search and, through syntactic and semantic analysis, can rank search results higher if they are closer to the meaning of the search query. Specific examples include Microsoft's Azure OpenAI (registered trademark) and Google's BERT (Bidirectional Encoder Representations from Transformers).
[0054] <About the integration feature between instant responses and question prediction> The knowledge data retrieval unit 12 functions as a RAG (Search Extension Generation) using the knowledge database 10. Therefore, in practice, its retrieval requires significant computing resources and computation time. On the other hand, the knowledge data retrieval unit 12 is executed at the <question prediction> stage, not the <immediate response> stage. In other words, the knowledge data retrieval unit 12 is executed in the background during the interaction with the user, in a time range where immediacy is not required.
[0055] Generally, human interaction in the real world is full-duplex (simultaneous, bidirectional). That is, while listening to the other person's speech, a person is simultaneously selecting and filtering various pieces of memory information in their mind. Then, after the other person has finished speaking, they themselves respond with a voiced response. The information processing device 1 of the present invention predicts a predicted question from the previous user's question (and the answer to the user) during a background time range such as while responding to a user or waiting for a question from the user, and pre-stores chunks corresponding to that predicted question. As a result, if the user's question is similar to a predicted question, the chunk of knowledge data is already stored in the chunk memory 13 as soon as the user finishes speaking, and the generation of the answer can begin immediately.
[0056] Figure 5 is an explanatory diagram showing the case where no search is performed in the chunk memory search unit.
[0057] According to Figure 5, the process is carried out in the following steps. (S21) Assume that the chunk memory search unit 14 was unable to find a predicted question sentence from the chunk memory 13 that was similar to the user's question sentence by a predetermined threshold or more. (S22) At this time, the chunk memory search unit 14 inputs the user's question sentence to the knowledge data search unit 12. As a result, the knowledge data search unit 12 searches the knowledge database 10 for chunks corresponding to the question sentence. (S23) Then, the chunk corresponding to the question is stored in chunk memory 13. (S24) The chunk memory search unit 14 searches the chunk memory 13 again for chunks that correspond to the user's question sentence and are similar to the question sentence (predicted question sentence) by a predetermined threshold or more. (S25) The chunk memory search unit 14 then outputs the searched chunk to the answer text generation unit 15.
[0058] Here, in S22, the knowledge data retrieval unit 12 may perform only an embedded vector search (embedded vector search, keyword search, and semantic ranking search) in order to minimize the search time as much as possible. This is because the knowledge data retrieval unit 12, which is executed at the immediate response stage, prioritizes minimizing the search time over chunk search accuracy.
[0059] <Generating filler response text> In another embodiment, if the chunk memory search unit 14 cannot find a chunk in the chunk memory 13 that is similar to the user's question sentence by a predetermined threshold or more, it instructs the answer sentence generation unit 15 to generate a filler answer sentence for the user. Fillers are meaningless utterances in conversation, such as repeating what the other person said, or using phrases like "um," "uh," or "well," to fill the gap when one is stuck for words or searching for the next word. In this context, repeating the other person's words can also serve to provide time for the respondent to formulate a reply. This eliminates silent intervals for the other person, especially when the time required to retrieve knowledge data is long (i.e., the required accuracy of the search is high). This also contributes to a smoother conversational experience for the user.
[0060] Here, when attempting to provide an immediate answer to a user's question, the chunk related to that question is not stored in the chunk memory 13. Therefore, the knowledge data retrieval unit 12 in the question prediction process must search the knowledge database 10 again. However, using RAG for question prediction requires a relatively long search time (about 5 seconds). For this reason, a filler is returned as the answer first.
[0061] <Generating a query> In another embodiment, the chunk memory search unit 14 may output to the answer sentence generation unit 15 any "predictive question sentences that have not been searched" among the predictive question sentences stored in the chunk memory 13. In response, the response generation unit 15 generates an "inquiry statement" that asks the user whether or not they want the predicted question statement, following the generated response statement.
[0062] In other words, the predicted question sentences stored in chunk memory 13 are those that the language model has predicted in advance of what the user is likely to ask. By deliberately presenting these predicted question sentences as answers (inquiries) to the user, the burden on the user to think of questions can be reduced. Furthermore, if the user agrees to the inquiry presented by the information processing device 1, the chunk corresponding to that question is already stored in the chunk memory 13, allowing for an immediate response.
[0063] Figure 6 is a first explanatory diagram showing the sequence of question and answer sentences in the present invention.
[0064] <s1-1>Instant response + delayed chunk search (User's question) "What is 5G technology?" (Chunk memory search unit 14) In the initial stage, no chunks are stored in the chunk memory 13, and therefore chunks cannot be searched. In this case, the user's question is input to the knowledge data search unit 12. In this case, the response generation unit 15 may be instructed to provide a filler response. (Answer sentence generation part 15) As filler, a language model is used to generate response sentences like the following. -------------------------------------------------------------------------------- You're asking about 5G, right? Please wait a moment. -------------------------------------------------------------------------------- (Knowledge Data Retrieval Unit 12) The system searches the knowledge database 10 for chunks of knowledge data (using 5G technology) corresponding to the user's question and outputs them to the chunk memory 13. (Chunk memory 13) Remember the following chunks. Chunk (5G technology) (Chunk memory search unit 14) The chunk memory 13 searches for the chunk (5G technology) and outputs it to the response text generation unit 15. (Answer sentence generation part 15) Using a language model, we generate response sentences like the following, based on the user's question and chunks (5G technology). -------------------------------------------------------------------------------- 5G (Fifth Generation Mobile Communication System) refers to the "fifth generation" of new communication standards. This technology has evolved from "communication for watching videos on smartphones" up to 4G, and is designed as "a foundation for connecting all kinds of things (IoT) and social infrastructure to the internet." --------------------------------------------------------------------------------
[0065] <s1-2>Question prediction (Question Prediction Section 11) Using a language model, we can predict a question like the following based on the user's question, "What is 5G technology?". "What is repurposed 5G?" "Which industries are strong in 5G technology?" (Knowledge Data Retrieval Unit 12) The system searches the knowledge database 10 for chunks of knowledge data corresponding to the predicted question and outputs them to the chunk memory 13. (Chunk memory 13) Remember the following chunks. Chunk (5G industry) Chunk (repurposed 5G) Chunk (5G technology)
[0066] Figure 7 is a second explanatory diagram showing the sequence of question and answer statements in the present invention.
[0067] <s2-1>Instant answer (User's question) "Can 5G be used in rural areas?" (Chunk memory search unit 14) The chunk (repurposed 5G) is searched for in the chunk memory 13. This chunk (repurposed 5G) is output to the answer text generation unit 15. In this case, since the chunk (repurposed 5G) is already stored, an immediate answer is possible. (Answer sentence generation part 15) Using a language model, we generate an answer sentence like the following, based on the user's question and chunks (repurposed 5G). -------------------------------------------------------------------------------- It's becoming "usable" in many rural areas as well. However, just like in urban areas, places where you can experience "blazing-fast speeds" are still limited. This is because in order to quickly cover a wide area, many places are "using 4G radio waves and renaming them to 5G (repurposed 5G)." --------------------------------------------------------------------------------
[0068] <s2-2>Question prediction (Question Prediction Section 11) Using a language model, we can predict the following type of question based on the user's question, "Can 5G be used in rural areas?". "What are the communication protocols for 5G networks?" (Knowledge Data Retrieval Unit 12) The system searches the knowledge database 10 for chunks of knowledge data (5G protocol) corresponding to the predicted question and outputs them to the chunk memory 13. (Chunk memory 13) Remember the following chunks. Chunk (5G protocol) Chunk (5G industry) Chunk (repurposed 5G) Chunk (5G technology)
[0069] Figure 8 is a third explanatory diagram showing the sequence of question and answer sentences in the present invention.
[0070] <s3-1>Instant response + delayed chunk search (User's question) "Please tell me which companies related to 5G semiconductors are seeing their stock prices rise." (Chunk memory search unit 14) In this case, the chunk memory 13 does not contain any chunks related to the stock prices of semiconductor-related companies, and therefore the chunks cannot be searched. In this case, the user's question is input to the knowledge data search unit 12. In this case, the response generation unit 15 may be instructed to provide a filler response. (Answer sentence generation part 15) As filler, a language model is used to generate response sentences like the following. -------------------------------------------------------------------------------- It's related to 5G semiconductors. While stock prices are rising, um... -------------------------------------------------------------------------------- (Knowledge Data Retrieval Unit 12) The system searches the knowledge database 10 for a chunk of knowledge data (5G semiconductor stock price) corresponding to the user's question and outputs it to the chunk memory 13. (Chunk memory 13) Remember the following chunks. Chunk (5G semiconductor stock price) Chunk (5G protocol) Chunk (5G industry) Chunk (repurposed 5G) Chunk (5G technology) (Chunk memory search unit 14) The chunk memory 13 searches for the chunk (5G semiconductor stock price) and outputs it to the response text generation unit 15. In this case, the predictive question sentence for the chunk (5G industry) may be output to the answer generation unit 15 as an "unsearched predictive question sentence" among the predictive question sentences stored in the chunk memory 13. (Answer sentence generation part 15) Using a language model, a response sentence like the following is generated from the user's question and chunks (5G semiconductor stock prices). Following the generated response sentence, a "query sentence" is then generated asking the user whether or not they want the predicted question sentence. ------------------------------------------------------------------------------- Company A is a semiconductor stock related to 5G. It is a company with high demand for multilayer capacitors for 5G. Would you also like to know which industries are strong in 5G technology? ------------------------------------------------------------------------------- In response to this, if the user agrees to the inquiry, the chunk corresponding to that question is already stored in chunk memory 13, making an immediate response possible.
[0071] <s3-2>Question prediction (Question Prediction Section 11) Based on the user's question, "Please tell me which companies related to 5G semiconductors are seeing their stock prices rise," a language model is used to predict a question like the following. "Which companies related to 5G communication infrastructure are seeing their stock prices rise?" "Which companies related to 5G measuring instruments are seeing their stock prices rise?" (Knowledge Data Retrieval Unit 12) The system searches the knowledge database 10 for chunks of knowledge data corresponding to the predicted question and outputs them to the chunk memory 13. (Chunk memory 13) Remember the following chunks. Chunk (5G measuring instrument stock price) Chunk (5G communication infrastructure stock price) Chunk (5G semiconductor stock price) Chunk (5G protocol) Chunk (5G industry) Chunk (repurposed 5G) Chunk (5G technology)
[0072] Figure 9 is a functional configuration diagram for building a knowledge database.
[0073] As shown in Figure 9, the information processing device 1 is equipped with a web interface base that acts as a server for a website and communicates with the operator terminal 3 on which a browser or application is installed. The operator terminal 3 manages "documents" that constitute knowledge data in the response voice, via a user interface, to the information processing device 1. The operator may be an information operations manager of a specific organization, such as a company, organization, or business operator. The operator is responsible for managing the "documents of knowledge data to be used as responses" to the user, and for publishing FAQs based on those documents.
[0074] <Storage in document database 16> As shown in Figure 9, the operator can specify the file path of the local storage to the information processing device 1. The operator can specify a file path to upload multiple documents under that path to the information processing device 1 and store them in the document database 16. Alternatively, the operator can display the index of multiple files under a specific folder on the operator terminal 3 and select some or all of the indexes of those files. For example, multiple files can be uploaded and registered to the information processing device 1 simultaneously using "cut and paste" or "drag and drop".
[0075] Alternatively, the operator may specify the URL of a website on the internet (Uniform Resource Locator) as the location of the document to the information processing device 1. According to Figure 9, the information processing device 1 has a scraping unit. When a URL or file path is specified by the operator, the scraping unit accesses a website on the internet. It then downloads the document from the URL or file path and stores it in the document database 16.
[0076] Furthermore, the operator can specify documents by including the wildcard "*" in the URL or file path. In this case, the scraping unit downloads multiple documents simultaneously and stores them in the document database 16.
[0077] Furthermore, if a URL or file path is specified by the operator, it is also preferable to periodically crawl that URL or file path, download updated documents (site crawling), and update the document database 16.
[0078] <Construction of Knowledge Database 10> According to Figure 9, the information processing device 1 constructs a knowledge database 10 from the document database 16. Here, the information processing device 1 includes a text recognition unit, a chunk division unit, and an embedded vector conversion unit.
[0079] (Text recognition unit) The text recognition unit recognizes text for each document (Character Recognition / Reader). The recognized text is output to the chunking unit. Specifically, character recognition software can be open-source PaddleOCR® or Tesseract OCR®, or cloud-based APIs (Application Programming Interfaces) from Google®, Amazon®, etc. Of course, it can also recognize text from document objects (images, tables, etc.).
[0080] (Chunk division section) The chunking unit divides, for example, text recognized from a document into predetermined chunks. The divided chunks are stored in the knowledge database 10 and also output to the vector conversion unit. The chunking unit may divide the text into chunks of a predetermined unit, for example, every 256 Japanese characters. Here, the number of characters is not limited; for example, if N=2 (the character unit in N-grams), the text may be divided into chunks of 512 tokens. An N-gram is a text analysis algorithm that decodes parts of speech by treating a group of N consecutive words or characters as one token.
[0081] In another embodiment, the chunk division unit may divide the text recognized from each page image into chunks based on layout units, as a predetermined unit. If it is plain text, it may be divided not only by the number of characters but also by paragraphs. If it is HTML or XML, it may be divided not only by the number of characters but also by headers.
[0082] (Embedded vector transformation unit) The embedded vector conversion unit converts each chunk into an embedded vector. As mentioned earlier in Figure 2, embedded vectors are created by converting text-based chunks into high-dimensional vectors that numerically represent meaning and features using the API of a Large-Scale Language Model (LLM). Finally, the transformed embedding vectors are associated with chunks and stored in the knowledge database 10.
[0083] As described in detail above, the information processing device, program, and dialogue method of the present invention make it possible to generate a response sentence as quickly as possible when responding to a user's spoken voice with a response voice based on knowledge data.
[0084] Various changes, modifications, and omissions to the scope of the technical concept and viewpoint of the present invention can be readily made by those skilled in the art with respect to the various embodiments of the present invention described above. The above description is merely illustrative and is not intended to limit the present invention in any way. The present invention is limited only to what is limited by the claims and their equivalents. [Explanation of Symbols]
[0085] 1. Information Processing Device 10 Knowledge Databases 101 Voice Recognition Unit 102 Voice Conversion Unit 11 Question Prediction Section 12 Knowledge Data Retrieval Department 13 chunk memory 14. Chunk memory search unit 15 Answer sentence generation section 16 Document Databases 2 terminals 3 Operator Operation Terminal
Claims
1. In an information processing device that responds to a user's spoken voice with a response voice, As an immediate response, A chunk memory that stores predicted question sentences and chunks in association, A speech recognition means that takes user speech as input and recognizes the user's question, A chunk memory search means that uses chunk memory to search for chunks corresponding to predictive question sentences that are similar to the question sentence by a predetermined threshold or more, A response generation means that uses a language model to generate a response to the user using the question and the retrieved chunk, A voice conversion means for converting the response text into a voice response to the user, It has, As a question prediction, within a background time frame where immediate response is not required, A knowledge database that stores chunks containing the text of knowledge data, A question prediction means that uses a language model to predict the next predicted question from the user's question, A knowledge data retrieval means that searches a knowledge database for the next chunk containing text related to the next predicted question, and stores the next predicted question and the next chunk in chunk memory in association with each other. An information processing device characterized by having the following features.
2. The question prediction means predicts the next question by considering not only the user's question but also the answer to that question. The information processing apparatus according to feature 1.
3. The chunk memory associates embedded vectors based on the predicted question sentences. The chunk memory search method is, A vector transformation means for converting the user's question text into an embedded vector, A vector search means that uses chunk memory to perform an embedded vector search to find embedded vectors of predicted question sentences that are similar to the embedded vector of the question sentence and exceed a predetermined threshold, and outputs chunks corresponding to the embedded vectors of the found predicted question sentences. The information processing apparatus according to claim 1, characterized by having the following features.
4. When the chunk memory search means fails to find a predictive question that is similar to the user's question above a predetermined threshold, it inputs the user's question as the next predictive question to the knowledge data search means, stores the next chunk corresponding to that predictive question in the chunk memory, and then outputs the next chunk. The information processing apparatus according to feature 1.
5. The chunk memory search means instructs the response text generation means to generate a filler response text for the user. The information processing apparatus according to feature 4.
6. The chunk memory search means outputs to the answer sentence generation means any predicted question sentences stored in the chunk memory that have not been searched. The response generation means then generates an inquiry asking the user whether they want the predicted question that has not been searched, following the generated response. The information processing apparatus according to feature 1.
7. The chunks are linked to embedded vectors based on text. The knowledge database stores text and embedded vectors in a coordinated manner for each chunk. Knowledge data retrieval methods are, As Retrieval-Augmented Generation (RAG), A vector transformation means for converting the next predicted question into an embedded vector, An embedding vector search means that uses a knowledge database to perform an embedding vector search to find a first predetermined number of embedding vectors that are similar to the embedding vector of the next predicted question sentence, and outputs chunks that contain such embedding vectors. A keyword search means that uses a knowledge database to perform a keyword search to find a second predetermined number of chunks that are similar to the keywords of the next predicted question sentence, and outputs the searched chunks. A semantic ranking search means that arranges a first predetermined number of chunks based on embedded chunk search and a second predetermined number of chunks based on keyword search in order of semantic relevance to the predicted query sentence, performs a semantic ranking search to find the top-ranking (third predetermined number from the top) chunk, and outputs the found chunk as the next chunk. The information processing apparatus according to claim 1, characterized by having the following features.
8. In a program that operates a computer installed in an information processing device that responds to a user's spoken voice with a voice response, As an immediate response, A chunk memory that stores predicted question sentences and chunks in association, A speech recognition means that takes user speech as input and recognizes the user's question, A chunk memory search means that uses chunk memory to search for chunks corresponding to predictive question sentences that are similar to the question sentence by a predetermined threshold or more, A response generation means that uses a language model to generate a response to the user using the question and the retrieved chunk, A voice conversion means for converting the response text into a voice response to the user, It has, As a question prediction, within a background time frame where immediate response is not required, A knowledge database that stores chunks containing the text of knowledge data, A question prediction means that uses a language model to predict the next predicted question from the user's question, A knowledge data retrieval means that searches a knowledge database for the next chunk containing text related to the next predicted question, and stores the next predicted question and the next chunk in chunk memory in association with each other. A program characterized by its ability to make a computer function.
9. In a dialogue method for a device that responds to a user's spoken voice with a response voice, The device is A knowledge database that stores chunks containing the text of knowledge data, Chunk memory that stores predicted question sentences and chunks in association with each other. It has, As an immediate response, The first step involves inputting the user's spoken audio and recognizing the user's question, A second step involves using chunk memory to search for chunks corresponding to predictive question sentences that are similar to the question sentence by a predetermined threshold or more, A third step involves using a language model to generate a response to the user using the question and the retrieved chunk. The fourth step is to convert the response text into a voice response for the user. It has, As a question prediction, within a background time frame where immediate response is not required, The fifth step involves using a language model to predict the next predicted question from the user's question, A sixth step involves searching the knowledge database for the next chunk containing text related to the next predicted question, and storing the next predicted question and the next chunk in chunk memory in association with each other. A method for interacting with a device, characterized by performing the following actions.
Citation Information
Patent Citations
Interactive expert system
JP1989177132A
Program, method, information processor and system
JP2025060386A
System and method for utterance language understanding
JP2025160881A
Non-transitory computer-readable storage medium, answering device, and method for retrieving document and answering to question sentence
JP2026068676A
