[go: up one dir, main page]

JP2025040085A - Information processing device and program - Google Patents

Information processing device and program Download PDF

Info

Publication number
JP2025040085A
JP2025040085A JP2023146770A JP2023146770A JP2025040085A JP 2025040085 A JP2025040085 A JP 2025040085A JP 2023146770 A JP2023146770 A JP 2023146770A JP 2023146770 A JP2023146770 A JP 2023146770A JP 2025040085 A JP2025040085 A JP 2025040085A
Authority
JP
Japan
Prior art keywords
user
answer
sentence
text
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2023146770A
Other languages
Japanese (ja)
Inventor
隆寛 田中
Takahiro Tanaka
豊 米
Yutaka Yone
早苗 坂本
Sanae Sakamoto
敬子 北野
Keiko Kitano
直之 伊藤
Naoyuki Ito
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2023146770A priority Critical patent/JP2025040085A/en
Publication of JP2025040085A publication Critical patent/JP2025040085A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

【課題】学習データに含まれていない可能性がある内容の入力に対する回答を適切に提供すること。【解決手段】本開示の一態様に係る情報処理装置は、ユーザからのユーザ入力文を取得する入力取得部と、出版社が出版した出版物から前記ユーザ入力文に関連するテキストを取得する関連テキスト取得部と、前記ユーザ入力文に対して、前記テキストと、前記ユーザ入力文に対する前記テキストに基づく回答を求める旨の補助的な文章と、を付加した質問文を生成する補助入力生成部と、前記質問文を学習済みモデルに入力して回答を生成し出力する回答出力部と、を備える。【選択図】図1[Problem] To provide an appropriate answer to an input whose contents may not be included in training data. [Solution] An information processing device according to one aspect of the present disclosure includes an input acquisition unit that acquires a user input sentence from a user, a related text acquisition unit that acquires text related to the user input sentence from a publication published by a publisher, an auxiliary input generation unit that generates a question sentence by adding the user input sentence and auxiliary text requesting an answer to the user input sentence based on the text, and an answer output unit that inputs the question sentence into a trained model to generate and output an answer. [Selected Figure] Figure 1

Description

本開示は、情報処理装置及びプログラムに関する。 This disclosure relates to an information processing device and a program.

近年、ChatGPT等の、生成AI(generative Artificial Intelligence)を用いた対話型AIサービスが利用可能になっている。 In recent years, interactive AI services using generative artificial intelligence (generative AI), such as ChatGPT, have become available.

例えば、特許文献1には、このような生成AIを用いて、ユーザの質問に対して適切な文書を参照しながら回答を提供する技術が開示されている。 For example, Patent Document 1 discloses a technology that uses such generative AI to provide answers to user questions while referencing appropriate documents.

特開2023-76413号公報JP 2023-76413 A

対話型AIサービスは、教育分野において、その活用を期待されている。しかしながら、このような対話型AIサービスにおいて用いられる学習データは、インターネット上に公開されているデータであるため、インターネット上に公開されていない内容の質問には適切な回答がなされないことがあり、間違った内容の回答が生成されることがある。また、生成AIが学習したデータからは正当化できないはずの回答を生成する、幻覚(Hallucination)と呼ばれる現象が発生することが知られている。このような間違った内容の回答や正当化できないはずの回答がユーザに提示されることで、ユーザに効果的な学習を提供できないおそれがある。 Conversational AI services are expected to be utilized in the field of education. However, since the learning data used in such conversational AI services is data publicly available on the Internet, appropriate answers may not be given to questions about content that is not publicly available on the Internet, and incorrect answers may be generated. In addition, a phenomenon called hallucination is known to occur, in which the generation AI generates answers that cannot be justified based on the data it has learned. If such incorrect answers or answers that cannot be justified are presented to the user, there is a risk that the user will not be able to learn effectively.

本開示は、上記に鑑みて、学習データに含まれていない可能性がある内容の入力に対する回答を適切に提供することができる技術を提供することを目的とする。 In view of the above, the present disclosure aims to provide a technology that can provide appropriate answers to input content that may not be included in the learning data.

本開示の一態様に係る情報処理装置は、ユーザからのユーザ入力文を取得する入力取得部と、出版社が出版した出版物から前記ユーザ入力文に関連するテキストを取得する関連テキスト取得部と、前記ユーザ入力文に対して、前記テキストと、前記ユーザ入力文に対する前記テキストに基づく回答を求める旨の補助的な文章と、を付加した質問文を生成する補助入力生成部と、前記質問文を学習済みモデルに入力して回答を生成し出力する回答出力部と、を備える。 An information processing device according to one aspect of the present disclosure includes an input acquisition unit that acquires a user input sentence from a user, a related text acquisition unit that acquires text related to the user input sentence from a publication published by a publisher, an auxiliary input generation unit that generates a question sentence by adding the text and auxiliary text requesting an answer to the user input sentence based on the text to the user input sentence, and an answer output unit that inputs the question sentence into a trained model to generate and output an answer.

本開示の一態様によれば、出版物に記載されているユーザ入力文に関連するテキストが取得され、当該テキストに基づく回答が生成・出力され得るので、学習データに含まれていない可能性がある内容の入力に対する回答を適切に提供することができる。 According to one aspect of the present disclosure, text related to a user input sentence that is found in a publication can be obtained, and an answer based on that text can be generated and output, making it possible to provide an appropriate answer to an input whose content may not be included in the training data.

本開示の一実施形態に係る教育支援システムの概略構成例を示すブロック図FIG. 1 is a block diagram showing a schematic configuration example of an education support system according to an embodiment of the present disclosure. 本開示の一実施形態に係るユーザデバイスのハードウェア構成例を示すブロック図FIG. 1 is a block diagram illustrating an example of a hardware configuration of a user device according to an embodiment of the present disclosure. 本開示の一実施形態に係るユーザデバイスの機能構成例を示すブロック図FIG. 1 is a block diagram illustrating an example of a functional configuration of a user device according to an embodiment of the present disclosure. 本開示の一実施形態に係るユーザ情報管理装置のハードウェア構成例を示すブロック図FIG. 1 is a block diagram illustrating an example of a hardware configuration of a user information management device according to an embodiment of the present disclosure. 本開示の一実施形態に係るユーザ情報管理装置の機能構成例を示すブロック図FIG. 1 is a block diagram illustrating an example of a functional configuration of a user information management device according to an embodiment of the present disclosure. 本開示の一実施形態に係る、ユーザ情報管理装置のユーザ情報記憶部に記憶されるユーザ情報の例を示す図FIG. 1 is a diagram illustrating an example of user information stored in a user information storage unit of a user information management device according to an embodiment of the present disclosure. 本開示の一実施形態に係る回答生成装置のハードウェア構成例を示すブロック図FIG. 1 is a block diagram illustrating an example of a hardware configuration of an answer generation device according to an embodiment of the present disclosure. 本開示の一実施形態に係る回答生成装置の機能構成例を示すブロック図FIG. 1 is a block diagram illustrating an example of a functional configuration of an answer generation device according to an embodiment of the present disclosure. 本開示の一実施形態に係る、教育支援システムの動作例を示すシーケンス図FIG. 1 is a sequence diagram illustrating an example of an operation of an education support system according to an embodiment of the present disclosure. 本開示の一実施形態に係る、ユーザデバイスの動作例を示すフローチャート1 is a flowchart illustrating an example of the operation of a user device according to an embodiment of the present disclosure. 本開示の一実施形態に係る、ユーザデバイスの動作例を示すフローチャート1 is a flowchart illustrating an example of the operation of a user device according to an embodiment of the present disclosure. 本開示の一実施形態に係る、ユーザ情報管理装置の動作例を示すフローチャートA flowchart showing an example of the operation of a user information management device according to an embodiment of the present disclosure. 本開示の一実施形態に係る、回答生成装置の動作例を示すフローチャート1 is a flowchart illustrating an example of an operation of an answer generating device according to an embodiment of the present disclosure. 本開示の一実施形態に係る、ユーザデバイスに表示される入力及び回答を含む表示画面例を示す図FIG. 1 illustrates an example display screen including inputs and answers displayed on a user device according to an embodiment of the present disclosure.

以下、本開示の実施形態について、図面を参照して説明する。ただし、発明の範囲は図示した例に限定されない。なお、以下の説明において、同一の機能及び構成を有するものについては、同一の符号を付し、その説明を省略する。 Embodiments of the present disclosure will be described below with reference to the drawings. However, the scope of the invention is not limited to the examples shown in the drawings. In the following description, parts having the same functions and configurations are given the same reference numerals and their description will be omitted.

(実施形態)
<概要>
本開示に係る一実施形態によれば、情報処理装置(例えば、後述するユーザデバイス10)は、入力取得部と、関連テキスト取得部と、補助入力生成部と、回答出力部と、を備える。入力取得部は、ユーザからのユーザ入力文を取得する。関連テキスト取得部は、出版社が出版した出版物からユーザ入力文に関連するテキストを取得する。補助入力生成部は、取得されたユーザ入力文に対して、取得されたテキストと、取得されたユーザ入力文に対する取得されたテキストに基づく回答を求める旨の補助的な文章と、を付加した質問文を生成する。回答出力部は、生成された質問文を学習済みモデル(例えば、大規模言語モデル)に入力して回答を生成し出力する。
(Embodiment)
<Overview>
According to an embodiment of the present disclosure, an information processing device (e.g., a user device 10 described later) includes an input acquisition unit, a related text acquisition unit, an auxiliary input generation unit, and an answer output unit. The input acquisition unit acquires a user input sentence from a user. The related text acquisition unit acquires text related to the user input sentence from a publication published by a publisher. The auxiliary input generation unit generates a question sentence by adding the acquired text and an auxiliary sentence requesting an answer to the acquired user input sentence based on the acquired text to the acquired user input sentence. The answer output unit inputs the generated question sentence to a trained model (e.g., a large-scale language model) to generate and output an answer.

このように、情報処理装置は、ユーザからのユーザ入力文に対して、インターネット上の情報よりも信頼性が高いと考えられる出版物に記載されている関連するテキストに基づく回答を求める旨の質問文を生成し、当該質問文を学習済みモデルに入力して回答を出力する。これにより、学習データに含まれていない可能性がある内容の入力に対する回答を適切に提供することができる。 In this way, the information processing device generates a question that requests an answer based on related text from a publication that is considered to be more reliable than information on the Internet in response to a user input sentence from a user, inputs the question into a trained model, and outputs an answer. This makes it possible to provide an appropriate answer to an input whose content may not be included in the training data.

<教育支援システムの構成>
図1は、本開示の一実施形態に係る教育支援(ティーチングアシスト)システムの概略構成例を示すブロック図である。
<Educational support system configuration>
FIG. 1 is a block diagram illustrating a schematic configuration example of a teaching assistance system according to an embodiment of the present disclosure.

図1に示すように、教育支援システム1は、ユーザデバイス10と、ユーザ情報管理装置20と、回答生成装置30と、出版社データベース(DB:database)装置40と、ウェブ装置50と、を有する。ユーザデバイス10とユーザ情報管理装置20とは、ネットワーク60を介して互いに通信可能に接続され、ユーザデバイス10と回答生成装置30とは、ネットワーク60を介して互いに通信可能に接続され、回答生成装置30と出版社DB装置40及びウェブ装置50とは、ネットワーク60を介して互いに通信可能に接続される。ネットワーク60は、LAN(Local Area Network)、インターネット、VPN(Virtual Private Network)、移動通信網等又はこれらの組み合わせであってよい。 As shown in FIG. 1, the education support system 1 includes a user device 10, a user information management device 20, an answer generation device 30, a publisher database (DB) device 40, and a web device 50. The user device 10 and the user information management device 20 are communicatively connected to each other via a network 60, the user device 10 and the answer generation device 30 are communicatively connected to each other via the network 60, and the answer generation device 30, the publisher DB device 40, and the web device 50 are communicatively connected to each other via the network 60. The network 60 may be a LAN (Local Area Network), the Internet, a VPN (Virtual Private Network), a mobile communication network, or a combination of these.

教育支援システム1は、ユーザデバイス10のユーザ(学習者)からの入力に対する回答を、ユーザに提示する。 The educational support system 1 presents the user (learner) with a response to an input from the user of the user device 10.

ユーザデバイス10は、例えば、ユーザデバイス10にインストールされた専用アプリケーション又はウェブブラウザを介して、ユーザ情報管理装置20、回答生成装置30、出版社DB装置40及びウェブ装置50に接続可能な構成を有する。例えば、以下のユーザデバイス10の処理は、専用アプリケーション又はウェブブラウザを介して行われてもよい。 The user device 10 has a configuration that allows it to connect to the user information management device 20, the answer generation device 30, the publisher DB device 40, and the web device 50, for example, via a dedicated application or a web browser installed on the user device 10. For example, the following processing of the user device 10 may be performed via a dedicated application or a web browser.

ユーザデバイス10のユーザは、教育支援システム1において提供される教育支援サービス(又は質問回答サービス)を利用するために、ユーザID及びパスワード(以下、ログイン情報とも呼ぶ)を含むユーザ情報をユーザ情報管理装置20に事前に登録する。 In order to use the educational support service (or question and answer service) provided by the educational support system 1, the user of the user device 10 pre-registers user information including a user ID and password (hereinafter also referred to as login information) in the user information management device 20.

ユーザデバイス10は、ネットワーク60を介して、ユーザ情報管理装置20に、ユーザデバイス10のユーザによって入力されたユーザのログイン情報を送信する。ユーザ情報管理装置20によるログイン情報を用いた認証処理において認証に成功した場合、ユーザデバイス10(のユーザ)は、教育支援サービスを利用することができる。 The user device 10 transmits the user's login information input by the user of the user device 10 to the user information management device 20 via the network 60. If authentication is successful in the authentication process using the login information by the user information management device 20, the user of the user device 10 can use the educational support service.

認証に成功した後、ユーザデバイス10は、ユーザ情報管理装置20から、ネットワーク60を介して、ユーザに関するユーザ情報を受信する。その後、ユーザデバイス10は、ユーザデバイス10のユーザから、音声、文字等により、質問等の入力を受け付ける。そして、ユーザデバイス10は、ユーザの指示(例えば、所定のボタンの押下)に応じて、受け付けた入力に基づいて、検索クエリを生成し、ネットワーク60を介して、生成した検索クエリを用いて、出版社DB装置40及び/又はウェブ装置50に問い合わせる。 After successful authentication, the user device 10 receives user information about the user from the user information management device 20 via the network 60. The user device 10 then accepts input of questions, etc., by voice, text, etc., from the user of the user device 10. The user device 10 then generates a search query based on the accepted input in response to the user's instructions (e.g., pressing a specific button), and queries the publisher DB device 40 and/or the web device 50 via the network 60 using the generated search query.

本実施形態において、ユーザデバイス10は、はじめに、検索クエリを用いて、出版社DB装置40に問い合わせる。肯定的な検索結果が得られた(別言すれば、検索クエリにより関連する情報(又はテキスト又は内容)が出版社DB装置40に記憶されている教材において発見された)場合、ユーザデバイス10は、検索結果として、出版社DB装置40に記憶されている教材から、検索クエリ(したがって、ユーザによる入力)に関連する情報を取得する。一方、肯定的な検索結果が得られなかった(別言すれば、否定的な検索結果が得られた、又は、検索クエリにより関連する情報が出版社DB装置40に記憶されている教材において発見されなかった)場合には、次いで、回答生成装置30は、例えば、API(Application Programming Interface)を介して、検索クエリを用いて、ウェブ装置50に問い合わせる。回答生成装置30は、ウェブ装置50による検索の結果に基づいて、ユーザの入力に対する回答を生成する。なお、上記の処理は、ユーザが出版社DB装置40に記憶されている教材へのアクセス権限を有している場合に実行される処理であり、ユーザが出版社DB装置40に記憶されている教材へのアクセス権限を有していない場合には、出版社DB装置40への問い合わせが行われることなく、ウェブ装置50への問い合わせが行われる。 In this embodiment, the user device 10 first queries the publisher DB device 40 using a search query. If a positive search result is obtained (in other words, information (or text or content) related to the search query is found in the teaching materials stored in the publisher DB device 40), the user device 10 obtains information related to the search query (and therefore the user's input) from the teaching materials stored in the publisher DB device 40 as a search result. On the other hand, if a positive search result is not obtained (in other words, a negative search result is obtained or information related to the search query is not found in the teaching materials stored in the publisher DB device 40), then the answer generating device 30 queries the web device 50 using the search query, for example, via an API (Application Programming Interface). The answer generating device 30 generates an answer to the user's input based on the search result by the web device 50. Note that the above process is executed when the user has the authority to access the learning materials stored in the publisher DB device 40. If the user does not have the authority to access the learning materials stored in the publisher DB device 40, an inquiry is made to the web device 50 without making an inquiry to the publisher DB device 40.

ユーザデバイス10は、検索クエリに対する検索結果に基づいて、受け付けた入力に、検索クエリに関連するテキスト等を付加した最終入力を生成することもあるし(肯定的な検索結果が得られた場合)、受け付けた入力を最終入力として用いることもある(肯定的な検索結果が得られなかった場合)。そして、ユーザデバイス10は、ネットワーク60を介して、回答生成装置30に、最終入力を送信する。なお、本実施形態において、回答生成装置30を提供する事業者は、例えば契約により、出版社DB装置40に記憶されている教科書等の電子教材(出版物の例であり、単に教材とも呼ぶ)へのアクセス(読み取り)を許可されているものとする。 Based on the search results for the search query, the user device 10 may generate a final input by adding text related to the search query to the received input (if a positive search result is obtained), or may use the received input as the final input (if no positive search result is obtained). The user device 10 then transmits the final input to the answer generation device 30 via the network 60. Note that in this embodiment, it is assumed that the business entity providing the answer generation device 30 is permitted, for example by contract, to access (read) electronic learning materials such as textbooks (an example of a publication, also simply referred to as learning materials) stored in the publisher DB device 40.

ユーザデバイス10は、回答生成装置30から、ネットワーク60を介して、送信した最終入力に対する回答を受信することで、回答を取得する。そして、ユーザデバイス10は、最終入力に対する回答を出力する(例えば、ユーザデバイス10が備える表示装置(表示部)に、入力に対する回答を表示させる)。 The user device 10 obtains the answer by receiving the answer to the final input transmitted from the answer generating device 30 via the network 60. The user device 10 then outputs the answer to the final input (for example, displays the answer to the input on a display device (display unit) provided in the user device 10).

なお、図1には、1つのユーザデバイス10が示されているが、複数のユーザデバイス10が存在してもよい。ユーザデバイス10は、情報端末、ユーザ端末、端末、クライアント、クライアントデバイス等と呼ばれてもよい。 Note that although FIG. 1 shows one user device 10, multiple user devices 10 may exist. The user device 10 may also be called an information terminal, a user terminal, a terminal, a client, a client device, etc.

ユーザ情報管理装置20は、例えば、クラウド環境に設置されている。 The user information management device 20 is installed, for example, in a cloud environment.

ユーザ情報管理装置20は、ユーザデバイス10から、ネットワーク60を介して、ユーザデバイス10のユーザのログイン情報を受信する。ユーザ情報管理装置20は、受信したログイン情報を用いて認証処理を実行する。 The user information management device 20 receives login information of the user of the user device 10 from the user device 10 via the network 60. The user information management device 20 executes authentication processing using the received login information.

認証に成功した後(受信したログイン情報と登録済みのログイン情報とが一致した場合)、ユーザ情報管理装置20は、ネットワーク60を介して、ユーザデバイス10に、登録済みのユーザ情報を送信する。ユーザ情報については後述する。 After the authentication is successful (if the received login information matches the registered login information), the user information management device 20 transmits the registered user information to the user device 10 via the network 60. The user information will be described later.

回答生成装置30は、例えば、クラウド環境に設置されている。 The answer generating device 30 is installed, for example, in a cloud environment.

回答生成装置30は、ユーザからの入力に対する回答を生成する。回答生成装置30は、ユーザデバイス10から、ネットワーク60を介して、最終入力を受信する。回答生成装置30は、学習済みの大規模言語モデル(LLM:Large Language Model)を用いて、受信した最終入力に対する回答を生成する。回答生成装置30は、ネットワーク60を介して、ユーザ情報管理装置20に、生成した回答を送信する。 The answer generating device 30 generates an answer to an input from a user. The answer generating device 30 receives a final input from the user device 10 via the network 60. The answer generating device 30 generates an answer to the received final input using a trained large language model (LLM: Large Language Model). The answer generating device 30 transmits the generated answer to the user information management device 20 via the network 60.

なお、回答生成装置30は、OpenAIによって提供されるChatGPTやGoogle(登録商標)によって提供されるBard等の既存の対話型AIサービスを提供する装置であってもよい。この場合、ユーザデバイス10は、このような対話型AIサービスを利用するためのAPIを用いて、回答生成装置30に最終入力を送信し、回答生成装置30から最終入力に対する回答を受信することができる。あるいは、回答生成装置30は、ウェブ上に公開されているテキストデータ等の学習データを用いて上述のようなLLMを学習させることにより、対話型AIサービスを提供してもよい。 The answer generating device 30 may be a device that provides an existing conversational AI service, such as ChatGPT provided by OpenAI or Bard provided by Google (registered trademark). In this case, the user device 10 can use an API for using such a conversational AI service to transmit a final input to the answer generating device 30 and receive an answer to the final input from the answer generating device 30. Alternatively, the answer generating device 30 may provide a conversational AI service by training an LLM as described above using training data such as text data published on the web.

出版社DB装置40は、出版社によって運営され、出版社によって出版された電子教材を記憶している。出版社DB装置40は、出版社単位で存在してもよいし、複数の出版社の教材が取りまとめられた形で教材を提供するものとして存在してもよい。 The publisher DB device 40 is operated by a publisher and stores electronic learning materials published by the publisher. The publisher DB device 40 may exist on a publisher basis, or may exist as a device that provides learning materials in a format that compiles learning materials from multiple publishers.

ウェブ装置50は、例えば、Google(登録商標)等によって提供される検索サービスを提供する装置である。 The web device 50 is, for example, a device that provides a search service provided by Google (registered trademark) or the like.

<ユーザデバイスの構成>
図2は、本開示の一実施形態に係るユーザデバイスのハードウェア構成例を示すブロック図である。ユーザデバイス10は、タブレット、スマートフォン、ノートPC(Personal Computer)等のいずれかの計算機(コンピュータ)又は情報処理装置によって実現されてもよい。
<User device configuration>
2 is a block diagram illustrating an example of a hardware configuration of a user device according to an embodiment of the present disclosure. The user device 10 may be realized by any computer or information processing device such as a tablet, a smartphone, or a notebook PC (Personal Computer).

例えば、図2に示すように、ユーザデバイス10は、記憶装置11と、処理装置12と、ユーザインタフェース(UI:User Interface)装置13と、通信装置14と、バス15と、を備えてもよい。記憶装置11、処理装置12、UI装置13及び通信装置14は、バス15を介して相互に接続されてもよい。 For example, as shown in FIG. 2, the user device 10 may include a storage device 11, a processing device 12, a user interface (UI) device 13, a communication device 14, and a bus 15. The storage device 11, the processing device 12, the UI device 13, and the communication device 14 may be connected to each other via the bus 15.

ユーザデバイス10の前述した、また後述する機能及び処理を実現するプログラム又は指示は、ネットワーク等を介して何らかの外部装置(例えば、サーバ)からダウンロードされてもよい。また、このようなプログラム又は指示は、CD-ROM(Compact Disc Read Only Memory)、フラッシュメモリ等の着脱可能な記憶媒体から提供されてもよい。 The programs or instructions that realize the functions and processes of the user device 10 described above and below may be downloaded from some external device (e.g., a server) via a network or the like. Such programs or instructions may also be provided from a removable storage medium such as a CD-ROM (Compact Disc Read Only Memory) or a flash memory.

記憶装置11は、RAM(Random Access Memory)、フラッシュメモリ、ハードディスクドライブ等によって実現され、インストールされたプログラム又は指示とともに、プログラム又は指示の実行に用いられるファイル、データ等を記憶する。記憶装置11は、非一時的な記憶媒体(non-transitory storage medium)を含んでもよい。 The storage device 11 is realized by a RAM (Random Access Memory), a flash memory, a hard disk drive, etc., and stores installed programs or instructions as well as files, data, etc. used to execute the programs or instructions. The storage device 11 may also include a non-transitory storage medium.

処理装置12は、例えば、汎用のプロセッサ又はコントローラ(回路)によって実現されてもよいし、専用のプロセッサ又はコントローラ(回路)によって実現されてもよい。汎用のプロセッサによって実現される場合、処理装置12は、1つ以上のプロセッサコアから構成され得る1つ以上のCPU(Central Processing Unit)、GPU(Graphics Processing Unit)、処理回路(processing circuitry)等によって実現されてもよい。この場合、処理装置12は、記憶装置11に記憶されたプログラム又は指示、当該プログラム又は指示を実行するのに使用されるパラメータ等のデータ等に従って、前述した、また後述するユーザデバイス10の機能及び処理を実行する。このようなプログラムは、コンピュータ又は処理装置12によって実行されたときに、当該コンピュータ又は処理装置12を、本開示に係るユーザデバイス10として機能させるためのプログラムであってよい。また、このようなプログラムは、コンピュータ又は処理装置12によって実行されたときに、当該コンピュータ又は処理装置12に、本開示に係る教育支援(質問回答)に関する方法を実行させるためのプログラムであってもよい。 The processing device 12 may be realized, for example, by a general-purpose processor or controller (circuit), or may be realized by a dedicated processor or controller (circuit). When realized by a general-purpose processor, the processing device 12 may be realized by one or more CPUs (Central Processing Units), GPUs (Graphics Processing Units), processing circuitry, etc., which may be composed of one or more processor cores. In this case, the processing device 12 executes the functions and processing of the user device 10 described above and below according to the programs or instructions stored in the storage device 11, data such as parameters used to execute the programs or instructions, etc. Such a program, when executed by the computer or processing device 12, may be a program that causes the computer or processing device 12 to function as the user device 10 according to the present disclosure. In addition, such a program, when executed by the computer or processing device 12, may be a program that causes the computer or processing device 12 to execute the method related to educational support (question answering) according to the present disclosure.

UI装置13は、キーボード、マウス、カメラ、マイクロフォン等の入力装置、ディスプレイ、スピーカ、ヘッドセット、プリンタ等の出力装置、ハプティックデバイス、タッチパネル等の入出力装置から構成されてもよく、ユーザとユーザデバイス10との間のインタフェースを実現する。例えば、ユーザは、ディスプレイ又はタッチパネルに表示されたグラフィカルユーザインタフェース(GUI:Graphical User Interface)を、キーボード、マウス等を用いて操作することで、ユーザデバイス10を操作する。 The UI device 13 may be composed of input devices such as a keyboard, mouse, camera, microphone, etc., output devices such as a display, speaker, headset, printer, etc., and input/output devices such as a haptic device, touch panel, etc., and realizes an interface between the user and the user device 10. For example, the user operates the user device 10 by operating a graphical user interface (GUI) displayed on a display or touch panel using a keyboard, mouse, etc.

通信装置14は、外部装置、インターネット、LAN、VPN等の通信ネットワークとの通信処理を実行する各種通信回路によって実現されてもよい。 The communication device 14 may be realized by various communication circuits that perform communication processing with external devices, the Internet, LAN, VPN, and other communication networks.

上述したユーザデバイス10のハードウェア構成は一例に過ぎず、本開示に係るユーザデバイス10は、他の適切なハードウェア構成によって実現されてもよい。 The above-described hardware configuration of the user device 10 is merely an example, and the user device 10 according to the present disclosure may be realized by any other suitable hardware configuration.

図3は、本開示の一実施形態に係るユーザデバイスの機能構成例を示すブロック図である。 Figure 3 is a block diagram showing an example of the functional configuration of a user device according to one embodiment of the present disclosure.

例えば、図3に示すように、ユーザデバイス10は、入力受付部101と、ユーザ情報取得部102と、関連テキスト取得部103と、最終入力出力部104と、回答取得部105と、表示制御部106と、を備える。入力受付部101、ユーザ情報取得部102、関連テキスト取得部103、最終入力出力部104、回答取得部105及び表示制御部106は、処理装置12によって、ハードウェアとして実現されてもよいし、ソフトウェア(例えば、専用アプリケーション)として実現されてもよいし、ハードウェアとソフトウェアとの組み合わせとして実現されてもよい。 3, the user device 10 includes an input receiving unit 101, a user information acquiring unit 102, a related text acquiring unit 103, a final input/output unit 104, an answer acquiring unit 105, and a display control unit 106. The input receiving unit 101, the user information acquiring unit 102, the related text acquiring unit 103, the final input/output unit 104, the answer acquiring unit 105, and the display control unit 106 may be realized by the processing device 12 as hardware, as software (e.g., a dedicated application), or as a combination of hardware and software.

入力受付部101は、ユーザデバイス10のユーザによる入力(例えば、ユーザ情報、ログイン情報、質問等)を受け付ける。入力がユーザ情報又はログイン情報である場合、入力受付部101は、通信装置14を介して、受け付けた入力をユーザ情報管理装置20に送信する。入力がユーザ情報でもログイン情報でもない場合(例えば、入力が質問である場合)、入力受付部101は、受け付けた入力を関連テキスト取得部103に出力する。入力受付部は、入力取得部と称されてもよい。 The input acceptance unit 101 accepts input (e.g., user information, login information, questions, etc.) from a user of the user device 10. If the input is user information or login information, the input acceptance unit 101 transmits the accepted input to the user information management device 20 via the communication device 14. If the input is neither user information nor login information (e.g., if the input is a question), the input acceptance unit 101 outputs the accepted input to the related text acquisition unit 103. The input acceptance unit may be referred to as an input acquisition unit.

ユーザ情報取得部102は、ユーザ情報管理装置20から、通信装置14を介して、ユーザに関するユーザ情報を受信することで、ユーザ情報を取得する。ユーザ情報取得部102は、取得したユーザ情報の少なくとも一部(例えば、図6に示す「年齢」、「権限」等)を関連テキスト取得部103及び最終入力出力部104に出力する。 The user information acquisition unit 102 acquires user information by receiving user information related to the user from the user information management device 20 via the communication device 14. The user information acquisition unit 102 outputs at least a portion of the acquired user information (e.g., "age" and "authority" shown in FIG. 6) to the related text acquisition unit 103 and the final input/output unit 104.

関連テキスト取得部103は、ユーザの指示(例えば、所定のボタン(例えば、図14に示すボタン1402)の押下)に応じて、入力受付部101によって出力された入力に基づいて、1つ以上の検索クエリを生成する。1つの検索クエリを生成する場合、関連テキスト取得部103は、検索クエリとして、入力受付部101によって出力された入力をそのまま用いてもよい。複数の検索クエリを生成する場合、関連テキスト取得部103は、入力受付部101によって出力された入力から、表記ゆれや関連語を考慮して、複数の検索クエリを生成してもよい。例えば、関連テキスト取得部103は、入力に類似する文章を生成するように、回答生成装置30に指示し、回答生成装置30から得られた文章(回答)を、検索クエリとして生成してもよいし、BERT(Bidirectional Encoder Representations from Transformers)等を用いて、入力を構成する各単語の類義語を特定し、単語を類義語で置き換えた文章を、検索クエリとして生成してもよい。 The related text acquisition unit 103 generates one or more search queries based on the input output by the input reception unit 101 in response to a user instruction (for example, pressing a predetermined button (for example, button 1402 shown in FIG. 14)). When generating one search query, the related text acquisition unit 103 may use the input output by the input reception unit 101 as the search query as is. When generating multiple search queries, the related text acquisition unit 103 may generate multiple search queries from the input output by the input reception unit 101, taking into account spelling variations and related words. For example, the related text acquisition unit 103 may instruct the answer generation device 30 to generate a sentence similar to the input, and generate the sentence (answer) obtained from the answer generation device 30 as the search query, or may use BERT (Bidirectional Encoder Representations from Transformers) or the like to identify synonyms for each word constituting the input, and generate a sentence in which the word is replaced with the synonym as the search query.

例えば、ユーザによる入力(質問)が「なぜ豊臣秀吉は明智光秀に勝利したの?」である場合、関連テキスト取得部103は、上述の方法により、「なぜ豊臣秀吉は明智光秀に勝利したの?」だけでなく、「なぜ豊臣秀吉は明智光秀に勝利したの?」、「なぜ羽柴秀吉は明智光秀に勝利したの?」、「なぜ羽柴秀吉は明智左馬助に勝利したの?」等といった複数の検索クエリを生成することができる。 For example, if the user's input (question) is "Why did Toyotomi Hideyoshi defeat Akechi Mitsuhide?", the related text acquisition unit 103 can use the above-mentioned method to generate multiple search queries, such as not only "Why did Toyotomi Hideyoshi defeat Akechi Mitsuhide?" but also "Why did Toyotomi Hideyoshi defeat Akechi Mitsuhide?", "Why did Hashiba Hideyoshi defeat Akechi Mitsuhide?", "Why did Hashiba Hideyoshi defeat Akechi Samanosuke?", etc.

関連テキスト取得部103は、通信装置14を介して、生成した検索クエリを用いて、出版社DB装置40及び/又はウェブ装置50に問い合わせる。 The related text acquisition unit 103 queries the publisher DB device 40 and/or the web device 50 via the communication device 14 using the generated search query.

この際、関連テキスト取得部103は、ユーザ情報取得部102によって出力されたユーザ情報に基づいて、図6に示す「権限」が「有」の場合には、まず、検索クエリを用いて、適切な回答が取得できる可能性(信頼性)が高い出版社DB装置40に問い合わせる。 At this time, based on the user information output by the user information acquisition unit 102, if the "authority" shown in FIG. 6 is "yes", the related text acquisition unit 103 first uses a search query to make an inquiry to the publisher DB device 40 that is likely (reliable) to obtain an appropriate answer.

例えば、関連テキスト取得部103は、BERT等を用いて、検索クエリ及び検索対象の教材内の文章(テキスト)の特徴量を算出し、これらの特徴量の差分が所定の値よりも小さい場合に、検索クエリ(入力)に関連するテキストが教材に存在する(すなわち、当該テキストが検索クエリに関連する)と推定してもよい。あるいは、別の例として、関連テキスト取得部103は、検索クエリと検索対象の教材内の文章(テキスト)との特徴量を算出し、当該特徴量が所定の値よりも大きい又は小さい場合に、検索クエリに関連するテキストが教材に存在する(すなわち、当該テキストが検索クエリに関連する)と推定してもよい。例えば、関連テキスト取得部103は、tf-idf(term frequency - inverse document frequency)を用いて、検索クエリ及び教材内の文章中の単語群を数値群による特徴ベクトルに置き換え、特徴ベクトルの類似度(例えば、コサイン類似度)を算出し、コサイン類似度が所定の値(例えば、0.8等)よりも大きい場合に、検索クエリに関連するとして、当該文章(テキスト)を取得してもよい。あるいは、別の例として、関連テキスト取得部103は、GPT Index、LangChain、sentence-transformers model等を利用して、検索クエリに関連する教材内のテキストを取得してもよい。 For example, the related text acquisition unit 103 may use BERT or the like to calculate the feature amounts of the search query and the sentences (texts) in the teaching materials to be searched, and when the difference between these feature amounts is smaller than a predetermined value, it may be estimated that text related to the search query (input) exists in the teaching materials (i.e., the text is related to the search query). Alternatively, as another example, the related text acquisition unit 103 may calculate the feature amounts of the search query and the sentences (texts) in the teaching materials to be searched, and when the feature amounts are larger or smaller than a predetermined value, it may be estimated that text related to the search query exists in the teaching materials (i.e., the text is related to the search query). For example, the related text acquisition unit 103 may use tf-idf (term frequency - inverse document frequency) to replace the word groups in the search query and the sentences in the teaching materials with feature vectors based on numerical values, calculate the similarity (e.g., cosine similarity) of the feature vectors, and when the cosine similarity is larger than a predetermined value (e.g., 0.8, etc.), acquire the sentences (texts) as related to the search query. Alternatively, as another example, the related text acquisition unit 103 may acquire text within the learning material that is related to the search query by using a GPT Index, LangChain, sentence-transformers model, or the like.

なお、出版社DB装置40において、教材が、年齢別(11歳用、13歳用等)又は学年別(小学5年生用、中学1年生用等)に分けられている場合、関連テキスト取得部103は、ユーザ情報取得部102によって出力されたユーザ情報(例えば、図6に示す「年齢」)に基づいて、年齢別又は学年別に分けられている教材(又は教材DB)を選択してもよい。例えば、関連テキスト取得部103は、対象年齢又は対象学年用の教材を選択してもよいし、対象年齢又は対象学年用の教材と、対象年齢又は対象学年よりも下の年齢又は学年用の教材と、を選択してもよい。より具体的に、ユーザ情報(対象学年)が「中学3年生」である場合、関連テキスト取得部103は、中学3年生用の教材を選択してもよい、小学1年生~中学3年生用の教材を選択してもよい。 In addition, in the publisher DB device 40, when the teaching materials are divided by age (for 11-year-olds, for 13-year-olds, etc.) or by grade (for 5th grade elementary school students, for 1st grade junior high school students, etc.), the related text acquisition unit 103 may select teaching materials (or teaching material DB) divided by age or grade based on the user information (for example, "age" shown in FIG. 6) output by the user information acquisition unit 102. For example, the related text acquisition unit 103 may select teaching materials for the target age or grade, or may select teaching materials for the target age or grade and teaching materials for ages or grades below the target age or grade. More specifically, when the user information (target grade) is "3rd grade junior high school students," the related text acquisition unit 103 may select teaching materials for 3rd grade junior high school students, or may select teaching materials for 1st grade elementary school students to 3rd grade junior high school students.

検索クエリに関連するテキストが出版社DB装置40に記憶されている教材に存在すると推定した場合には、関連テキスト取得部103は、当該テキストを、検索クエリに対する検索結果として取得する。このようにして、関連テキスト取得部103は、教材から、入力に関連するテキストを取得する。関連テキスト取得部103は、入力受付部101によって出力された入力とともに、取得した検索結果を、最終入力出力部104に出力する。 If it is estimated that text related to the search query exists in the teaching materials stored in the publisher DB device 40, the related text acquisition unit 103 acquires the text as a search result for the search query. In this way, the related text acquisition unit 103 acquires text related to the input from the teaching materials. The related text acquisition unit 103 outputs the acquired search results together with the input output by the input receiving unit 101 to the final input output unit 104.

検索クエリに関連するテキストが出版社DB装置40に記憶されている教材に存在しないと推定した場合には、あるいは、ユーザ情報取得部102によって出力されたユーザ情報に基づいて、図6に示す「権限」が「無」の場合には、関連テキスト取得部103は、検索クエリを用いて、ウェブ装置50に問い合わせる。そして、関連テキスト取得部103は、ウェブ装置50による検索の結果としてランキングされた上位K個(例えば、K=1)のウェブページにアクセスし、検索結果として、出版社DB装置40に関して上述したように、検索クエリに関連するテキストを抽出及び取得する。このようにして、関連テキスト取得部103は、インターネットから、入力に関連するテキストを取得する。関連テキスト取得部103は、入力受付部101によって出力された入力とともに、取得した検索結果を、最終入力出力部104に出力する。 If it is estimated that the text related to the search query does not exist in the teaching materials stored in the publisher DB device 40, or if the "authority" shown in FIG. 6 is "no" based on the user information output by the user information acquisition unit 102, the related text acquisition unit 103 queries the web device 50 using the search query. Then, the related text acquisition unit 103 accesses the top K (e.g., K=1) web pages ranked as the results of the search by the web device 50, and extracts and acquires text related to the search query as the search result, as described above with respect to the publisher DB device 40. In this way, the related text acquisition unit 103 acquires text related to the input from the Internet. The related text acquisition unit 103 outputs the acquired search result together with the input output by the input acceptance unit 101 to the final input output unit 104.

なお、出版社DB装置40及びウェブ装置50への問い合わせの結果、検索クエリに対する肯定的な検索結果が得られない場合には、回答処理部302は、入力受付部101によって出力された入力だけを最終入力出力部104に出力する。 If the query to the publisher DB device 40 and the web device 50 does not yield a positive search result for the search query, the response processing unit 302 outputs only the input output by the input receiving unit 101 to the final input output unit 104.

検索クエリに対する肯定的な検索結果が得られた場合、最終入力出力部104は、関連テキスト取得部103によって出力された入力に、関連テキスト取得部103によって出力された肯定的な検索結果と、入力に当該入力に対する、関連テキスト取得部103によって出力された検索結果を用いた回答(当該入力に対する検索結果に基づく回答)を求める旨の補助的な文章と、を付加した最終入力(質問文)を生成する。一方、検索クエリに対する肯定的な検索結果が得られない場合、最終入力出力部104は、最終入力として、関連テキスト取得部103によって出力された入力を用いることを決定する。最終入力出力部104は、通信装置14を介して、回答生成装置30に、最終入力を送信する。最終入力出力部104は、教材毎に1つの回答を生成するように回答生成装置30に指示してもよいし(この場合、教材毎に関連するテキストが回答生成装置30に送信され、1つの入力に対して複数の回答が生成され得る)、1つの入力に対して1つの回答を生成するように回答生成装置30に指示してもよい(この場合、教材毎の関連するテキストがまとめられて回答生成装置30に送信される)。以下において、「送信」は、「出力」で適宜読み替えられてもよい。最終入力出力部104は、入力送信部と称されてもよい。 When a positive search result is obtained for the search query, the final input output unit 104 generates a final input (question sentence) by adding the positive search result output by the related text acquisition unit 103 and an auxiliary sentence to the input requesting an answer using the search result for the input output by the related text acquisition unit 103 (an answer based on the search result for the input) to the input output by the related text acquisition unit 103 to the input output by the related text acquisition unit 103. On the other hand, when a positive search result is not obtained for the search query, the final input output unit 104 decides to use the input output by the related text acquisition unit 103 as the final input. The final input output unit 104 transmits the final input to the answer generation device 30 via the communication device 14. The final input output unit 104 may instruct the answer generation device 30 to generate one answer for each learning material (in this case, text related to each learning material is sent to the answer generation device 30, and multiple answers can be generated for one input), or may instruct the answer generation device 30 to generate one answer for one input (in this case, text related to each learning material is compiled and sent to the answer generation device 30). In the following, "send" may be interpreted as "output" as appropriate. The final input output unit 104 may be referred to as an input sending unit.

なお、検索結果が長過ぎる場合(例えば、所定文字数以上である場合や所定バイト以上のデータである場合)、関連テキスト取得部103又は最終入力出力部104は、検索結果を要約するように、回答生成装置30に指示し、回答生成装置30から要約文(回答)を取得してもよい。ここで、回答生成装置30は、検索結果及び検索結果の要約文を求める旨の文章をLLMに入力することで、要約文を生成する。そして、例えば、関連テキスト取得部103は、要約文を最終入力出力部104に出力してもよく、最終入力出力部104は、関連テキスト取得部103によって出力された入力に、検索結果の代わりに関連テキスト取得部103によって出力された要約文等を付加して上記と同様に最終入力を生成し、最終入力を回答生成装置30に送信してもよい。 If the search results are too long (for example, if the search results are longer than a predetermined number of characters or if the data is longer than a predetermined number of bytes), the related text acquisition unit 103 or the final input/output unit 104 may instruct the answer generation device 30 to summarize the search results and acquire a summary sentence (answer) from the answer generation device 30. Here, the answer generation device 30 generates a summary sentence by inputting the search results and a sentence requesting a summary sentence of the search results to the LLM. Then, for example, the related text acquisition unit 103 may output the summary sentence to the final input/output unit 104, and the final input/output unit 104 may generate a final input in the same manner as above by adding the summary sentence output by the related text acquisition unit 103 instead of the search results to the input output by the related text acquisition unit 103, and transmit the final input to the answer generation device 30.

また、最終入力出力部104は、ユーザ情報取得部102によって出力されたユーザ情報(例えば、図6に示す「年齢」)に基づいて、関連テキスト取得部103によって出力された入力に、対象年齢又は対象学年向けの回答を求める旨の補助的な文章を付加してもよい。より具体的に、ユーザ情報(対象学年)が「中学3年生」である場合、最終入力出力部104は、関連テキスト取得部103によって出力された入力に、「中学3年生(15歳)向けの回答にしてください」等の補助的な文章を付加してもよい。 In addition, the final input output unit 104 may add auxiliary text to the input output by the related text acquisition unit 103, based on the user information (e.g., "age" shown in FIG. 6) output by the user information acquisition unit 102, requesting an answer appropriate for the target age or grade level. More specifically, if the user information (grade level) is "third year junior high school student," the final input output unit 104 may add auxiliary text such as "Please provide an answer appropriate for a third year junior high school student (15 years old)" to the input output by the related text acquisition unit 103.

回答取得部105は、回答生成装置30から、通信装置14を介して、最終入力出力部104によって送信された最終入力に対する回答を受信することで、回答を取得する。回答取得部105は、取得した回答を表示制御部106に出力する。 The answer acquisition unit 105 acquires an answer by receiving an answer to the final input transmitted by the final input output unit 104 from the answer generation device 30 via the communication device 14. The answer acquisition unit 105 outputs the acquired answer to the display control unit 106.

表示制御部106は、回答取得部105によって出力された回答を含む画面を生成し、UI装置13に含まれる表示装置(表示部)に画面を表示させる。別言すれば、表示制御部106は、回答を(外部に向けて)出力する。なお、回答には、回答の引用元(参照元)である教材、その名称、関連するテキストが存在するページ、関連するテキスト等が含まれてもよい(図14参照)。 The display control unit 106 generates a screen including the answer output by the answer acquisition unit 105, and displays the screen on a display device (display unit) included in the UI device 13. In other words, the display control unit 106 outputs the answer (to the outside). The answer may include the teaching material that is the source (reference source) of the answer, its name, the page on which the related text exists, the related text, etc. (see FIG. 14).

<ユーザ情報管理装置の構成>
図4は、本開示の一実施形態に係るユーザ情報管理装置のハードウェア構成例を示すブロック図である。ユーザ情報管理装置20は、サーバ等の計算装置(計算機、コンピュータ)又は情報処理装置によって実現されてもよい。
<Configuration of User Information Management Device>
4 is a block diagram illustrating an example of a hardware configuration of a user information management device according to an embodiment of the present disclosure. The user information management device 20 may be realized by a computing device (computer) such as a server or an information processing device.

例えば、図4に示すように、ユーザ情報管理装置20は、記憶装置21と、処理装置22と、UI装置23と、通信装置24と、バス25と、を備えてもよい。記憶装置21、処理装置22、UI装置23及び通信装置24は、バス25を介して相互に接続されてもよい。 For example, as shown in FIG. 4, the user information management device 20 may include a storage device 21, a processing device 22, a UI device 23, a communication device 24, and a bus 25. The storage device 21, the processing device 22, the UI device 23, and the communication device 24 may be connected to each other via the bus 25.

ユーザ情報管理装置20の前述した、また後述する機能及び処理を実現するプログラム又は指示は、ネットワーク等を介して何らかの外部装置(例えば、サーバ)からダウンロードされてもよい。また、このようなプログラム又は指示は、CD-ROM、フラッシュメモリ等の着脱可能な記憶媒体から提供されてもよい。 The programs or instructions that realize the functions and processes of the user information management device 20 described above and below may be downloaded from some external device (e.g., a server) via a network or the like. Such programs or instructions may also be provided from a removable storage medium such as a CD-ROM or flash memory.

記憶装置21は、RAM、フラッシュメモリ、ハードディスクドライブ等によって実現され、インストールされたプログラム又は指示とともに、プログラム又は指示の実行に用いられるファイル、データ等を記憶する。記憶装置11は、非一時的な記憶媒体を含んでもよい。 The storage device 21 is realized by RAM, flash memory, a hard disk drive, etc., and stores installed programs or instructions as well as files, data, etc. used to execute the programs or instructions. The storage device 11 may include a non-transitory storage medium.

処理装置22は、例えば、汎用のプロセッサ又はコントローラ(回路)によって実現されてもよいし、専用のプロセッサ又はコントローラ(回路)によって実現されてもよい。汎用のプロセッサによって実現される場合、処理装置22は、1つ以上のプロセッサコアから構成され得る1つ以上のCPU、GPU、処理回路等によって実現されてもよい。この場合、処理装置22は、記憶装置21に記憶されたプログラム又は指示、当該プログラム又は指示を実行するのに使用されるパラメータ等のデータ等に従って、前述した、また後述するユーザ情報管理装置20の機能及び処理を実行する。このようなプログラムは、コンピュータ又は処理装置22によって実行されたときに、当該コンピュータ又は処理装置22を、本開示に係るユーザ情報管理装置20として機能させるためのプログラムであってよい。また、このようなプログラムは、コンピュータ又は処理装置22によって実行されたときに、当該コンピュータ又は処理装置22に、本開示に係る教育支援(質問回答)に関する方法を実行させるためのプログラムであってもよい。 The processing device 22 may be realized, for example, by a general-purpose processor or controller (circuit), or may be realized by a dedicated processor or controller (circuit). When realized by a general-purpose processor, the processing device 22 may be realized by one or more CPUs, GPUs, processing circuits, etc., which may be composed of one or more processor cores. In this case, the processing device 22 executes the functions and processing of the user information management device 20 described above and below according to the programs or instructions stored in the storage device 21, data such as parameters used to execute the programs or instructions, etc. Such a program may be a program that causes the computer or processing device 22 to function as the user information management device 20 according to the present disclosure when executed by the computer or processing device 22. In addition, such a program may be a program that causes the computer or processing device 22 to execute the method related to educational support (question answering) according to the present disclosure when executed by the computer or processing device 22.

UI装置23は、キーボード、マウス、カメラ、マイクロフォン等の入力装置、ディスプレイ、スピーカ、ヘッドセット、プリンタ等の出力装置、ハプティックデバイス、タッチパネル等の入出力装置から構成されてもよく、ユーザとユーザ情報管理装置20との間のインタフェースを実現する。例えば、ユーザは、ディスプレイ又はタッチパネルに表示されたGUIを、キーボード、マウス等を用いて操作することで、ユーザ情報管理装置20を操作する。 The UI device 23 may be composed of input devices such as a keyboard, mouse, camera, microphone, etc., output devices such as a display, speaker, headset, printer, etc., and input/output devices such as a haptic device, touch panel, etc., and realizes an interface between the user and the user information management device 20. For example, the user operates the user information management device 20 by operating a GUI displayed on a display or touch panel using a keyboard, mouse, etc.

通信装置24は、外部装置、インターネット、LAN、VPN等の通信ネットワークとの通信処理を実行する各種通信回路によって実現されてもよい。 The communication device 24 may be realized by various communication circuits that perform communication processing with external devices, the Internet, LAN, VPN, and other communication networks.

上述したユーザ情報管理装置20のハードウェア構成は一例に過ぎず、本開示に係るユーザ情報管理装置20は、他の適切なハードウェア構成によって実現されてもよい。 The hardware configuration of the user information management device 20 described above is merely an example, and the user information management device 20 according to the present disclosure may be realized by any other suitable hardware configuration.

図5は、本開示の一実施形態に係るユーザ情報管理装置の機能構成例を示すブロック図である。 Figure 5 is a block diagram showing an example of the functional configuration of a user information management device according to one embodiment of the present disclosure.

例えば、図5に示すように、ユーザ情報管理装置20は、入力取得部201と、ユーザ情報登録部202と、認証処理実行部203と、ユーザ情報出力部204と、ユーザ情報記憶部211と、を備える。入力取得部201、ユーザ情報登録部202、認証処理実行部203及びユーザ情報出力部204は、処理装置22によって、ハードウェアとして実現されてもよいし、ソフトウェアとして実現されてもよいし、ハードウェアとソフトウェアとの組み合わせとして実現されてもよい。ユーザ情報記憶部211は、記憶装置21によって実現されてよい。 For example, as shown in FIG. 5, the user information management device 20 includes an input acquisition unit 201, a user information registration unit 202, an authentication process execution unit 203, a user information output unit 204, and a user information storage unit 211. The input acquisition unit 201, the user information registration unit 202, the authentication process execution unit 203, and the user information output unit 204 may be realized as hardware, software, or a combination of hardware and software by the processing device 22. The user information storage unit 211 may be realized by the storage device 21.

入力取得部201は、ユーザデバイス10から、通信装置24を介して、ユーザデバイス10のユーザによる入力(ユーザ情報又はログイン情報)を受信することで、入力を取得する。入力がユーザ情報である場合、入力取得部201は、入力をユーザ情報登録部202に出力する。入力がログイン情報である場合、入力取得部201は、入力を認証処理実行部203に出力する。 The input acquisition unit 201 acquires input by receiving input (user information or login information) by the user of the user device 10 from the user device 10 via the communication device 24. If the input is user information, the input acquisition unit 201 outputs the input to the user information registration unit 202. If the input is login information, the input acquisition unit 201 outputs the input to the authentication process execution unit 203.

ユーザ情報登録部202は、入力取得部201によって出力されたユーザ情報をユーザ情報記憶部211に記憶させることで、ユーザ情報を登録する。 The user information registration unit 202 registers the user information by storing the user information output by the input acquisition unit 201 in the user information storage unit 211.

認証処理実行部203は、入力取得部201によって出力されたログイン情報とユーザ情報記憶部211に記憶されているユーザ情報のうちのログイン情報とを照合し、これらが一致する場合に、認証に成功したと判定する。認証に成功した場合、認証処理実行部203は、ログイン情報に対応するユーザ情報の全て又はログイン情報以外のユーザ情報の全てを、ユーザ情報出力部204に出力する。認証に失敗した場合、認証処理実行部203は、ネットワーク60を介して、ユーザデバイス10に、認証に失敗した旨を送信する。 The authentication process execution unit 203 compares the login information output by the input acquisition unit 201 with the login information among the user information stored in the user information storage unit 211, and if they match, determines that authentication has been successful. If authentication is successful, the authentication process execution unit 203 outputs all of the user information corresponding to the login information or all of the user information other than the login information to the user information output unit 204. If authentication is unsuccessful, the authentication process execution unit 203 transmits a message to the user device 10 via the network 60 indicating that authentication has failed.

ユーザ情報出力部204は、ネットワーク60を介して、ユーザデバイス10に、認証処理実行部203によって出力されたユーザ情報を送信する。 The user information output unit 204 transmits the user information output by the authentication process execution unit 203 to the user device 10 via the network 60.

ユーザ情報記憶部211は、ユーザデバイス10のユーザに関するユーザ情報を記憶する。 The user information storage unit 211 stores user information about the user of the user device 10.

図6は、ユーザ情報記憶部211に記憶されるユーザ情報の例を示す図である。 Figure 6 shows an example of user information stored in the user information storage unit 211.

図6に示すように、ユーザ情報250は、ユーザID、パスワード、姓、名、年齢、国籍、ユーザの居住地がある自治体、権限等を含んでもよい。ユーザ情報250は、ユーザの学年、学力レベル(例えば、偏差値)等、ユーザに関する任意の情報をさらに含んでもよく、図示される情報に限定されるものではない。また、ユーザ情報250は、パスワードを含まなくてもよく、その場合、ユーザID及びパスワードを格納する別のテーブルが存在してもよい。 As shown in FIG. 6, user information 250 may include a user ID, password, last name, first name, age, nationality, the local government where the user resides, authority, etc. User information 250 may further include any information related to the user, such as the user's grade, academic level (e.g., deviation score), etc., and is not limited to the information shown in the figure. User information 250 may not include a password, in which case there may be a separate table that stores user IDs and passwords.

本実施形態において、図6に示す「権限」とは、ユーザの居住地がある自治体において採択されている教科書を出版する出版社が出版する教材(すなわち著作物)へのアクセス権限(読み取り権限)を意味する。例えば、ユーザ(例えば、ユーザの保護者)は、ユーザ情報を登録又は変更する際に、ユーザ情報管理装置20を介して、出版社が要求する条件(例えば、各種個人情報の提供や対価の支払い等)に同意したことに応じて、出版社が出版する教材へのアクセス権限(読み取り権限)を取得することができる。図示する例において、権限「有」とは、ユーザが、出版社が出版する教材に対するアクセス権限を有することを意味する。権限「有」の場合、ユーザの入力(質問)に対して、当該出版社に対応する出版社DB装置40にアクセスして出版社DB装置40に記憶されている教材が参照され、ユーザの入力(質問)に関連するテキストが教材において発見された場合には、関連するテキストに基づく回答がユーザに提示される。一方、権限「無」とは、ユーザが、出版社が出版する教材に対するアクセス権限を有しないことを意味する。権限「無」の場合、ユーザの入力(質問)に対して、当該出版社に対応する出版社DB装置40にアクセスすることが許可されない(あるいは、当該出版社に対応する出版社DB装置40にアクセスして出版社DB装置40に記憶されている教材が参照されるものの、ユーザの入力(質問)に関連するテキストが教材において発見されたとしても、著作権の関係から、関連するテキストに基づく回答がユーザに提示されない)。なお、ユーザは、ユーザの居住地がある自治体において採択されている教科書を出版する出版社とは異なる出版社が出版する教材へのアクセス権限を取得できるように、契約を交わす出版社を選択できてもよい。また、ユーザが所属する学校、塾等が出版社と契約している場合には、自動的に権限「有」が設定されてもよい。 In this embodiment, the "authority" shown in FIG. 6 means the access authority (read authority) to the teaching materials (i.e., copyrighted work) published by a publisher that publishes textbooks adopted in the local government where the user lives. For example, when a user (e.g., the user's guardian) registers or changes user information, the user can obtain the access authority (read authority) to the teaching materials published by the publisher in response to agreeing to the conditions required by the publisher (e.g., provision of various personal information, payment of a fee, etc.) via the user information management device 20. In the illustrated example, "authority yes" means that the user has the access authority to the teaching materials published by the publisher. In the case of "authority yes," the publisher DB device 40 corresponding to the publisher is accessed in response to the user's input (question), and the teaching materials stored in the publisher DB device 40 are referenced, and if text related to the user's input (question) is found in the teaching materials, an answer based on the related text is presented to the user. On the other hand, "authority no" means that the user does not have the access authority to the teaching materials published by the publisher. In the case of "no authority", access to the publisher DB device 40 corresponding to the publisher is not permitted in response to the user's input (question) (or, although the publisher DB device 40 corresponding to the publisher is accessed and the teaching materials stored in the publisher DB device 40 are referenced, even if text related to the user's input (question) is found in the teaching materials, an answer based on the related text is not presented to the user due to copyright restrictions). Note that the user may be able to select a publisher with which to make a contract so that the user can obtain access to teaching materials published by a publisher other than the publisher that publishes the textbook adopted by the local government in which the user lives. Also, if the school, cram school, etc. to which the user belongs has a contract with a publisher, the authority may be automatically set to "yes".

ユーザ情報管理装置20からユーザ情報250を受信したユーザデバイス10は、受信したユーザ情報250の一部又は全部を回答生成装置30に送信してもよい。 The user device 10 that receives the user information 250 from the user information management device 20 may transmit a part or all of the received user information 250 to the answer generation device 30.

<回答生成装置の構成>
図7は、本開示の一実施形態に係る回答生成装置のハードウェア構成例を示すブロック図である。回答生成装置30は、サーバ等の計算装置(計算機、コンピュータ)又は情報処理装置によって実現されてもよい。
<Configuration of Answer Generation Device>
7 is a block diagram showing an example of a hardware configuration of an answer generating device according to an embodiment of the present disclosure. The answer generating device 30 may be realized by a computing device (calculator, computer) such as a server or an information processing device.

例えば、図7に示すように、回答生成装置30は、記憶装置31と、処理装置32と、UI装置33と、通信装置34と、バス35と、を備えてもよい。記憶装置31、処理装置32、UI装置33及び通信装置34は、バス35を介して相互に接続されてもよい。 For example, as shown in FIG. 7, the answer generating device 30 may include a storage device 31, a processing device 32, a UI device 33, a communication device 34, and a bus 35. The storage device 31, the processing device 32, the UI device 33, and the communication device 34 may be connected to each other via the bus 35.

回答生成装置30の前述した、また後述する機能及び処理を実現するプログラム又は指示は、ネットワーク等を介して何らかの外部装置(例えば、サーバ)からダウンロードされてもよい。また、このようなプログラム又は指示は、CD-ROM、フラッシュメモリ等の着脱可能な記憶媒体から提供されてもよい。 The programs or instructions that realize the functions and processes of the answer generating device 30 described above and below may be downloaded from some external device (e.g., a server) via a network or the like. Such programs or instructions may also be provided from a removable storage medium such as a CD-ROM or flash memory.

記憶装置31は、RAM、フラッシュメモリ、ハードディスクドライブ等によって実現され、インストールされたプログラム又は指示とともに、プログラム又は指示の実行に用いられるファイル、データ等を記憶する。記憶装置31は、非一時的な記憶媒体を含んでもよい。 The storage device 31 is realized by RAM, flash memory, a hard disk drive, etc., and stores installed programs or instructions as well as files, data, etc. used to execute the programs or instructions. The storage device 31 may also include a non-transitory storage medium.

処理装置32は、例えば、汎用のプロセッサ又はコントローラ(回路)によって実現されてもよいし、専用のプロセッサ又はコントローラ(回路)によって実現されてもよい。汎用のプロセッサによって実現される場合、処理装置32は、1つ以上のプロセッサコアから構成され得る1つ以上のCPU、GPU、処理回路等によって実現されてもよい。この場合、処理装置32は、記憶装置31に記憶されたプログラム又は指示、当該プログラム又は指示を実行するのに使用されるパラメータ等のデータ等に従って、前述した、また後述する回答生成装置30の機能及び処理を実行する。このようなプログラムは、コンピュータ又は処理装置32によって実行されたときに、当該コンピュータ又は処理装置32を、本開示に係る回答生成装置30として機能させるためのプログラムであってよい。また、このようなプログラムは、コンピュータ又は処理装置32によって実行されたときに、当該コンピュータ又は処理装置32に、本開示に係る教育支援(質問回答)に関する方法を実行させるためのプログラムであってもよい。 The processing device 32 may be realized, for example, by a general-purpose processor or controller (circuit), or may be realized by a dedicated processor or controller (circuit). When realized by a general-purpose processor, the processing device 32 may be realized by one or more CPUs, GPUs, processing circuits, etc., which may be composed of one or more processor cores. In this case, the processing device 32 executes the functions and processing of the answer generating device 30 described above and below according to the programs or instructions stored in the storage device 31, data such as parameters used to execute the programs or instructions, etc. Such a program, when executed by the computer or processing device 32, may be a program that causes the computer or processing device 32 to function as the answer generating device 30 according to the present disclosure. Furthermore, such a program, when executed by the computer or processing device 32, may be a program that causes the computer or processing device 32 to execute the method related to educational support (question answering) according to the present disclosure.

UI装置33は、キーボード、マウス、カメラ、マイクロフォン等の入力装置、ディスプレイ、スピーカ、ヘッドセット、プリンタ等の出力装置、ハプティックデバイス、タッチパネル等の入出力装置から構成されてもよく、ユーザと回答生成装置30との間のインタフェースを実現する。例えば、ユーザは、ディスプレイ又はタッチパネルに表示されたGUIを、キーボード、マウス等を用いて操作することで、回答生成装置30を操作する。 The UI device 33 may be composed of input devices such as a keyboard, mouse, camera, microphone, etc., output devices such as a display, speaker, headset, printer, etc., and input/output devices such as a haptic device, touch panel, etc., and realizes an interface between the user and the answer generation device 30. For example, the user operates the answer generation device 30 by operating a GUI displayed on a display or touch panel using a keyboard, mouse, etc.

通信装置34は、外部装置、インターネット、LAN、VPN等の通信ネットワークとの通信処理を実行する各種通信回路によって実現されてもよい。 The communication device 34 may be realized by various communication circuits that perform communication processing with external devices, the Internet, LAN, VPN, and other communication networks.

上述した回答生成装置30のハードウェア構成は一例に過ぎず、本開示に係る回答生成装置30は、他の適切なハードウェア構成によって実現されてもよい。 The hardware configuration of the answer generating device 30 described above is merely an example, and the answer generating device 30 according to the present disclosure may be realized by any other suitable hardware configuration.

図8は、本開示の一実施形態に係る回答生成装置の機能構成例を示すブロック図である。 Figure 8 is a block diagram showing an example of the functional configuration of an answer generation device according to an embodiment of the present disclosure.

例えば、図8に示すように、回答生成装置30は、入力取得部301と、回答処理部302と、を備える。入力取得部301及び回答処理部302は、処理装置32によって、ハードウェアとして実現されてもよいし、ソフトウェアとして実現されてもよいし、ハードウェアとソフトウェアとの組み合わせとして実現されてもよい。 For example, as shown in FIG. 8, the answer generation device 30 includes an input acquisition unit 301 and an answer processing unit 302. The input acquisition unit 301 and the answer processing unit 302 may be realized by the processing device 32 as hardware, as software, or as a combination of hardware and software.

入力取得部301は、ユーザデバイス10から、通信装置34を介して、最終入力を受信することで、最終入力を取得する。入力取得部301は、最終入力を回答処理部302に出力する。 The input acquisition unit 301 acquires the final input by receiving the final input from the user device 10 via the communication device 34. The input acquisition unit 301 outputs the final input to the answer processing unit 302.

回答処理部302は、入力取得部301によって出力された最終入力を学習済みモデルであるLLMに入力することで、最終入力に対する回答を生成する。ここで、最終入力に、検索クエリ(ユーザからの入力)に関連するテキストが含まれる場合には、回答処理部302は、検索クエリに関連するテキストに基づく回答を生成する。なお、回答処理部302は、生成する回答に、回答の引用元(参照元)である教材、その名称、関連するテキストが存在するページ、関連するテキスト等を含めてもよい。 The answer processing unit 302 generates an answer to the final input by inputting the final input output by the input acquisition unit 301 into the LLM, which is a trained model. Here, if the final input includes text related to the search query (input from the user), the answer processing unit 302 generates an answer based on the text related to the search query. Note that the answer processing unit 302 may include in the answer it generates the teaching material that is the source (reference source) of the answer, its name, the page where the related text exists, the related text, etc.

回答処理部302は、通信装置34を介して、ユーザデバイス10に、生成した回答を送信する。 The answer processing unit 302 transmits the generated answer to the user device 10 via the communication device 34.

<教育支援システムの動作>
次に、図9~図12を参照して、教育支援システム1の動作例について説明する。
<Operation of the Education Support System>
Next, an example of the operation of the education support system 1 will be described with reference to FIGS.

図9は、本開示の一実施形態に係る、教育支援システムの動作例を示すシーケンス図である。図9に示す例は、ユーザ情報の登録処理に関する。 Figure 9 is a sequence diagram showing an example of the operation of an education support system according to an embodiment of the present disclosure. The example shown in Figure 9 relates to a user information registration process.

ステップS101において、ユーザデバイス10(入力受付部101)は、ユーザデバイス10のユーザからの入力であるユーザ情報を受け付ける。 In step S101, the user device 10 (input receiving unit 101) receives user information, which is input from the user of the user device 10.

ステップS102において、ユーザデバイス10(入力受付部101)は、受け付けたユーザ情報をユーザ情報管理装置20に送信する。 In step S102, the user device 10 (input reception unit 101) transmits the received user information to the user information management device 20.

ステップS103において、ユーザ情報管理装置20(ユーザ情報登録部202)は、受信したユーザ情報をユーザ情報記憶部211に記憶させることで、ユーザ情報を登録する。 In step S103, the user information management device 20 (user information registration unit 202) registers the user information by storing the received user information in the user information storage unit 211.

図10は、本開示の一実施形態に係る、ユーザデバイスの動作例を示すフローチャートである。 Figure 10 is a flowchart showing an example of the operation of a user device according to one embodiment of the present disclosure.

ステップS201において、ユーザデバイス10(入力受付部101)は、ユーザデバイス10のユーザからの入力であるログイン情報を受け付ける。 In step S201, the user device 10 (input receiving unit 101) receives login information input from the user of the user device 10.

ステップS202において、ユーザデバイス10(入力受付部101)は、受け付けたログイン情報をユーザ情報管理装置20に送信する。ここで、ユーザ情報管理装置20は、ログイン情報を用いた認証処理を実行し、認証処理において認証が成功したものとする。 In step S202, the user device 10 (input reception unit 101) transmits the received login information to the user information management device 20. Here, the user information management device 20 executes an authentication process using the login information, and assumes that the authentication is successful in the authentication process.

ステップS203において、ユーザデバイス10(ユーザ情報取得部102)は、ユーザ情報管理装置20からユーザ情報を取得する。 In step S203, the user device 10 (user information acquisition unit 102) acquires user information from the user information management device 20.

ステップS204において、ユーザデバイス10(入力受付部101)は、ユーザデバイス10のユーザからの入力(質問)を受け付ける。 In step S204, the user device 10 (input receiving unit 101) receives input (question) from the user of the user device 10.

ステップS205において、ユーザデバイス10(関連テキスト取得部103)は、ユーザからの入力に基づいて、検索を実行し、関連テキストの取得を試みる。ステップS205の詳細については、図11を参照して後述する。 In step S205, the user device 10 (related text acquisition unit 103) executes a search based on the input from the user and attempts to acquire related text. Details of step S205 will be described later with reference to FIG. 11.

ステップS206において、ユーザデバイス10(最終入力出力部104)は、ステップS205における検索の結果に基づいて、ユーザからの入力に上述した補助的な文章を付加した最終入力を生成し、生成した最終入力を回答生成装置30に送信する。 In step S206, the user device 10 (final input output unit 104) generates a final input by adding the above-mentioned auxiliary text to the input from the user based on the results of the search in step S205, and transmits the generated final input to the answer generation device 30.

ステップS207において、ユーザデバイス10(回答取得部105)は、回答生成装置30から回答を取得する。 In step S207, the user device 10 (answer acquisition unit 105) acquires the answer from the answer generation device 30.

ステップS208において、ユーザデバイス10(表示制御部106)は、回答を表示部に表示させる。 In step S208, the user device 10 (display control unit 106) displays the answer on the display unit.

以後、ステップS204~ステップS208が繰り返し実行され得る。 After this, steps S204 to S208 can be executed repeatedly.

図11は、本開示の一実施形態に係る、ユーザデバイスの動作例を示すフローチャートである。この動作例は、図10に示すステップS205の詳細を示す。 FIG. 11 is a flowchart illustrating an example of the operation of a user device according to an embodiment of the present disclosure. This example shows details of step S205 shown in FIG. 10.

ステップS251において、ユーザデバイス10(関連テキスト取得部103)は、ユーザからの入力に基づいて1つ以上の検索クエリを生成する。 In step S251, the user device 10 (related text acquisition unit 103) generates one or more search queries based on input from the user.

ステップS252において、ユーザデバイス10(関連テキスト取得部103)は、ユーザ情報に基づいて、ユーザが出版社DB装置40に記憶されている出版物(教材)へのアクセス権限を有しているか否かを判定する。 In step S252, the user device 10 (related text acquisition unit 103) determines, based on the user information, whether the user has the authority to access the publications (teaching materials) stored in the publisher DB device 40.

一方、ユーザが出版物へのアクセス権限を有している場合(ステップS252;YES)、ステップS253において、ユーザデバイス10(関連テキスト取得部103)は、生成した検索クエリを用いて、出版社DB装置40に問い合わせる。 On the other hand, if the user has access rights to the publication (step S252; YES), in step S253, the user device 10 (related text acquisition unit 103) queries the publisher DB device 40 using the generated search query.

ステップS254において、ユーザデバイス10(関連テキスト取得部103)は、肯定的な検索結果が得られたか否か(検索クエリ(ユーザからの入力)に関連するテキストが教材に存在するか否か)を判定する。 In step S254, the user device 10 (related text acquisition unit 103) determines whether a positive search result has been obtained (whether text related to the search query (input from the user) exists in the teaching materials).

肯定的な検索結果が得られた場合(ステップS254;YES)、ステップS255において、ユーザデバイス10(関連テキスト取得部103)は、出版物から、ユーザからの入力に関連するテキストを取得する。そして、フローはステップS206に進む。 If a positive search result is obtained (step S254; YES), in step S255, the user device 10 (related text acquisition unit 103) acquires text related to the user's input from the publication. The flow then proceeds to step S206.

肯定的な検索結果が得られなかった場合(ステップS254;NO)、又は、ユーザが出版物へのアクセス権限を有していない場合(ステップS252;NO)、ステップS256において、ユーザデバイス10(関連テキスト取得部103)は、検索クエリを用いて、ウェブ装置50に問い合わせる。ウェブ装置50への問い合わせの結果、肯定的な検索結果が得られることもあるし、肯定的な検索結果が得られないこともあるが、ここでは、肯定的な検索結果が得られるものとする。 If no positive search results are obtained (step S254; NO), or if the user does not have permission to access the publication (step S252; NO), in step S256, the user device 10 (related text acquisition unit 103) queries the web device 50 using the search query. As a result of querying the web device 50, positive search results may or may not be obtained, but here it is assumed that positive search results are obtained.

ステップS257において、ユーザデバイス10(関連テキスト取得部103)は、インターネットから、ユーザからの入力に関連するテキストを取得する。そして、フローはステップS206に進む。 In step S257, the user device 10 (related text acquisition unit 103) acquires text related to the user's input from the Internet. The flow then proceeds to step S206.

図12は、本開示の一実施形態に係る、ユーザ情報管理装置の動作例を示すフローチャートである。 Figure 12 is a flowchart showing an example of the operation of a user information management device according to one embodiment of the present disclosure.

ステップS301において、ユーザ情報管理装置20(入力取得部201)は、ユーザデバイス10から、ユーザデバイス10のユーザからの入力であるログイン情報を受け付ける。 In step S301, the user information management device 20 (input acquisition unit 201) accepts login information, which is input from the user of the user device 10, from the user device 10.

ステップS302において、ユーザ情報管理装置20(認証処理実行部203)は、受信したログイン情報とユーザ情報記憶部211に記憶されているログイン情報とに基づいて、認証処理を実行する。ここで、認証処理において認証が成功したものとする。 In step S302, the user information management device 20 (authentication process execution unit 203) executes authentication processing based on the received login information and the login information stored in the user information storage unit 211. Here, it is assumed that authentication is successful in the authentication processing.

ステップS303において、ユーザ情報管理装置20(ユーザ情報出力部204)は、ユーザ情報をユーザデバイス10に送信する。 In step S303, the user information management device 20 (user information output unit 204) transmits the user information to the user device 10.

図13は、本開示の一実施形態に係る、回答生成装置の動作例を示すフローチャートである。 Figure 13 is a flowchart showing an example of the operation of an answer generation device according to one embodiment of the present disclosure.

ステップS401において、回答生成装置30(入力取得部301)は、ユーザデバイス10から、(最終)入力を取得する。 In step S401, the answer generation device 30 (input acquisition unit 301) acquires the (final) input from the user device 10.

ステップS402において、回答生成装置30(回答処理部302)は、取得した入力を学習済みモデルであるLLMに入力することで、取得した(最終)入力に対する回答を生成する。 In step S402, the answer generation device 30 (answer processing unit 302) generates an answer to the acquired (final) input by inputting the acquired input into the LLM, which is a trained model.

ステップS403において、回答生成装置30(回答処理部302)は、生成した回答をユーザデバイス10に送信する。 In step S403, the answer generation device 30 (answer processing unit 302) transmits the generated answer to the user device 10.

図14は、本開示の一実施形態に係る、ユーザデバイスに表示される入力及び回答を含む表示画面例を示す図である。 FIG. 14 illustrates an example display screen including inputs and answers displayed on a user device according to one embodiment of the present disclosure.

図14に示すように、ユーザデバイス10の表示部に表示される表示画面例1400には、入力フィールド1401、回答生成指示ボタン1402、応答文フィールド1403及び関連教材表示領域1404が含まれる。 As shown in FIG. 14, an example display screen 1400 displayed on the display unit of the user device 10 includes an input field 1401, an answer generation instruction button 1402, a response sentence field 1403, and a related teaching material display area 1404.

ユーザが、質問文(ユーザ入力文)を入力フィールド1401に入力することで、ユーザデバイス10は、質問文を受け付ける(図10のステップS204)。次いで、ユーザが、回答生成指示ボタン1402を押下することで、ユーザデバイス10は、質問文に基づいて、検索クエリを生成し、検索クエリを用いて出版社DB装置40に問い合わせる(図10のステップS205、図11のステップS251、S252)。図14に示す例において、ユーザからの質問文に関連するテキストが、教材A及び教材B(出版物)において発見されたものとする。すると、ユーザデバイス10は、教材A及び教材Bから、質問文に関連するテキスト(図14の関連教材表示領域1404のハイライトされている部分、吹き出し部分)を取得する(図11のステップS254)。そして、ユーザデバイス10は、質問文に対して、関連するテキストと、質問文に対する関連するテキストに基づく回答を求める旨の補助的な文章と、を付加した最終入力を生成して回答生成装置30に送信する(図10のステップS206)。回答生成装置30が、最終入力を受信(取得)し、回答を生成してユーザデバイス10に送信すると(図13のステップS401~S403)、ユーザデバイス10は、回答を取得し、回答の一部である応答文を応答文フィールド1403に表示させ、教材A及び教材Bの所定の情報(教材名、ページ、関連するテキスト等)を関連教材表示領域1404に表示させる(図10のステップS207、S208)。 When the user inputs a question (user input sentence) into the input field 1401, the user device 10 accepts the question (step S204 in FIG. 10). Next, when the user presses the answer generation instruction button 1402, the user device 10 generates a search query based on the question and queries the publisher DB device 40 using the search query (step S205 in FIG. 10, steps S251 and S252 in FIG. 11). In the example shown in FIG. 14, it is assumed that text related to the question from the user is found in teaching material A and teaching material B (publications). Then, the user device 10 acquires text related to the question (the highlighted portion and the speech bubble portion in the related teaching material display area 1404 in FIG. 14) from teaching material A and teaching material B (step S254 in FIG. 11). Then, the user device 10 generates a final input that adds the related text to the question and an auxiliary sentence requesting an answer based on the related text to the question, and transmits the final input to the answer generation device 30 (step S206 in FIG. 10). When the answer generation device 30 receives (acquires) the final input, generates an answer, and transmits it to the user device 10 (steps S401 to S403 in FIG. 13), the user device 10 acquires the answer, displays the response sentence that is part of the answer in the response sentence field 1403, and displays predetermined information about teaching materials A and B (teaching material name, page, related text, etc.) in the related teaching material display area 1404 (steps S207 and S208 in FIG. 10).

一般に、生成AIは、入力可能な文章の長さに制限があるため、出版社が出版した教材データの内容を用いたFew shotは非現実的である。また、このような教材データの内容を用いた生成AIのファインチューニングは、負荷及びコストが大きい。一方、本実施形態によれば、学習データに含まれていない内容の入力に対して、Few shot生成やファインチューニングなしに、外部教材データの内容に基づくより正確な回答を適切に提供することができ、生成可能な質問回答応答内容の種類増加及び質の向上に資する。 Generally, generation AI has a limit to the length of text that can be input, making few shots using the contents of teaching material data published by a publisher unrealistic. Furthermore, fine-tuning generation AI using the contents of such teaching material data imposes a large burden and cost. On the other hand, according to this embodiment, for input of content not included in the learning data, a more accurate answer based on the contents of external teaching material data can be appropriately provided without few shot generation or fine tuning, contributing to an increase in the variety and quality of question answer response content that can be generated.

<変形例>
以下、上記の実施形態の変形例について説明する。
<Modification>
Modifications of the above embodiment will now be described.

[変形例1]
ユーザデバイス10の一部の機能は、ユーザ情報管理装置20又は回答生成装置30に含まれてもよい。この場合、ユーザデバイス10は、ユーザからの質問文等の入力をユーザ情報管理装置20又は回答生成装置30に送信してもよく、入力を受信したユーザ情報管理装置20又は回答生成装置30は、ユーザ情報取得部102、関連テキスト取得部103、最終入力出力部104及び/又は回答取得部105が実行する処理に相当する処理を実行してもよい。
[Modification 1]
Some of the functions of the user device 10 may be included in the user information management device 20 or the answer generation device 30. In this case, the user device 10 may transmit an input such as a question sentence from a user to the user information management device 20 or the answer generation device 30, and the user information management device 20 or the answer generation device 30 that receives the input may execute processing equivalent to the processing executed by the user information acquisition unit 102, the related text acquisition unit 103, the final input/output unit 104, and/or the answer acquisition unit 105.

[変形例2]
回答生成装置30の回答生成に関わる機能は、ユーザデバイス10又はユーザ情報管理装置20に含まれてもよい。すなわち、学習済みモデルであるLLMが、ユーザデバイス10に含まれてもよいし、ユーザ情報管理装置20や回答生成装置30等、ユーザデバイス10が接続可能なネットワーク上に配置されていてもよい。したがって、ユーザデバイス10又はユーザ情報管理装置20が、ユーザからのユーザ入力文を取得し、出版社が出版した出版物からユーザ入力文に関連するテキストを取得し、ユーザ入力文に対して、テキストと、ユーザ入力文に対するテキストに基づく回答を求める旨の補助的な文章と、を付加した質問文を生成し、質問文を学習済みモデルに入力して回答を生成し出力してもよい。
[Modification 2]
The function related to answer generation of the answer generating device 30 may be included in the user device 10 or the user information management device 20. That is, the LLM, which is a trained model, may be included in the user device 10, or the user information management device 20, the answer generating device 30, etc. may be arranged on a network to which the user device 10 can connect. Therefore, the user device 10 or the user information management device 20 may acquire a user input sentence from a user, acquire text related to the user input sentence from a publication published by a publisher, generate a question sentence by adding the text and an auxiliary sentence to the user input sentence that requests an answer based on the text to the user input sentence, and input the question sentence into the trained model to generate and output an answer.

[変形例3]
上記では、関連するテキストが記載されている教材の情報(教材名、ページ等)がユーザデバイス10において表示されるとして説明したが、追加的に又は代替的に、教材のリンク情報(教材が出版社DB装置40において存在する位置を示す情報)が、回答に含められてユーザデバイス10において表示されてもよい。
[Modification 3]
In the above, it has been explained that information about the teaching material in which the related text is written (such as the name of the teaching material, page, etc.) is displayed on the user device 10, but additionally or alternatively, link information about the teaching material (information indicating the location where the teaching material is located in the publisher DB device 40) may be included in the answer and displayed on the user device 10.

[他の変形例]
上述した装置(ユーザデバイス10、ユーザ情報管理装置20等)、装置を構成する機能部(入力受付部101、ユーザ情報取得部102)等の名称は、例示に過ぎず、適宜変更されてもよい。また、装置を構成する機能部の2つ以上は、組み合わされて統合されてもよいし、1つの機能部が機能部に分割されてもよい。また、各機能部が有する送信機能及び/又は受信機能は、通知部、被通知部、通信部、送受信部、送信部、受信部等としてまとめられてもよい。
[Other Modifications]
The names of the above-mentioned devices (user device 10, user information management device 20, etc.) and the functional units constituting the devices (input receiving unit 101, user information acquisition unit 102) are merely examples and may be changed as appropriate. Furthermore, two or more of the functional units constituting the devices may be combined and integrated, or one functional unit may be divided into functional units. Furthermore, the transmission function and/or reception function possessed by each functional unit may be summarized as a notification unit, a notified unit, a communication unit, a transmission/reception unit, a transmission unit, a reception unit, etc.

図示して上述したフローチャートにおけるステップの順番は、例示に過ぎず、適宜、入れ替えられてもよいし、いくつかのステップは、並列に実行されてもよい。 The order of steps in the flowcharts shown above is merely an example and may be rearranged as appropriate, and some steps may be performed in parallel.

以上、本開示の一態様によれば、学習データに含まれていない可能性がある内容の入力に対する回答を適切に提供することができる。 As described above, according to one aspect of the present disclosure, it is possible to provide appropriate answers to inputs whose content may not be included in the learning data.

以上、図面を参照しながら実施形態について説明したが、本開示はかかる例に限定されない。当業者であれば、特許請求の範囲に記載された範疇において、各種の変更例又は修正例に想到し得ることは明らかである。そのような変更例又は修正例についても、本開示の技術的範囲に属するものと了解される。また、本開示の趣旨を逸脱しない範囲において、実施形態(変更例又は修正例を含む)における各構成要素又は各事項は任意に組み合わされてよい。 Although the embodiments have been described above with reference to the drawings, the present disclosure is not limited to such examples. It is clear that a person skilled in the art can conceive of various modified or amended examples within the scope of the claims. It is understood that such modified or amended examples also fall within the technical scope of the present disclosure. Furthermore, each component or each item in the embodiments (including modified or amended examples) may be combined in any manner without departing from the spirit of the present disclosure.

1 教育支援システム
10 ユーザデバイス
101 入力受付部
102 ユーザ情報取得部
103 関連テキスト取得部
104 最終入力出力部
105 回答取得部
106 表示制御部
20 ユーザ情報管理装置
201 入力取得部
202 ユーザ情報登録部
203 認証処理実行部
204 ユーザ情報出力部
211 ユーザ情報記憶部
30 回答生成装置
301 入力取得部
302 回答処理部
REFERENCE SIGNS LIST 1 Education support system 10 User device 101 Input reception unit 102 User information acquisition unit 103 Related text acquisition unit 104 Final input output unit 105 Answer acquisition unit 106 Display control unit 20 User information management device 201 Input acquisition unit 202 User information registration unit 203 Authentication process execution unit 204 User information output unit 211 User information storage unit 30 Answer generation device 301 Input acquisition unit 302 Answer processing unit

Claims (8)

ユーザからのユーザ入力文を取得する入力取得部と、
出版社が出版した出版物から前記ユーザ入力文に関連する第1テキストを取得する関連テキスト取得部と、
前記ユーザ入力文に対して、前記第1テキストと、前記ユーザ入力文に対する前記第1テキストに基づく回答を求める旨の補助的な文章と、を付加した第1質問文を生成する補助入力生成部と、
前記第1質問文を学習済みモデルに入力して回答を生成し出力する回答出力部と、
を備える情報処理装置。
an input acquisition unit that acquires a user input sentence from a user;
a related text acquisition unit that acquires a first text related to the user input sentence from a publication published by a publisher;
an auxiliary input generating unit that generates a first question sentence by adding, to the user input sentence, the first text and an auxiliary sentence requesting an answer to the user input sentence based on the first text;
an answer output unit that inputs the first question sentence into a trained model to generate and output an answer;
An information processing device comprising:
前記出版物から前記第1テキストを取得できない、あるいは、前記ユーザが前記出版物へのアクセス権限を有していない場合、
前記関連テキスト取得部は、インターネットから前記ユーザ入力文に関連する第2テキストを取得し、
前記補助入力生成部は、前記ユーザ入力文に対して、前記第2テキストと、前記ユーザ入力文に対する前記第2テキストに基づく回答を求める旨の補助的な文章と、を付加した第2質問文を生成し、
前記回答出力部は、前記第2質問文を前記学習済みモデルに入力して回答を生成し出力する、
請求項1に記載の情報処理装置。
the first text cannot be obtained from the publication or the user does not have access to the publication;
the related text acquisition unit acquires a second text related to the user input sentence from the Internet;
the auxiliary input generating unit generates a second question sentence by adding, to the user input sentence, the second text and auxiliary sentence requesting an answer to the user input sentence based on the second text;
The answer output unit inputs the second question sentence into the trained model to generate and output an answer.
The information processing device according to claim 1 .
前記出版物から前記第1テキストを取得できず、あるいは、前記ユーザが前記出版物へのアクセス権限を有しておらず、かつ、インターネットから前記第2テキストを取得できない場合、前記回答出力部は、前記ユーザ入力文を前記学習済みモデルに入力して回答を生成し出力する、
請求項2に記載の情報処理装置。
When the first text cannot be obtained from the publication, or when the user does not have access to the publication and the second text cannot be obtained from the Internet, the answer output unit inputs the user input sentence into the trained model to generate and output an answer.
The information processing device according to claim 2 .
前記第1テキストが所定文字数又は所定バイト以上である場合、
前記補助入力生成部は、前記ユーザ入力文に対して、前記第1テキストの要約文と、前記ユーザ入力文に対する前記要約文に基づく回答を求める旨の補助的な文章と、を付加した第3質問文を生成し、
前記回答出力部は、前記第3質問文を前記学習済みモデルに入力して回答を生成し出力する、
請求項1に記載の情報処理装置。
If the first text is equal to or greater than a predetermined number of characters or bytes,
the auxiliary input generating unit generates a third question sentence by adding a summary sentence of the first text and an auxiliary sentence requesting an answer to the user input sentence based on the summary sentence to the user input sentence,
The answer output unit inputs the third question sentence into the trained model to generate and output an answer.
The information processing device according to claim 1 .
前記要約文は、前記第1テキスト及び前記要約文を求める旨の文章を前記学習済みモデルに入力することにより生成される、
請求項4に記載の情報処理装置。
The summary sentence is generated by inputting the first text and a sentence requesting the summary sentence into the trained model.
The information processing device according to claim 4.
前記関連するテキスト取得部は、前記ユーザの年齢又は学年に応じた前記出版物から前記第1テキストを取得する、
請求項1に記載の情報処理装置。
The related text acquisition unit acquires the first text from the publication according to the age or grade of the user.
The information processing device according to claim 1 .
前記補助入力生成部は、前記ユーザの年齢又は学年に応じた回答を求める旨の補助的な文章をさらに付加した前記第1質問文を生成する、
請求項1に記載の情報処理装置。
the auxiliary input generating unit generates the first question sentence by further adding an auxiliary sentence requesting an answer according to the age or school year of the user.
The information processing device according to claim 1 .
ユーザからのユーザ入力文を取得することと、
出版社が出版した出版物から前記ユーザ入力文に関連するテキストを取得することと、
前記ユーザ入力文に対して、前記テキストと、前記ユーザ入力文に対する前記テキストに基づく回答を求める旨の補助的な文章と、を付加した質問文を生成することと、
前記質問文を学習済みモデルに入力して回答を生成し出力することと、
を含む処理を情報処理装置に実行させるためのプログラム。
Obtaining a user input sentence from a user;
obtaining text associated with the user input sentence from a publication published by a publisher;
generating a question sentence by adding the text and an auxiliary sentence to the user input sentence, the auxiliary sentence requesting an answer based on the text to the user input sentence;
inputting the question sentence into a trained model to generate and output an answer;
A program for causing an information processing device to execute a process including the steps of:
JP2023146770A 2023-09-11 2023-09-11 Information processing device and program Pending JP2025040085A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2023146770A JP2025040085A (en) 2023-09-11 2023-09-11 Information processing device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2023146770A JP2025040085A (en) 2023-09-11 2023-09-11 Information processing device and program

Publications (1)

Publication Number Publication Date
JP2025040085A true JP2025040085A (en) 2025-03-24

Family

ID=95070806

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2023146770A Pending JP2025040085A (en) 2023-09-11 2023-09-11 Information processing device and program

Country Status (1)

Country Link
JP (1) JP2025040085A (en)

Similar Documents

Publication Publication Date Title
Sowden ELF on a mushroom: the overnight growth in English as a Lingua Franca
JP7486863B1 (en) Program, method, information processing device, and system
JP7537555B2 (en) Scoring support device, scoring support method and program
JP7656785B2 (en) Program, method, and information processing device
JP7521775B2 (en) Information processing device, annotation evaluation program, and annotation evaluation method
Chauhan The impact of generative artificial intelligence in scientific content synthesis for authors
Marshall et al. AI in academic libraries: The future is now
US20110223567A1 (en) Language and communication system
JP2025039810A (en) Program, method, information processing device, and system
JP2025040085A (en) Information processing device and program
JP2025130002A (en) Program, method, information processing device, and system
JP2025086594A (en) Information processing device, information processing method, and program
WO2024232373A1 (en) Document-drafting assistance device and program
JP2025021221A (en) Learning material generation system, learning material generation method, and learning material generation program
JP2025033282A (en) Information processing device and program
JP2025033284A (en) Information processing device and program
Thaiprasert et al. Development of a class materials search system using LINE chatbot
US20250259015A1 (en) Information processing apparatus, control method of information processing apparatus, and non-transitory computer-readable storage medium
US20250315459A1 (en) Terminal, control method of terminal and non-transitory computer-readable storage medium
JP7773283B2 (en) Program, method, information processing device, and system
US20260044741A1 (en) Collaborative data acquisition for machine learning tasks using natural language artifacts
US20240427998A1 (en) Contextual query generation
US20260050753A1 (en) Guiding language translation with translation documents using machine learning
Opoku-Brobbey Design and Implementation of NLP-based Conversational CHATBOT Framework in Higher Education
Ramakrisnan et al. A Generative AI Framework for Learning Management System (LMS) Chatbot Integration