Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7635940B2 - Method, computer device, and computer program for providing domain-specific dialogue utilizing language models - Google Patents
[go: Go Back, main page]

JP7635940B2 - Method, computer device, and computer program for providing domain-specific dialogue utilizing language models - Google Patents

Method, computer device, and computer program for providing domain-specific dialogue utilizing language models Download PDF

Info

Publication number
JP7635940B2
JP7635940B2 JP2022185689A JP2022185689A JP7635940B2 JP 7635940 B2 JP7635940 B2 JP 7635940B2 JP 2022185689 A JP2022185689 A JP 2022185689A JP 2022185689 A JP2022185689 A JP 2022185689A JP 7635940 B2 JP7635940 B2 JP 7635940B2
Authority
JP
Japan
Prior art keywords
document
sample
documents
processor
answer
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.)
Active
Application number
JP2022185689A
Other languages
Japanese (ja)
Other versions
JP2023076413A (en
Inventor
東賢 郭
相煥 ▲ぺ▼
東勳 咸
宇明 朴
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.)
Naver Corp
Original Assignee
Naver Corp
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 Naver Corp filed Critical Naver Corp
Publication of JP2023076413A publication Critical patent/JP2023076413A/en
Application granted granted Critical
Publication of JP7635940B2 publication Critical patent/JP7635940B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3322Query formulation using system suggestions
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/3332Query translation
    • G06F16/3334Selection or weighting of terms from queries, including natural language queries
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3346Query execution using probabilistic model
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/338Presentation of query results
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Mathematical Physics (AREA)
  • Artificial Intelligence (AREA)
  • Software Systems (AREA)
  • Evolutionary Computation (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Probability & Statistics with Applications (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

以下の説明は、ユーザの質問に対して適切な文書を参照しながら回答を提供する技術に関する。 The following description relates to a technique for providing answers to user questions by referencing appropriate documents.

QA(question and answer)システムとは、ユーザが質問を入力すると、適切な文書を参照しながら回答を提供する対話システムである。 A QA (question and answer) system is a dialogue system that, when a user inputs a question, provides an answer while referring to appropriate documents.

近年は、言語モデル(language model)の発展にともなって対話システムの性能も急速に高まっており、自然語だけでなくイメージや音声のようなマルチモーダル(multi-modal)領域にまで広がっている。 In recent years, the performance of dialogue systems has improved rapidly with the development of language models, and has expanded beyond natural language to include multi-modal domains such as images and voice.

一例として、特許文献1(公開日2002年4月25日)には、人工知能技術と自然語処理技術を利用して質問に対する回答を提供する技術が開示されている。 As an example, Patent Document 1 (published on April 25, 2002) discloses a technique for providing answers to questions using artificial intelligence and natural language processing techniques.

韓国公開特許第10-2002-0030545号公報Korean Patent Publication No. 10-2002-0030545

与えられたドメインの文書に基づいて、大規模言語モデルを利用して当該ドメインに特化した対話ボットを生成する技術を提供する。 We provide technology that uses large-scale language models to generate conversational bots specialized for a given domain based on documents in that domain.

コンピュータを作動するための検索モデルであって、特定のドメインに属する各文書と、当該文書に対して生成されたクエリとのペア(Document、Query)からなるデータに基づき、入力されたユーザの質問に対して、回答内容が含まれ得る文書を選定し、前記ユーザの質問に対する回答を出力するように学習された、コンピュータを作動するための検索モデルを提供する。 We provide a search model for operating a computer that is trained to select documents that may contain answers to input user questions based on data consisting of pairs (Document, Query) of each document belonging to a specific domain and a query generated for that document, and to output answers to the user questions.

一側面によると、前記ユーザの質問に対する各文書のスコアを利用することによってランク付けを実行し、回答内容が含まれ得る文書を選定するように、コンピュータを作動するための検索モデルを提供する。 According to one aspect, a search model is provided for operating a computer to perform ranking by utilizing the scores of each document for the user's question and to select documents that may contain the answer.

他の側面によると、前記生成されたクエリは、前記文書に基づいて既に学習された言語モデルを利用して生成されたことを特徴とする、検索モデルを提供する。 According to another aspect, a search model is provided, wherein the generated query is generated using a language model that has already been trained based on the document.

コンピュータ装置で実行される方法であって、前記コンピュータ装置は、メモリに含まれるコンピュータ読み取り可能な命令を実行するように構成された少なくとも1つのプロセッサを含み、当該方法は、前記少なくとも1つのプロセッサが、与えられた文書に対して、言語モデル(language model)を利用して前記文書で回答可能な少なくとも1つのクエリを生成する段階、および前記少なくとも1つのプロセッサが、前記文書と前記クエリを対話ボットのための検索モデル(retrieval model)の学習に利用する段階を含む、方法を提供する。 A method is provided that is executed on a computer device, the computer device including at least one processor configured to execute computer-readable instructions contained in a memory, the method including the steps of: for a given document, the at least one processor generating at least one query that can be answered by the document using a language model; and the at least one processor using the document and the query to train a retrieval model for a conversational bot.

一側面によると、前記生成する段階は、ドメイン(domain)に特化した検索モデルのために、前記ドメインに属するターゲット文書を対象にして前記クエリを生成してよい。 According to one aspect, the generating step may generate the query for a domain-specific search model by targeting target documents belonging to the domain.

他の側面によると、前記生成する段階は、サンプル文書とサンプルクエリからなるサンプルデータを利用してターゲット文書に対するプロンプト(prompt)を構成する段階、および前記プロンプトを前記言語モデルの入力とし、前記サンプルデータのパターンにそって前記ターゲット文書に対するクエリを生成する段階を含んでよい。 In another aspect, the generating step may include constructing a prompt for the target document using sample data consisting of a sample document and a sample query, and using the prompt as an input to the language model to generate a query for the target document according to a pattern in the sample data.

また他の側面によると、前記生成する段階は、第1サンプル文書と第1サンプルキーワードからなる第1サンプルデータを利用して、ターゲット文書に対する第1プロンプトを構成する段階、前記第1プロンプトを前記言語モデルの入力とし、前記第1サンプルデータのパターンにそって前記ターゲット文書に対するキーワードを生成する段階、第2サンプル文書、第2サンプルキーワード、およびサンプルクエリからなる第2サンプルデータを利用して、前記ターゲット文書のキーワードに対する第2プロンプトを構成する段階、および前記第2プロンプトを前記言語モデルの入力とし、前記ターゲット文書のキーワードに対して前記第2サンプルデータのパターンにそって前記ターゲット文書に対するクエリを生成する段階を含んでよい。 According to another aspect, the generating step may include constructing a first prompt for the target document using first sample data consisting of a first sample document and a first sample keyword, using the first prompt as an input to the language model and generating keywords for the target document according to a pattern of the first sample data, constructing a second prompt for keywords of the target document using second sample data consisting of a second sample document, a second sample keyword, and a sample query, and using the second prompt as an input to the language model and generating a query for the target document for keywords of the target document according to a pattern of the second sample data.

また他の側面によると、当該方法は、前記少なくとも1つのプロセッサが、ユーザが入力した質問に対して、前記検索モデルによって選定された文書を参照しながら前記質問に対する回答を提供する段階をさらに含んでよい。 In another aspect, the method may further include the at least one processor providing an answer to a question entered by a user by referring to documents selected by the search model.

さらに他の側面によると、前記提供する段階は、前記質問に対して、前記検索モデルによって計算された各文書のスコアを確率分布の形態に変換する段階、および前記確率分布のエントロピー(entropy)によって前記質問に対する回答の類型を決定する段階を含んでよい。 According to yet another aspect, the providing step may include converting the scores of each document calculated by the search model into the form of a probability distribution for the question, and determining a type of answer to the question based on the entropy of the probability distribution.

上述した方法を前記コンピュータ装置に実行させるためにコンピュータ読み取り可能な記録媒体に記録される、コンピュータプログラムを提供する。 A computer program is provided that is recorded on a computer-readable recording medium to cause the computer device to execute the above-mentioned method.

コンピュータ装置であって、メモリに含まれるコンピュータ読み取り可能な命令を実行するように構成された少なくとも1つのプロセッサを含み、前記少なくとも1つのプロセッサは、与えられた文書に対して、言語モデルを利用して前記文書で回答可能な少なくとも1つのクエリを生成する過程、および前記文書と前記クエリを、対話ボットのための検索モデルの学習に利用する過程を実行する、コンピュータ装置を提供する。 A computer device is provided that includes at least one processor configured to execute computer-readable instructions contained in a memory, the at least one processor executing, for a given document, a process of generating at least one query that can be answered by the document using a language model, and a process of using the document and the query to train a search model for a conversational bot.

本発明の実施形態によると、与えられたドメインの文書に基づいて、言語モデルを利用して当該ドメインに特化した大規模データを生成することにより、迅速かつ効率的に対話システムを生成することができる。 According to an embodiment of the present invention, a dialogue system can be generated quickly and efficiently by using a language model to generate large-scale data specific to a given domain based on documents in that domain.

本発明の実施形態によると、大規模言語モデルによって生成されたデータを検索モデル(retrieval model)の学習に利用し、検索モデルを中心とした対話システムを構築することにより、推論(inference)速度が速くて高度な対話ボットを生成することができる。 According to an embodiment of the present invention, data generated by a large-scale language model is used to train a retrieval model, and a dialogue system centered on the retrieval model is constructed, thereby making it possible to generate a highly advanced dialogue bot with a fast inference speed.

本発明の一実施形態における、ネットワーク環境の例を示した図である。FIG. 1 illustrates an example of a network environment in accordance with an embodiment of the present invention. 本発明の一実施形態における、コンピュータ装置の例を示したブロック図である。FIG. 2 is a block diagram illustrating an example of a computing device in accordance with an embodiment of the present invention. 本発明の一実施形態における、大規模言語モデルを利用した対話システムの生成体系を説明するための図である。FIG. 1 is a diagram for explaining a generation system of a dialogue system using a large-scale language model in one embodiment of the present invention. 本発明の一実施形態における、コンピュータ装置が実行することができる対話データ生成方法の例を示したフローチャートである。1 is a flowchart illustrating an example of a method for generating dialogue data that can be executed by a computer device in an embodiment of the present invention. 本発明の一実施形態における、プロンプトを利用したクエリデータ生成過程の一例を説明するためのフローチャートである。1 is a flow chart illustrating an example process for generating query data using a prompt in accordance with an embodiment of the present invention. 本発明の一実施形態における、クエリ生成方法の一例を説明するための図である。FIG. 2 is a diagram illustrating an example of a query generation method in an embodiment of the present invention. 本発明の一実施形態における、クエリ生成方法の一例を説明するための図である。FIG. 2 is a diagram illustrating an example of a query generation method in an embodiment of the present invention. は本発明の一実施形態における、クエリ生成方法の他の例を説明するための図である。11 is a diagram for explaining another example of a query generation method in one embodiment of the present invention. は本発明の一実施形態における、クエリ生成方法の他の例を説明するための図である。11 is a diagram for explaining another example of a query generation method in one embodiment of the present invention. 本発明の一実施形態における、ユーザの質問に対する回答を提供する過程の一例を説明するためのフローチャートである。4 is a flowchart illustrating an example of a process for providing an answer to a user's question in accordance with an embodiment of the present invention. 本発明の一実施形態における、回答の類型を分類する過程の一例を説明するための図である。FIG. 11 is a diagram for explaining an example of a process for classifying answer types in one embodiment of the present invention. 本発明の一実施形態における、回答の類型を分類する過程の一例を説明するための図である。FIG. 11 is a diagram for explaining an example of a process for classifying answer types in one embodiment of the present invention. 本発明の一実施形態における、ユーザの質問と関連のある文章を区別する表示する過程の一例を説明するための図である。11A to 11C are diagrams illustrating an example of a process for distinguishing and displaying sentences related to a user's question in an embodiment of the present invention.

以下、本発明の実施形態について、添付の図面を参照しながら詳しく説明する。 The following describes in detail an embodiment of the present invention with reference to the attached drawings.

本発明の実施形態は、ユーザの質問に対して適切な文書を参照しながら回答を提供する技術に関する。 An embodiment of the present invention relates to a technology that provides answers to user questions by referencing appropriate documents.

本明細書で具体的に開示される事項を含む実施形態は、ドメインに特化した対話システムを生成するために必要な対話データの収集過程を、大規模言語モデルを利用した自動化過程に置換することにより、対話システムを迅速かつ効率的に生成することができる。 Embodiments including those specifically disclosed in this specification can generate a dialogue system quickly and efficiently by replacing the process of collecting dialogue data required to generate a domain-specific dialogue system with an automated process that uses a large-scale language model.

本発明の実施形態に係る対話データ生成システムは、少なくとも1つのコンピュータ装置によって実現されてよく、本発明の実施形態に係る対話データ生成方法は、対話データ生成システムに含まれる少なくとも1つのコンピュータ装置によって実行されてよい。このとき、コンピュータ装置においては、本発明の一実施形態に係るコンピュータプログラムがインストールされて実行されてよく、コンピュータ装置は、実行されたコンピュータプログラムの制御に従って本発明の実施形態に係る対話データ生成方法を実行してよい。上述したコンピュータプログラムは、コンピュータ装置と結合して対話データ生成方法をコンピュータに実行させるためにコンピュータ読み取り可能な記録媒体に記録されてよい。 The dialogue data generation system according to the embodiment of the present invention may be realized by at least one computer device, and the dialogue data generation method according to the embodiment of the present invention may be executed by at least one computer device included in the dialogue data generation system. In this case, a computer program according to an embodiment of the present invention may be installed and executed in the computer device, and the computer device may execute the dialogue data generation method according to the embodiment of the present invention according to the control of the executed computer program. The above-mentioned computer program may be recorded on a computer-readable recording medium in combination with the computer device to cause the computer to execute the dialogue data generation method.

図1は、本発明の一実施形態における、ネットワーク環境の例を示した図である。図1のネットワーク環境は、複数の電子機器110、120、130、140、複数のサーバ150、160、およびネットワーク170を含む例を示している。このような図1は、発明の説明のための一例に過ぎず、電子機器の数やサーバの数が図1のように限定されることはない。また、図1のネットワーク環境は、本実施形態に適用可能な環境のうちの一例を説明したものに過ぎず、本実施形態に適用可能な環境が図1のネットワーク環境に限定されることはない。 Figure 1 is a diagram showing an example of a network environment in one embodiment of the present invention. The network environment in Figure 1 shows an example including multiple electronic devices 110, 120, 130, 140, multiple servers 150, 160, and a network 170. Figure 1 is merely an example for explaining the invention, and the number of electronic devices and the number of servers are not limited to those shown in Figure 1. Furthermore, the network environment in Figure 1 is merely an example of an environment applicable to this embodiment, and the environment applicable to this embodiment is not limited to the network environment in Figure 1.

複数の電子機器110、120、130、140は、コンピュータ装置によって実現される固定端末や移動端末であってよい。複数の電子機器110、120、130、140の例としては、スマートフォン、携帯電話、ナビゲーション、PC(personal computer)、ノート型PC、デジタル放送用端末、PDA(Personal Digital Assistant)、PMP(Portable Multimedia Player)、タブレットなどがある。一例として、図1では、電子機器110の例としてスマートフォンを示しているが、本発明の実施形態において、電子機器110は、実質的に無線または有線通信方式を利用し、ネットワーク170を介して他の電子機器120、130、140および/またはサーバ150、160と通信することができる多様な物理的なコンピュータ装置のうちの1つを意味してよい。 The electronic devices 110, 120, 130, and 140 may be fixed terminals or mobile terminals realized by computer devices. Examples of the electronic devices 110, 120, 130, and 140 include smartphones, mobile phones, navigation systems, personal computers (PCs), notebook PCs, digital broadcasting terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), and tablets. As an example, FIG. 1 shows a smartphone as an example of the electronic device 110, but in an embodiment of the present invention, the electronic device 110 may refer to one of various physical computer devices that can communicate with other electronic devices 120, 130, and 140 and/or servers 150 and 160 via a network 170 using a substantially wireless or wired communication method.

通信方式が限定されることはなく、ネットワーク170が含むことのできる通信網(一例として、移動通信網、有線インターネット、無線インターネット、放送網)を利用する通信方式だけではなく、機器間の近距離無線通信が含まれてもよい。例えば、ネットワーク170は、PAN(personal area network)、LAN(local area network)、CAN(campus area network)、MAN(metropolitan area network)、WAN(wide area network)、BBN(broadband network)、インターネットなどのネットワークのうちの1つ以上の任意のネットワークを含んでよい。さらに、ネットワーク170は、バスネットワーク、スターネットワーク、リングネットワーク、メッシュネットワーク、スター-バスネットワーク、ツリーまたは階層的ネットワークなどを含むネットワークトポロジのうちの任意の1つ以上を含んでもよいが、これらに限定されることはない。 The communication method is not limited, and may include not only a communication method using a communication network that the network 170 can include (for example, a mobile communication network, a wired Internet, a wireless Internet, or a broadcast network), but also short-range wireless communication between devices. For example, the network 170 may include any one or more of a personal area network (PAN), a local area network (LAN), a campus area network (CAN), a metropolitan area network (MAN), a wide area network (WAN), a broadband network (BBN), the Internet, and the like. Furthermore, the network 170 may include any one or more of a network topology including, but not limited to, a bus network, a star network, a ring network, a mesh network, a star-bus network, a tree or a hierarchical network.

サーバ150、160それぞれは、複数の電子機器110、120、130、140とネットワーク170を介して通信して命令、コード、ファイル、コンテンツ、サービスなどを提供する1つ以上のコンピュータ装置によって実現されてよい。例えば、サーバ150は、ネットワーク170を介して接続した複数の電子機器110、120、130、140にサービス(一例として、対話ボットサービス)を提供するシステムであってよい。 Each of the servers 150, 160 may be implemented by one or more computing devices that communicate with the multiple electronic devices 110, 120, 130, 140 via the network 170 to provide instructions, code, files, content, services, and the like. For example, the server 150 may be a system that provides a service (e.g., a conversational bot service) to the multiple electronic devices 110, 120, 130, 140 connected via the network 170.

図2は、本発明の一実施形態における、コンピュータ装置の例を示したブロック図である。上述した複数の電子機器110、120、130、140それぞれやサーバ150、160それぞれは、図2に示したコンピュータ装置200によって実現されてよい。例えば、本発明の実施形態に係る対話データ生成システムは、図2に示したコンピュータ装置200によって実現されてよい。 FIG. 2 is a block diagram showing an example of a computer device in one embodiment of the present invention. Each of the multiple electronic devices 110, 120, 130, and 140 and each of the servers 150 and 160 described above may be realized by the computer device 200 shown in FIG. 2. For example, the dialogue data generation system according to an embodiment of the present invention may be realized by the computer device 200 shown in FIG. 2.

このようなコンピュータ装置200は、図2に示すように、メモリ210、プロセッサ220、通信インタフェース230、および入力/出力インタフェース240を含んでよい。メモリ210は、コンピュータ読み取り可能な記録媒体であって、RAM(random access memory)、ROM(read only memory)、およびディスクドライブのような永続的大容量記録装置を含んでよい。ここで、ROMやディスクドライブのような永続的大容量記録装置は、メモリ210とは区分される別の永続的記録装置としてコンピュータ装置200に含まれてもよい。また、メモリ210には、オペレーティングシステムと、少なくとも1つのプログラムコードが記録されてよい。このようなソフトウェア構成要素は、メモリ210とは別のコンピュータ読み取り可能な記録媒体からメモリ210にロードされてよい。このような別のコンピュータ読み取り可能な記録媒体は、フロッピー(登録商標)ドライブ、ディスク、テープ、DVD/CD-ROMドライブ、メモリカードなどのコンピュータ読み取り可能な記録媒体を含んでよい。他の実施形態において、ソフトウェア構成要素は、コンピュータ読み取り可能な記録媒体ではない通信インタフェース230を通じてメモリ210にロードされてもよい。例えば、ソフトウェア構成要素は、ネットワーク170を介して受信されるファイルによってインストールされるコンピュータプログラムに基づいてコンピュータ装置200のメモリ210にロードされてよい。 Such a computer device 200 may include a memory 210, a processor 220, a communication interface 230, and an input/output interface 240, as shown in FIG. 2. The memory 210 is a computer-readable recording medium and may include a RAM (random access memory), a ROM (read only memory), and a permanent mass storage device such as a disk drive. Here, a permanent mass storage device such as a ROM or a disk drive may be included in the computer device 200 as a separate permanent storage device separate from the memory 210. In addition, the memory 210 may store an operating system and at least one program code. Such software components may be loaded into the memory 210 from a computer-readable recording medium separate from the memory 210. Such a separate computer-readable recording medium may include a computer-readable recording medium such as a floppy drive, a disk, a tape, a DVD/CD-ROM drive, or a memory card. In other embodiments, the software components may be loaded into the memory 210 through a communication interface 230 that is not a computer-readable recording medium. For example, the software components may be loaded into the memory 210 of the computer device 200 based on a computer program that is installed by a file received via the network 170.

プロセッサ220は、基本的な算術、ロジック、および入出力演算を実行することにより、コンピュータプログラムの命令を処理するように構成されてよい。命令は、メモリ210または通信インタフェース230によって、プロセッサ220に提供されてよい。例えば、プロセッサ220は、メモリ210のような記録装置に記録されたプログラムコードに従って受信される命令を実行するように構成されてよい。 The processor 220 may be configured to process computer program instructions by performing basic arithmetic, logic, and input/output operations. The instructions may be provided to the processor 220 by the memory 210 or the communication interface 230. For example, the processor 220 may be configured to execute instructions received according to program code recorded in a recording device such as the memory 210.

通信インタフェース230は、ネットワーク170を介してコンピュータ装置200が他の装置(一例として、上述した記録装置)と互いに通信するための機能を提供してよい。一例として、コンピュータ装置200のプロセッサ220がメモリ210のような記録装置に記録されたプログラムコードに従って生成した要求や命令、データ、ファイルなどが、通信インタフェース230の制御に従ってネットワーク170を介して他の装置に伝達されてよい。これとは逆に、他の装置からの信号や命令、データ、ファイルなどが、ネットワーク170を経てコンピュータ装置200の通信インタフェース230を通じてコンピュータ装置200に受信されてよい。通信インタフェース230を通じて受信された信号や命令、データなどは、プロセッサ220やメモリ210に伝達されてよく、ファイルなどは、コンピュータ装置200がさらに含むことのできる記録媒体(上述した永続的記録装置)に記録されてよい。 The communication interface 230 may provide a function for the computer device 200 to communicate with other devices (for example, the above-mentioned recording device) via the network 170. As an example, requests, commands, data, files, etc. generated by the processor 220 of the computer device 200 according to program code recorded in a recording device such as the memory 210 may be transmitted to other devices via the network 170 under the control of the communication interface 230. Conversely, signals, commands, data, files, etc. from other devices may be received by the computer device 200 through the communication interface 230 of the computer device 200 via the network 170. The signals, commands, data, etc. received through the communication interface 230 may be transmitted to the processor 220 or the memory 210, and the files, etc. may be recorded on a recording medium (the above-mentioned permanent recording device) that the computer device 200 may further include.

入力/出力インタフェース240は、入力/出力装置250とのインタフェースのための手段であってよい。例えば、入力装置は、マイク、キーボード、またはマウスなどの装置を含んでよく、出力装置は、ディスプレイ、スピーカのような装置を含んでよい。他の例として、入力/出力インタフェース240は、タッチスクリーンのように入力と出力のための機能が1つに統合された装置とのインタフェースのための手段であってもよい。入力/出力装置250は、コンピュータ装置200と1つの装置で構成されてもよい。 The input/output interface 240 may be a means for interfacing with the input/output device 250. For example, the input device may include devices such as a microphone, keyboard, or mouse, and the output device may include devices such as a display and a speaker. As another example, the input/output interface 240 may be a means for interfacing with a device that integrates functions for input and output into one, such as a touch screen. The input/output device 250 may be configured as a single device together with the computer device 200.

また、他の実施形態において、コンピュータ装置200は、図2の構成要素よりも少ないか多くの構成要素を含んでもよい。しかし、大部分の従来技術的構成要素を明確に図に示す必要はない。例えば、コンピュータ装置200は、上述した入力/出力装置250のうちの少なくとも一部を含むように実現されてもよいし、トランシーバ、データベースなどのような他の構成要素をさらに含んでもよい。 Also, in other embodiments, the computing device 200 may include fewer or more components than those of FIG. 2. However, most of the prior art components need not be explicitly shown in the figures. For example, the computing device 200 may be implemented to include at least some of the input/output devices 250 described above, and may further include other components such as a transceiver, a database, etc.

本実施形態は、ドメインに特化した対話ボットを生成するために大規模言語モデルを活用することで、当該ドメインの膨大なデータ収集問題を解決することができる。 This embodiment utilizes a large-scale language model to generate a domain-specific conversational bot, thereby solving the problem of collecting massive amounts of data for that domain.

本発明で使用される大規模言語モデルとは、膨大なデータを学習した言語モデルであって、Few-Shotサンプル(sample)が与えられるだけでタスクを適切に実行することができる自然語生成モデルを意味する。 The large-scale language model used in this invention refers to a language model that has been trained using a huge amount of data, and is a natural language generation model that can properly execute a task when only a few-shot samples are given.

言い換えれば、大規模言語モデルは自己回帰(autoregressive)モデルであり、Few-Shot学習などのような方式を利用することでファインチューニング(fine-tuning)を経なくても推論が可能な言語モデルであると言える。これは、既存の一般的な言語モデルに比べて10倍以上の媒介変数(例えば、1000億個以上の媒介変数など)を持つことができる。例えば、GPT-3(Generative Pre-trained Transformer 3)やHyperClova(登録商標)のような大規模言語モデルは、自然なプロンプト(prompt)によって制御が可能な優れたFew-Shot学習器であって、プロンプトによって少量のデータだけでもパターンを理解し、NLP問題を解決する能力であるインコンテキスト学習(in-context learning)が可能である。 In other words, a large-scale language model is an autoregressive model that can perform inference without fine-tuning by using methods such as few-shot learning. It can have more than 10 times the parameters (e.g., more than 100 billion parameters) compared to existing general language models. For example, large-scale language models such as GPT-3 (Generative Pretrained Transformer 3) and HyperClova (registered trademark) are excellent few-shot learners that can be controlled by natural prompts, and are capable of in-context learning, which is the ability to understand patterns even with a small amount of data through prompts and solve NLP problems.

本実施形態は、ドメインに特化した対話ボットを大規模言語モデルと検索モデルを中心にして設計する。言語モデル基盤の生成器(generator)と検索モデルを用いた文書基盤の対話システムとして、推論速度が速くて高度な対話ボットを生成することができる。 In this embodiment, a domain-specific dialogue bot is designed based on a large-scale language model and a search model. As a document-based dialogue system using a language model-based generator and a search model, a highly advanced dialogue bot with fast inference speed can be generated.

図3は、本発明の一実施形態における、大規模言語モデルを利用した対話システムの生成体系を説明するための図である。 Figure 3 is a diagram for explaining the generation system of a dialogue system using a large-scale language model in one embodiment of the present invention.

図3を参照すると、本実施形態において、大規模言語モデル310は、ドメインに特化した対話ボットの生成に必要なデータとして当該ドメインに適合するクエリデータ(query data)302を生成するためのバックボーンとして用いられる。 Referring to FIG. 3, in this embodiment, the large-scale language model 310 is used as a backbone for generating query data 302 that is appropriate for the domain and is required to generate a domain-specific conversational bot.

プロセッサ220は、特定のドメイン文書301、例えば、ホームページ内のウェプページが与えられた場合、当該文書内の内容に対して質疑回答(QA)が可能なチャットボットを生成するために大規模言語モデル310を用いることで、与えられた文書301から予想される質問を示すクエリデータ302を生成してよい。 Given a particular domain document 301, e.g., a web page within a home page, the processor 220 may generate query data 302 indicating questions that are anticipated from the given document 301 by using the large-scale language model 310 to generate a chatbot capable of question-and-answering (QA) on the content within the document.

プロセッサ220は、言語モデル310で生成されたクエリデータ302を学習データとし、対話ボットのための検索モデル320の学習に利用してよい。ドメインに適合するクエリデータ302を検索モデル320の学習に利用することにより、ドメインに特化したモデルを構成することができる。 The processor 220 may use the query data 302 generated by the language model 310 as training data to train a search model 320 for a dialogue bot. By using the query data 302 that matches the domain to train the search model 320, a model specialized for the domain can be constructed.

プロセッサ220は、ユーザが質問を入力すると、検索モデル320によってユーザの質問に対応する文書を参照しながら回答を提供してよい。 When a user inputs a question, the processor 220 may provide an answer by referencing documents that correspond to the user's question using the search model 320.

図4は、本発明の一実施形態における、コンピュータ装置が実行することができる対話データ生成方法の例を示したフローチャートである。 Figure 4 is a flowchart showing an example of a dialogue data generation method that can be executed by a computer device in one embodiment of the present invention.

本実施形態に係る対話データ生成方法は、上述したコンピュータ装置200によって実行されてよい。この場合、コンピュータ装置200のプロセッサ220は、メモリ210が含むオペレーティングシステムのコードと、少なくとも1つのプログラムのコードとによる制御命令(instruction)を実行するように実現されてよい。ここで、プロセッサ220は、コンピュータ装置200に記録されたコードが提供する制御命令に従ってコンピュータ装置200が図4の対話データ生成方法に含まれる段階410~段階430を実行するようにコンピュータ装置200を制御してよい。 The dialogue data generation method according to this embodiment may be executed by the computer device 200 described above. In this case, the processor 220 of the computer device 200 may be realized to execute control instructions according to the operating system code and at least one program code included in the memory 210. Here, the processor 220 may control the computer device 200 to execute steps 410 to 430 included in the dialogue data generation method of FIG. 4 according to the control instructions provided by the code recorded in the computer device 200.

図4を参照すると、段階410において、プロセッサ220は、大規模言語モデルを利用して、与えられたドメインのターゲット文書からクエリデータを生成してよい。プロセッサ220は、言語モデルの入力文となるプロンプトを利用して、ターゲット文書に対して予想される質問を生成してよい。プロセッサ220は、言語モデルの優れたデータ生成能力とインコンテキスト学習能力を利用して、モデル学習のためのデータを生成してよい。このように生成された質問と、当該質問を生成したターゲット文書(あるいは、ターゲット文書内に含まれる正解文句)とのペアが、QAモデルに対する学習データとして利用されてよい。 Referring to FIG. 4, in step 410, the processor 220 may use a large-scale language model to generate query data from target documents of a given domain. The processor 220 may use prompts that serve as input sentences for the language model to generate predicted questions for the target documents. The processor 220 may use the excellent data generation and in-context learning capabilities of the language model to generate data for model training. Pairs of the questions generated in this way and the target documents (or correct answer phrases contained in the target documents) that generated the questions may be used as training data for the QA model.

段階420において、プロセッサ220は、ターゲット文書とクエリデータを学習データとして、QAのための検索モデルの学習に利用してよい。プロセッサ220は、ドメインのターゲット文書と、当該ターゲット文書を対象とし、言語モデルで生成されたクエリデータとを、検索モデル320の学習に利用することにより、当該ドメインに対する対話モデルを構築してよい。 In step 420, the processor 220 may use the target documents and the query data as training data to train a search model for QA. The processor 220 may build a dialogue model for the domain by using the target documents of the domain and the query data generated by the language model for the target documents to train the search model 320.

段階430において、プロセッサ220は、ユーザが質問を入力すると、検索モデル320を利用して、ユーザの質問に対応する文書を参照しながら回答を提供してよい。プロセッサ220は、ユーザの質問に対応する文書によって回答フォーマッティング(formatting)または回答生成(generation)を実行してよい。言い換えれば、プロセッサ220は、ユーザの質問として検索された文書をフォーマッティングして回答として提供するか、当該文書を利用して回答を直接生成して提供してよい。 In step 430, when the user inputs a question, the processor 220 may use the search model 320 to provide an answer by referring to documents corresponding to the user's question. The processor 220 may perform answer formatting or answer generation according to the documents corresponding to the user's question. In other words, the processor 220 may format the documents searched for the user's question and provide them as an answer, or may directly generate and provide an answer using the documents.

図5は、本発明の一実施形態における、プロンプトを利用したクエリデータ生成過程の一例を説明するためのフローチャートである。 Figure 5 is a flowchart illustrating an example of a process for generating query data using a prompt in one embodiment of the present invention.

図5を参照すると、段階501において、プロセッサ220は、プロンプトに使用する原本データを選定してよい。 Referring to FIG. 5, in step 501, the processor 220 may select original data to use for the prompt.

プロセッサ220は、事前に定められた少なくとも1つ以上の文書(Document)と当該文書で回答可能な質問(Query)のペアを原本データとして利用してよい。予め定められた原本サンプルペアの他に別のデータセットが存在してもよく、実施形態によっては、データセット内から文書と質問からなる原本サンプルペアを選定してもよい。 The processor 220 may use at least one predefined pair of documents and queries that can be answered by the documents as original data. In addition to the predefined original sample pairs, another data set may exist, and in some embodiments, an original sample pair consisting of a document and a query may be selected from within the data set.

このとき、プロンプトは、少なくとも1つ以上の文書、当該文書で回答可能な質問の原本サンプルペア、ターゲット文書で構成されてよい。プロンプト構成の詳しい方法については、図6を参照しながら説明する。 In this case, the prompt may be composed of at least one document, a sample pair of original questions that can be answered by the document, and a target document. A detailed method for constructing the prompt will be described with reference to FIG. 6.

段階502において、プロセッサ220は、言語モデルの入力に該当するプロンプトを構成してよい。プロセッサ220は、段階501で選択された原本データを利用して言語モデルの入力プロンプトを構成してよい。プロセッサ220は、与えられたNLP問題の特性が適切に反映された専用プロンプトテンプレートを製作するようになるが、このとき、プロンプトテンプレートにはタスクの定義やメタ情報が含まれてよい。言い換えれば、プロセッサ220は、データセットから選択された原本データを利用して自然語形態のプロンプトを構成するが、このとき、プロンプトは、言語モデルの理解が可能な形式で製作されて言語モデルの入力として与えられる。プロセッサ220は、原本データがラベル付きデータである場合、ラベル情報とともに入力文が生成されるようにプロンプトを設計してよい。プロンプトの形式自体は多様に構成されてよいが、一例として、プロンプトは、文書(例えば、ウェプページなど)と当該文書で回答可能なクエリがサンプルとして構成されてよい。 In step 502, the processor 220 may configure a prompt corresponding to the input of the language model. The processor 220 may configure an input prompt of the language model using the original data selected in step 501. The processor 220 may create a dedicated prompt template that appropriately reflects the characteristics of a given NLP problem, and the prompt template may include a task definition and meta information. In other words, the processor 220 uses the original data selected from the dataset to configure a prompt in a natural language form, and the prompt is created in a format that can be understood by the language model and is provided as an input of the language model. If the original data is labeled data, the processor 220 may design the prompt so that an input sentence is generated together with label information. The format of the prompt itself may be configured in various ways. As an example, the prompt may be configured to include a document (e.g., a web page) and a query that can be answered by the document as a sample.

プロセッサ220は、与えられたタスクTに対して、データセットからサンプリングされた原本データである文書サンプルと、与えられたタスクTの特性を考慮したプロンプトテンプレートを組み合わせて、言語モデルの入力プロンプトを構成してよい。 For a given task T, the processor 220 may construct an input prompt for the language model by combining a document sample, which is original data sampled from a dataset, with a prompt template that takes into account the characteristics of the given task T.

段階503において、プロセッサ220は、段階502で構成されたプロンプトを言語モデルに入力し、言語モデルから自然語形態のクエリデータを生成してよい。言い換えれば、プロセッサ220は、プロンプト入力文を言語モデルに入力した後、言語モデルの生成あるいは完成機能による言語生成結果としてクエリデータを取得してよい。プロセッサ220は、プロンプトを言語モデルに入力し、言語モデルでプロンプトに含まれたサンプルの自然語パターンを分析することで、当該パターンを有する新たな結果を取得することができる。 In step 503, the processor 220 may input the prompt constructed in step 502 into a language model and generate query data in the form of natural language from the language model. In other words, the processor 220 may input the prompt input sentence into the language model and then obtain the query data as a language generation result by the generation or completion function of the language model. The processor 220 may input the prompt into the language model and obtain a new result having the pattern by analyzing a sample natural language pattern included in the prompt in the language model.

図6および図7は、本発明の一実施形態における、クエリ生成方法の一例を説明するための図である。 Figures 6 and 7 are diagrams illustrating an example of a query generation method in one embodiment of the present invention.

図6を参照すると、プロセッサ220は、原本データに選定された文書と当該文書の内容に回答可能な少なくとも1つのクエリからなるサンプルデータペアを利用してプロンプト入力文610を構成してよい。 Referring to FIG. 6, the processor 220 may construct a prompt input sentence 610 using a sample data pair consisting of a document selected as the original data and at least one query that can be answered based on the contents of the document.

プロセッサ220は、少なくとも1つのサンプルデータペアとターゲット文書で構成されたプロンプト入力文610を言語モデルの入力とし、言語モデルがターゲット文書に対する質問を生成するようにしてよい。すなわち、言語モデルの完成機能によって、ターゲット文書で回答可能な少なくとも1つのクエリを生成してよい。 The processor 220 may take the prompt input sentence 610, which is composed of at least one sample data pair and the target document, as input to the language model, and cause the language model to generate a question for the target document. That is, the completion function of the language model may generate at least one query that can be answered by the target document.

一例として、プロセッサ220は、サンプルデータペアで構成されたプロンプト入力文610を利用したクエリ生成を繰り返すことにより、ターゲット文書に対して事前に定められた一定の件数のクエリを生成してよい。実施形態によっては、新しいクエリがこれ以上生成されない飽和状態に至るまで、ターゲット文書に対するクエリを生成してよい。 As an example, the processor 220 may generate a predetermined number of queries for the target document by repeating the query generation using the prompt input sentences 610 composed of sample data pairs. In some embodiments, queries for the target document may be generated until a saturation state is reached where no new queries are generated.

プロセッサ220は、[サンプル文書+クエリ]形態のサンプルデータペアと[ターゲット文書]で構成されたプロンプト610を利用して、プロンプトに含まれるサンプルデータのパターンにそってターゲット文書に対するクエリを生成してよい。 The processor 220 may use a prompt 610 consisting of a sample data pair in the form of a [sample document + query] and a [target document] to generate a query for the target document according to the pattern of the sample data included in the prompt.

例えば、図7に示すように、プロセッサ220は、ターゲット文書701が与えられる場合、プロンプト入力文610としてサンプルデータとターゲット文書701を言語モデルに入力し、サンプルデータのパターンにそってターゲット文書701から予想されるクエリデータ702を生成してよい。 For example, as shown in FIG. 7, when a target document 701 is given, the processor 220 may input sample data and the target document 701 into a language model as a prompt input sentence 610, and generate query data 702 predicted from the target document 701 according to the pattern of the sample data.

言い換えれば、プロセッサ220は、文書と文書から導出されるクエリをサンプルとして提供し、サンプルのパターンにそってターゲット文書に対するクエリを生成してよい。 In other words, the processor 220 may provide documents and queries derived from the documents as samples and generate queries for the target documents according to the patterns of the samples.

図8および図9は、本発明の一実施形態における、クエリ生成方法の他の例を説明するための図である。 Figures 8 and 9 are diagrams illustrating another example of a query generation method in one embodiment of the present invention.

プロセッサ220は、言語モデルで生成したクエリの品質を高めるために、キーワードに基づいてクエリを生成する方法を適用してよい。 The processor 220 may apply a method for generating queries based on keywords to improve the quality of queries generated by the language model.

一例として、プロセッサ220は、2つのプロンプトを段階的に利用することにより、最初の段階では文書から当該文書と関連するキーワードを抽出した後、次の段階では抽出したキーワードに対するクエリを生成するようにしてよい。追加でキーワードを利用する場合、文書からより多様なクエリを生成することができ、質問の範囲(coverage)が広がるようになる。 As an example, the processor 220 may use two prompts in a stepwise manner, first extracting keywords related to the document from the document, and then generating queries for the extracted keywords in a stepwise manner. When additional keywords are used, more diverse queries can be generated from the document, and the coverage of questions can be expanded.

図8を参照すると、プロセッサ220は、原本データに選定された文書と当該文書に対するキーワードからなる第1サンプルデータペアを利用して、第1プロンプト入力文810を構成してよい。 Referring to FIG. 8, the processor 220 may construct a first prompt input sentence 810 using a first sample data pair consisting of a document selected as the original data and a keyword for the document.

プロセッサ220は、キーワード基盤の少なくとも1つの第1サンプルデータペアとターゲット文書で構成された第1プロンプト入力文810を言語モデルに入力し、言語モデルの生成機能によってターゲット文書に対する少なくても1つのキーワードを生成してよい。 The processor 220 may input a first prompt input sentence 810 consisting of at least one keyword-based first sample data pair and a target document into a language model, and generate at least one keyword for the target document through a generation function of the language model.

次に、プロセッサ220は、原本データに選定された文書、当該文書から抽出したキーワード、さらに当該文書の内容に回答可能なクエリからなる第2サンプルデータペアを利用して、第2プロンプト入力文820を構成してよい。 Next, the processor 220 may construct a second prompt input sentence 820 using a second sample data pair consisting of the document selected as the original data, keywords extracted from the document, and a query that can be answered based on the contents of the document.

このとき、第2プロンプト入力文820には、第1プロンプト入力文810を利用した言語モデルで生成された、ターゲット文書に対するキーワードが含まれてよい。 At this time, the second prompt input sentence 820 may include keywords for the target document generated by a language model using the first prompt input sentence 810.

プロセッサ220は、キーワード基盤の少なくとも1つの第2サンプルデータペア、ターゲット文書、さらにターゲット文書に対するキーワードで構成された第2プロンプト入力文820を言語モデルに入力し、言語モデルの完成機能によってターゲット文書で回答可能な少なくとも1つのクエリを生成してよい。 The processor 220 may input at least one keyword-based second sample data pair, the target document, and a second prompt input sentence 820 composed of keywords for the target document into the language model, and generate at least one query that can be answered by the target document through a completion function of the language model.

プロセッサ220は、[サンプル文書+キーワード]からなる第1サンプルデータペアと[ターゲット文書]で構成された一次プロンプトを利用して一次プロンプトのパターンにそってターゲット文書に対するキーワードを生成した後、各キーワードに対して、[サンプル文書+キーワード+クエリ]からなる第2サンプルデータペアと[ターゲット文書+キーワード]で構成された二次プロンプトを利用して二次プロンプトのパターンにそってターゲット文書に対するクエリを生成してよい。 The processor 220 may generate keywords for the target document according to the pattern of the primary prompt using a first sample data pair consisting of [sample document + keyword] and a primary prompt consisting of [target document], and then generate a query for the target document for each keyword according to the pattern of the secondary prompt using a second sample data pair consisting of [sample document + keyword + query] and a secondary prompt consisting of [target document + keyword].

例えば、図9に示すように、プロセッサ220は、ターゲット文書901が与えられる場合、先ず、第1プロンプト入力文810を言語モデルに入力し、サンプルデータのパターンにそってターゲット文書901でクエリとして登場し得るキーワード90を生成してよい。 For example, as shown in FIG. 9, when a target document 901 is given, the processor 220 may first input the first prompt input sentence 810 into the language model and generate keywords 90 that may appear as a query in the target document 901 according to the patterns of the sample data.

この後、プロセッサ220は、キーワード90が含まれた第2プロンプト入力文820を言語モデルに入力し、サンプルデータのパターンにそって、キーワード90に基づいてターゲット文書901に対して予想されるクエリデータ902を生成してよい。 The processor 220 may then input the second prompt input sentence 820 containing the keyword 90 into the language model, and generate predicted query data 902 for the target document 901 based on the keyword 90 in accordance with the pattern of the sample data.

プロセッサ220は、ターゲット文書901に対して少なくとも1つのキーワード90を抽出してよく、キーワード90それぞれに該当するクエリデータ902を生成してよい。このように、キーワードを利用すれば、各キーワードと関連があり、キーワードに該当する意図を持つクエリデータが均一に生成されるようになる。このように、多様なデータを学習に利用する場合、検索モデルの性能は高まるであろう。 The processor 220 may extract at least one keyword 90 for the target document 901 and generate query data 902 corresponding to each keyword 90. In this way, by using keywords, query data that is related to each keyword and has an intent corresponding to the keyword is uniformly generated. In this way, when diverse data is used for learning, the performance of the search model will be improved.

したがって、プロセッサ220は、文書、文書から抽出したキーワード、およびキーワードが含まれたクエリをサンプルとして提供し、サンプルのパターンにそって、ターゲット文書から抽出したキーワードに基づいてターゲット文書に対するクエリを生成することができる。 Thus, the processor 220 can provide a document, keywords extracted from the document, and a query containing the keywords as samples, and generate a query for the target document based on the keywords extracted from the target document according to the pattern of the samples.

プロセッサ220は、ターゲット文書とターゲット文書に対して生成されたクエリからなるデータを対話ボットのためのモデル学習に利用してよい。 The processor 220 may use the data consisting of the target documents and queries generated for the target documents to train a model for the dialogue bot.

検索モデル320の場合、一例として、ポリエンコーダ(poly encoder)構造を適用してよく、クエリから文書を探索して回答を提供してよい。検索モデル320は、クロスエンコーダ(cross encoder)構造のリランカー(reranker)を含んでよく、これによってクエリに対応する文書をリランキング(reranking)して回答を提供してよい。 In the case of the search model 320, for example, a polyencoder structure may be applied to search documents from a query to provide an answer. The search model 320 may include a reranker with a cross encoder structure to rerank documents corresponding to the query to provide an answer.

検索モデル320の学習には、該当するドメインに対する各文書と、当該文書に対して生成されたクエリとのペア(Document、Query)が利用されてよい。検索モデル320は、ラベリングされたデータセットを利用した事前トレーニング(pre-training)が適用されたモデルまたはラベリングされていない多様な言語特性のコーパス(corpus)から教師なし(unsupervised)検索モデル320によって事前に学習されたモデルを、本発明の実施形態を利用して生成されたデータを利用してファインチューニング(find-tuning)することによって生成してよい。 The search model 320 may be trained using pairs (Document, Query) of each document for the corresponding domain and a query generated for the document. The search model 320 may be generated by fine-tuning a model pre-trained using a labeled dataset or a model pre-trained by an unsupervised search model 320 from an unlabeled corpus of various linguistic features using data generated using an embodiment of the present invention.

検索モデル320をファインチューニングする過程において、ターゲット文書が属するドメインに特化した類義語および同義語情報を利用したデータ拡張(data augmentation)技法が使用されてよい。学習バッチの質問に対して一定の確率で各単語を類義語や同義語に置換して学習させることにより、一定のデータ拡張効果を期待することができる。例えば、「博士後の研究員」をポスドク、Post-doc、ポストドクターなどに置換したり、「OCR」を光学文字認識、オーシーアールなどに置換したりして学習させてよい。 In the process of fine-tuning the search model 320, a data augmentation technique using synonym and homonym information specific to the domain to which the target document belongs may be used. A certain data augmentation effect can be expected by replacing each word with a synonym or homonym with a certain probability for the questions in the training batch and training the model. For example, "postdoctoral researcher" may be replaced with "post-doc," "postdoctoral researcher," etc., and "OCR" may be replaced with "optical character recognition," OCR, etc., and training may be performed.

検索モデル320の学習性能を改善するために、データ拡張技法の他にも、推論入力から単語をルール(rule)基盤に置換する方法を利用することも可能である。 In addition to data augmentation techniques, a rule-based replacement method for words from the inference input can also be used to improve the learning performance of the search model 320.

図10は、本発明の一実施形態における、ユーザの質問に対する回答を提供する過程の一例を説明するためのフローチャートである。 Figure 10 is a flowchart illustrating an example of a process for providing an answer to a user's question in one embodiment of the present invention.

図10を参照すると、段階1001において、プロセッサ220は、検索モデル320によってユーザの質問に対する各文書のスコアを計算してよい。プロセッサ220は、検索モデル320を利用して、ユーザの質問に対して回答内容が含まれる文書を探索してランク付けを実行してよい。プロセッサ220は、ユーザの質問に該当する文章と文書の類似度を測定することによって各文書のスコアを計算してよい。 Referring to FIG. 10, in step 1001, the processor 220 may calculate a score for each document for the user's question using the search model 320. The processor 220 may use the search model 320 to search for and rank documents that contain answers to the user's question. The processor 220 may calculate a score for each document by measuring the similarity between the document and a sentence that corresponds to the user's question.

段階1002において、プロセッサ220は、検索モデル320によって計算された文書のスコアを確率分布の形態に変換してよい。一例として、プロセッサ220は、ソフトマックス(softmax)関数を利用して、検索モデル320の文書スコアを確率分布の形態に変換してよい。 In step 1002, the processor 220 may convert the document scores calculated by the search model 320 into a form of probability distribution. As an example, the processor 220 may use a softmax function to convert the document scores of the search model 320 into a form of probability distribution.

段階1003において、プロセッサ220は、文書スコアの確率分布によってユーザの質問に対する回答の類型を決定してよい。プロセッサ220は、ユーザの質問に対して、検索モデル320によるランキングに基づいて選定された少なくとも1つの文書をフォーマッティングして回答として提供してよい。 In step 1003, the processor 220 may determine a type of answer to the user's question based on the probability distribution of the document scores. The processor 220 may format at least one document selected based on the ranking by the search model 320 and provide it as an answer to the user's question.

回答として提供される文書の件数は質問によって異なってよく、回答の類型ごとに文書の件数が定義されてよい。文書スコアを確率分布の形態に変換したとき、質問に対する関連文書のうちで1位が確実なケースは、スコア確率分布のエントロピー(entropy)が0に近く、関連文書が多いほどエントロピーが増加する。また、関連文書が探索されない質問の場合は、均一な(uniform)分布を帯びた傾向性を有する。 The number of documents provided as answers may vary depending on the question, and the number of documents may be defined for each type of answer. When document scores are converted into a probability distribution, in cases where a document is definitely ranked first among the related documents for a question, the entropy of the score probability distribution is close to 0, and the entropy increases as the number of related documents increases. In addition, questions for which related documents are not searched for tend to have a uniform distribution.

このような傾向性により、スコア確率分布のエントロピーに基づいて閾値(thresholding)を設定して回答の類型を分類してよい。 Based on this tendency, a threshold may be set based on the entropy of the score probability distribution to classify the answer type.

例えば、図11に示すように、スコア確率分布のエントロピーが0に近い特定の閾値以下(例えば、0.3以下)である場合は、1位(top1)が確実なケース1に区分し、エントロピーが閾値よりも大きくて1よりも小さい場合(例えば0.4~1の場合)は、1位から3位の文書がすべて有用なケース2に区分し、エントロピーが2以上の場合は、関連文書が1つもないケース3に区分して、回答の類型を3つのケースに分類してよい。他の例として、回答の類型を分類するための閾値を0.1と1.75を基準に設定してよい。スコア確率分布のエントロピー(E)が0≦E<0.1の場合はケース1に区分し、0.1≦E<1.75の場合はケース2に区分し、E≧1.75の場合はケース3に区分してよい。 For example, as shown in FIG. 11, when the entropy of the score probability distribution is equal to or less than a certain threshold close to 0 (e.g., equal to or less than 0.3), the answer type may be classified into three cases: case 1 where the top 1 (top1) is certain; case 2 where the entropy is greater than the threshold and less than 1 (e.g., 0.4 to 1), where the documents ranked 1st to 3rd are all useful; and case 3 where the entropy is 2 or greater, where there are no related documents. As another example, the threshold for classifying the answer type may be set to 0.1 and 1.75 as the references. When the entropy (E) of the score probability distribution is 0≦E<0.1, the answer may be classified into case 1; when it is 0.1≦E<1.75, the answer may be classified into case 2; and when it is E≧1.75, the answer may be classified into case 3.

図12に示すように、プロセッサ220は、「ランプの色」に関する質問に対して、文書スコア確率分布のエントロピーがケース2と示される場合、文書スコアを基準にして上位3件の文書を選定して回答を提供してよい。ランプの色の内容が含まれる文書として、赤色、黄色、緑色についての詳細文書が類似スコアとして探索された場合、閾値によって3つの文書すべてを回答として活用してよい。このとき、ユーザの質問に対する回答として先ずは3つの文書に対するタイトルを示した後、ユーザが特定の文書を選択すれば、選択された文書の詳細内容が表示されるようにしてよい。一方、プロセッサ220は、「インターン優待条件」に関する質問に対して、文書スコア確率分布のエントロピーがケース1と示される場合、文書スコアを基準にして上位1件の文書を選定して回答を提供してよい。インターン優待条件の内容が含まれる最高スコアの文書1つを、当該質問に対する回答として示してよい。 As shown in FIG. 12, when the entropy of the document score probability distribution is indicated as case 2 for a question about "lamp color", the processor 220 may select the top three documents based on the document score to provide an answer. When detailed documents about red, yellow, and green are searched for as documents containing the content of lamp colors, with similar scores, all three documents may be used as an answer depending on a threshold value. In this case, the titles of the three documents may be displayed as an answer to the user's question, and then, if the user selects a specific document, the detailed content of the selected document may be displayed. On the other hand, when the entropy of the document score probability distribution is indicated as case 1 for a question about "internship preferential treatment conditions", the processor 220 may select the top one document based on the document score to provide an answer. The highest-scoring document containing the content of internship preferential treatment conditions may be displayed as an answer to the question.

プロセッサ220は、回答として提供された文書内のうちでユーザの質問と関連のある文章を、他の文章と区別して示してよい。例えば、図13に示すように、回答結果として提供された文書1310の内容のうちのどの部分がユーザの質問に対する回答内容に該当するかを、ハイライティング(highlighting)1301によって表示してよい。 The processor 220 may distinguish sentences in the document provided as an answer that are relevant to the user's question from other sentences. For example, as shown in FIG. 13, highlighting 1301 may be used to indicate which part of the content of the document 1310 provided as an answer corresponds to the answer to the user's question.

文書内のユーザの質問に該当する文章をハイライティングするためには、文書に含まれる各文章に対して、当該文章を回答とする質問を生成し、これを検索モデルの学習のためのデータとして活用してよい。言い換えれば、プロセッサ220は、ターゲット文書内の各文章に対して、[サンプル文章+クエリ]と[ターゲット文章]で構成されたプロンプトを利用して、プロンプトのパターンにそってターゲット文章に対するクエリを生成してよく、[ターゲット文章+クエリ]からなるデータペアを検索モデルの学習に利用し、文書内からユーザの質問に対する回答文章を探索してハイライティング表示してよい。 To highlight sentences in a document that correspond to a user's question, a question may be generated for each sentence in the document that has the sentence as an answer, and this may be used as data for training a search model. In other words, the processor 220 may use a prompt consisting of [sample sentence + query] and [target sentence] for each sentence in the target document to generate a query for the target sentence according to the pattern of the prompt, and may use a data pair consisting of [target sentence + query] to train a search model, and search for sentences that answer the user's question within the document and display them as highlighted sentences.

プロセッサ220は、文書内の回答文章のハイライティングのために、文章と当該文章を回答とするクエリをサンプルとしてターゲット文章に対するクエリを生成するにあたり、クエリ生成の品質を高めるために、クエリ生成に先立ってターゲット文章が回答可能な文章であるかをフィルタリングするロジックを適用してよい。例えば、ターゲット文書のタイトルや当該文書内の他の文章などを考慮して、ターゲット文章をフィルタリングしてよい。言い換えれば、文書のタイトルから外れた文章、文書内の他の文章とは形式が異なる文章などをクエリ生成対象から除外してよい。 When the processor 220 generates a query for a target sentence using a sample sentence and a query that uses the sentence as an answer for highlighting answer sentences in a document, the processor 220 may apply logic to filter whether the target sentence is an answerable sentence prior to query generation in order to improve the quality of query generation. For example, the target sentence may be filtered taking into consideration the title of the target document and other sentences in the document. In other words, sentences that are outside the title of the document or have a different format from other sentences in the document may be excluded from query generation.

本実施形態では、文書基盤の対話ボットにTOD(Task Oriented Dialog)を結合することで、問い返しや必要な情報クエリなどの能動的な会話はもちろん、APIコールによる実際のユーザ要請の処理などのより高度なサービスを提供することができる。上述した対話システムがTODと結合するようになれば、適切な回答をユーザに提供できると同時に、ユーザの暗黙的な要求事項を把握し、これを先制的に問いて解決するという能動的な対話システムを構築することができる。 In this embodiment, by combining a document-based dialogue bot with a Task Oriented Dialog (TOD), it is possible to provide not only active conversations such as questions and queries for necessary information, but also more advanced services such as processing actual user requests through API calls. If the dialogue system described above can be combined with a TOD, it is possible to build an active dialogue system that can provide appropriate answers to users while at the same time grasping the user's implicit requirements and proactively asking about them to resolve them.

このように、本発明の実施形態によると、与えられたドメインの文書に基づいて、言語モデルを利用して当該ドメインに特化した大規模データを生成することにより、迅速かつ効率的に対話システムを生成することができる。本発明の実施形態によると、大規模言語モデルで生成されたデータを検索モデル(retrieval model)の学習に利用し、検索モデルを中心にした対話システムを構築することにより、推論(inference)速度が早くて高度な対話ボットを生成することができる。 In this way, according to an embodiment of the present invention, a dialogue system can be generated quickly and efficiently by using a language model to generate large-scale data specialized for a given domain based on documents in that domain. According to an embodiment of the present invention, data generated by a large-scale language model is used to train a retrieval model, and a dialogue system centered on the retrieval model is constructed, thereby generating a highly advanced dialogue bot with a high inference speed.

上述した装置は、ハードウェア構成要素、ソフトウェア構成要素、および/またはハードウェア構成要素とソフトウェア構成要素との組み合わせによって実現されてよい。例えば、実施形態で説明された装置および構成要素は、プロセッサ、コントローラ、ALU(arithmetic logic unit)、デジタル信号プロセッサ、マイクロコンピュータ、FPGA(field programmable gate array)、PLU(programmable logic unit)、マイクロプロセッサ、または命令を実行して応答することができる様々な装置のように、1つ以上の汎用コンピュータまたは特殊目的コンピュータを利用して実現されてよい。処理装置は、オペレーティングシステム(OS)およびOS上で実行される1つ以上のソフトウェアアプリケーションを実行してよい。また、処理装置は、ソフトウェアの実行に応答し、データにアクセスし、データを記録、操作、処理、および生成してもよい。理解の便宜のために、1つの処理装置が使用されるとして説明される場合もあるが、当業者であれば、処理装置が複数個の処理要素および/または複数種類の処理要素を含んでもよいことが理解できるであろう。例えば、処理装置は、複数個のプロセッサまたは1つのプロセッサおよび1つのコントローラを含んでよい。また、並列プロセッサのような、他の処理構成も可能である。 The above-described devices may be realized by hardware components, software components, and/or a combination of hardware and software components. For example, the devices and components described in the embodiments may be realized using one or more general-purpose or special-purpose computers, such as a processor, a controller, an arithmetic logic unit (ALU), a digital signal processor, a microcomputer, a field programmable gate array (FPGA), a programmable logic unit (PLU), a microprocessor, or various devices capable of executing and responding to instructions. The processing device may execute an operating system (OS) and one or more software applications that run on the OS. The processing device may also respond to the execution of the software and access, record, manipulate, process, and generate data. For ease of understanding, the description may be given as if one processing device is used, but one skilled in the art will understand that the processing device may include multiple processing elements and/or multiple types of processing elements. For example, a processing unit may include multiple processors or one processor and one controller. Other processing configurations, such as parallel processors, are also possible.

ソフトウェアは、コンピュータプログラム、コード、命令、またはこれらのうちの1つ以上の組み合わせを含んでもよく、思うままに動作するように処理装置を構成したり、独立的または集合的に処理装置に命令したりしてよい。ソフトウェアおよび/またはデータは、処理装置に基づいて解釈されたり、処理装置に命令またはデータを提供したりするために、いかなる種類の機械、コンポーネント、物理装置、コンピュータ記録媒体または装置に具現化されてよい。ソフトウェアは、ネットワークによって接続されたコンピュータシステム上に分散され、分散された状態で記録されても実行されてもよい。ソフトウェアおよびデータは、1つ以上のコンピュータ読み取り可能な記録媒体に記録されてよい。 The software may include computer programs, codes, instructions, or a combination of one or more of these, and may configure or instruct the processing device to operate as desired, either independently or collectively. The software and/or data may be embodied in any type of machine, component, physical device, computer storage medium, or device to be interpreted by or provide instructions or data to the processing device. The software may be distributed and stored or executed in a distributed manner on computer systems connected by a network. The software and data may be stored on one or more computer-readable storage media.

実施形態に係る方法は、多様なコンピュータ手段によって実行可能なプログラム命令の形態で実現されてコンピュータ読み取り可能な媒体に記録されてよい。ここで、媒体は、コンピュータ実行可能なプログラムを継続して記録するものであっても、実行またはダウンロードのために一時記録するものであってもよい。また、媒体は、単一または複数のハードウェアが結合した形態の多様な記録手段または格納手段であってよく、あるコンピュータシステムに直接接続する媒体に限定されることはなく、ネットワーク上に分散して存在するものであってもよい。媒体の例としては、ハードディスク、フロッピー(登録商標)ディスク、および磁気テープのような磁気媒体、CD-ROMおよびDVDのような光媒体、フロプティカルディスク(floptical disk)のような光磁気媒体、およびROM、RAM、フラッシュメモリなどを含み、プログラム命令が記録されるように構成されたものであってよい。また、媒体の他の例として、アプリケーションを配布するアプリケーションストアやその他の多様なソフトウェアを供給または配布するサイト、サーバなどで管理する記録媒体または格納媒体が挙げられる。 The method according to the embodiment may be realized in the form of program instructions executable by various computer means and recorded on a computer-readable medium. Here, the medium may be one that continuously records the computer-executable program or one that temporarily records it for execution or download. The medium may be one of various recording means or storage means in the form of a single or multiple hardware combined, and is not limited to a medium directly connected to a certain computer system, but may be one that is distributed on a network. Examples of the medium include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, and ROMs, RAMs, flash memories, etc., configured to record program instructions. Other examples of the medium include recording media or storage media managed by application stores that distribute applications, or sites, servers, etc. that supply or distribute various other software.

以上のように、実施形態を、限定された実施形態および図面に基づいて説明したが、当業者であれば、上述した記載から多様な修正および変形が可能であろう。例えば、説明された技術が、説明された方法とは異なる順序で実行されたり、かつ/あるいは、説明されたシステム、構造、装置、回路などの構成要素が、説明された方法とは異なる形態で結合されたりまたは組み合わされたり、他の構成要素または均等物によって代替されたり置換されたとしても、適切な結果を達成することができる。 Although the embodiments have been described above based on limited embodiments and drawings, those skilled in the art will appreciate that various modifications and variations may be made from the above description. For example, the described techniques may be performed in an order different from that described, and/or the components of the described systems, structures, devices, circuits, etc. may be combined or combined in a manner different from that described, or may be replaced or substituted by other components or equivalents, and still achieve suitable results.

したがって、異なる実施形態であっても、特許請求の範囲と均等なものであれば、添付の特許請求の範囲に属する。 Therefore, different embodiments that are equivalent to the claims are within the scope of the appended claims.

301:ドメイン文書
302:クエリデータ
310:大規模言語モデル
320:検索モデル
301: Domain documents 302: Query data 310: Large-scale language model 320: Search model

Claims (11)

言語モデル及び検索モデルを用いて対話システムを生成するためにコンピュータ装置で実行される方法であって、
当該方法は、
前記コンピュータ装置のプロセッサが、特定のドメインに属する文書に対して、前記言語モデルを利用することにより、前記文書に対して予想される質問としてクエリを生成する段階と、
前記プロセッサが、前記文書と前記クエリとのペアからなる学習データを利用して、対話ボットのためのQAモデルを構築するように検索モデルを学習する段階と、
前記プロセッサが、前記検索モデルにユーザの質問が入力されると、前記ユーザの質問に対する回答内容が含まれる文書を選定し、前記ユーザの質問に対する回答を提供する段階と、
を含む、方法。
1. A method implemented on a computer device for generating a dialogue system using a language model and a retrieval model, comprising:
The method comprises:
A processor of the computer device generates queries as expected questions for documents belonging to a particular domain by utilizing the language model;
The processor uses training data consisting of pairs of the document and the query to train a search model to construct a QA model for a conversational bot;
a step of, when a user's question is input to the search model, the processor selecting documents including an answer to the user's question and providing the answer to the user's question;
A method comprising:
前記回答を提供する段階は、前記プロセッサが、前記検索モデルを利用して前記回答内容が含まれる文書を探索し、前記ユーザの質問に該当する文章と前記回答内容が含まれる文書との類似度を測定することにより、各文書の文書スコアを計算し、該文書スコアに基づいて、前記回答内容が含まれる文書を選定することを含むこと
を特徴とする、請求項に記載の方法。
2. The method of claim 1, wherein the step of providing the answer includes the processor searching for documents containing the answer content using the search model, calculating a document score for each document by measuring a similarity between a sentence corresponding to the user's question and the document containing the answer content, and selecting the document containing the answer content based on the document score .
前記生成する段階は、
サンプル文書とサンプルクエリからなるサンプルデータを利用して、ターゲット文書に対するプロンプトを構成する段階、および
前記プロンプトを前記言語モデルの入力とし、前記サンプルデータのパターンにそって前記ターゲット文書に対するクエリを生成する段階
を含む、請求項に記載の方法。
The generating step includes:
3. The method of claim 2, further comprising: constructing prompts for target documents using sample data consisting of sample documents and sample queries ; and using the prompts as input to the language model to generate queries for the target documents according to patterns in the sample data.
前記生成する段階は、
第1サンプル文書と第1サンプルキーワードからなる第1サンプルデータを利用して、ターゲット文書に対する第1プロンプトを構成する段階、
前記第1プロンプトを前記言語モデルの入力とし、前記第1サンプルデータのパターンにそって前記ターゲット文書に対するキーワードを生成する段階、
第2サンプル文書、第2サンプルキーワード、およびサンプルクエリからなる第2サンプルデータを利用して、前記ターゲット文書のキーワードに対する第2プロンプトを構成する段階、および
前記第2プロンプトを前記言語モデルの入力とし、前記ターゲット文書のキーワードに対して前記第2サンプルデータのパターンにそって前記ターゲット文書に対するクエリを生成する段階
を含む、請求項に記載の方法。
The generating step includes:
constructing a first prompt for the target document using first sample data, the first sample document and the first sample keywords;
using the first prompt as an input to the language model and generating keywords for the target document according to patterns in the first sample data;
3. The method of claim 2, further comprising: constructing a second prompt for a keyword of the target document using second sample data consisting of a second sample document, a second sample keyword, and a sample query; and using the second prompt as an input to the language model to generate a query for the target document according to a pattern of the second sample data for the keyword of the target document.
前記提供する段階は、
各文書の文書スコアを確率分布の形態に変換する段階、および
前記確率分布のエントロピーによって前記ユーザの質問に対する回答の類型を決定する段階
を含む、請求項に記載の方法。
The providing step comprises:
The method of claim 2 , comprising: converting the document score of each document into a form of a probability distribution; and determining a type of answer to the user's question according to the entropy of the probability distribution.
請求項乃至のうちのいずれか一項に記載の方法をコンピュータ装置に実行させるためのコンピュータプログラム。 A computer program product for causing a computer device to carry out the method according to any one of claims 1 to 5 . 言語モデルと検索モデルを用いて対話システムを生成するためのコンピュータ装置であって、
メモリに含まれるコンピュータ読み取り可能な命令を実行するように構成された少なくとも1つのプロセッサ
を含み、
前記少なくとも1つのプロセッサは、
特定のドメインに属する文書に対して、前記言語モデルを利用することにより、前記文書に対して予想される質問としてクエリを生成する過程と、
前記文書と前記クエリとのペアからなる学習データを利用して、対話ボットのためのQAモデルを構築するように検索モデルを学習する過程と、
前記検索モデルにユーザの質問が入力されると、前記ユーザの質問に対する回答内容が含まれる文書を選定し、前記ユーザの質問に対する回答を提供する過程と、
を実行する、コンピュータ装置。
1. A computer device for generating a dialogue system using a language model and a retrieval model, comprising:
at least one processor configured to execute computer readable instructions contained in a memory;
The at least one processor
generating queries as anticipated questions for documents belonging to a particular domain by utilizing the language model;
training a search model using training data consisting of pairs of the document and the query to construct a QA model for a conversational bot;
When a user's question is input to the search model, selecting documents including an answer to the user's question and providing the answer to the user's question;
A computer device that executes the above-mentioned.
前記回答を提供する過程は、前記検索モデルを利用して前記回答内容が含まれる文書を探索し、前記ユーザの質問に該当する文章と前記回答内容が含まれる文書との類似度を測定することにより、各文書の文書スコアを計算し、該文書スコアに基づいて、前記回答内容が含まれる文書を選定することを含むこと
を特徴とする、請求項に記載のコンピュータ装置。
8. The computer device according to claim 7, wherein the step of providing the answer includes: searching for documents containing the answer content using the search model; calculating a document score for each document by measuring a similarity between a sentence corresponding to the user's question and the document containing the answer content; and selecting a document containing the answer content based on the document score .
前記少なくとも1つのプロセッサは、
サンプル文書とサンプルクエリからなるサンプルデータを利用してターゲット文書に対するプロンプトを構成し、
前記プロンプトを前記言語モデルの入力とし、前記サンプルデータのパターンにそって前記ターゲット文書に対するクエリを生成すること
を特徴とする、請求項に記載のコンピュータ装置。
The at least one processor
Configure prompts for target documents using sample data consisting of sample documents and sample queries;
The computer apparatus of claim 7 , further comprising: a language model that uses the prompts as input to generate queries for the target documents according to patterns in the sample data.
前記少なくとも1つのプロセッサは、
第1サンプル文書と第1サンプルキーワードからなる第1サンプルデータを利用して、ターゲット文書に対する第1プロンプトを構成し、
前記第1プロンプトを前記言語モデルの入力とし、前記第1サンプルデータのパターンにそって前記ターゲット文書に対するキーワードを生成し、
第2サンプル文書、第2サンプルキーワード、およびサンプルクエリからなる第2サンプルデータを利用して、前記ターゲット文書のキーワードに対する第2プロンプトを構成し、
前記第2プロンプトを前記言語モデルの入力とし、前記ターゲット文書のキーワードに対して前記第2サンプルデータのパターンにそって前記ターゲット文書に対するクエリを生成すること
を特徴とする、請求項に記載のコンピュータ装置。
The at least one processor
constructing a first prompt for the target document using first sample data, the first sample document and the first sample keywords;
using the first prompt as an input to the language model to generate keywords for the target document according to patterns in the first sample data;
constructing second prompts for keywords of the target documents using second sample data, the second sample documents, second sample keywords, and sample queries;
8. The computer apparatus of claim 7 , further comprising: a language model that uses the second prompt as an input to generate a query for the target document according to a pattern of the second sample data for keywords of the target document.
前記少なくとも1つのプロセッサは、
各文書の文書スコアを確率分布の形態に変換し、
前記確率分布のエントロピーによって前記ユーザの質問に対する回答の類型を決定すること
を特徴とする、請求項に記載のコンピュータ装置。
The at least one processor
Converting the document score of each document into a probability distribution;
The computer device according to claim 7 , further comprising: determining a type of answer to the user's question according to an entropy of the probability distribution.
JP2022185689A 2021-11-22 2022-11-21 Method, computer device, and computer program for providing domain-specific dialogue utilizing language models Active JP7635940B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR10-2021-0161268 2021-11-22
KR1020210161268A KR102909678B1 (en) 2021-11-22 2021-11-22 Method, computer device, and computer program for providing domain-specific conversation using language model

Publications (2)

Publication Number Publication Date
JP2023076413A JP2023076413A (en) 2023-06-01
JP7635940B2 true JP7635940B2 (en) 2025-02-26

Family

ID=86543938

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022185689A Active JP7635940B2 (en) 2021-11-22 2022-11-21 Method, computer device, and computer program for providing domain-specific dialogue utilizing language models

Country Status (2)

Country Link
JP (1) JP7635940B2 (en)
KR (1) KR102909678B1 (en)

Families Citing this family (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4562513A1 (en) * 2022-09-21 2025-06-04 Google Llc Systems and methods for prompt-based query generation for diverse retrieval
JP7749618B2 (en) * 2023-05-09 2025-10-06 弁護士ドットコム株式会社 Program, information processing device, manufacturing method, and information processing method
JP2023171705A (en) * 2023-06-02 2023-12-04 加古 貴大 Communication ability training chatbot system for specific situations using artificial intelligence
CN116402164B (en) * 2023-06-06 2023-09-05 之江实验室 Robot task generation method, device and medium based on pre-training language model
CN116702734B (en) * 2023-06-09 2025-04-01 广州商研网络科技有限公司 Email marketing title generation method and its device, equipment and medium
KR102658967B1 (en) * 2023-07-03 2024-04-19 주식회사 렛서 Method, electronic device, and system for providing solution based on artificial intelligence
KR102653266B1 (en) * 2023-07-07 2024-04-02 주식회사 비씨티원 An artificial intelligence-based chatbot conversation consultation system and method thereof
CN117194410B (en) * 2023-07-13 2024-05-14 广州白码科技有限公司 Method and system for generating business report by artificial intelligence language model
US20250094820A1 (en) * 2023-09-15 2025-03-20 Samsung Electronics Co., Ltd. Enabling device control planning capabilities of small language model
JP7441366B1 (en) 2023-09-19 2024-02-29 株式会社東芝 Information processing device, information processing method, and computer program
KR102637029B1 (en) 2023-10-11 2024-02-15 주식회사 마인즈앤컴퍼니 Device for Generating Multi-turn Chat Bot Data Using LLM and Driving Method Thereof
WO2025080076A1 (en) * 2023-10-13 2025-04-17 삼성전자주식회사 Electronic device and method for processing user utterance
JP7511068B1 (en) 2023-10-16 2024-07-04 PayPay株式会社 Information processing device, information processing method, and information processing program
US12524403B2 (en) 2023-11-14 2026-01-13 Microsoft Technology Licensing, Llc Context-based prompt generation for automated translations between natural language and query language
JP7853264B2 (en) * 2023-11-20 2026-04-28 Lineヤフー株式会社 Information processing device, information processing method, and information processing program
TW202526801A (en) * 2023-11-27 2025-07-01 日商東京威力科創股份有限公司 Information processing method, computer program, and information processing device
KR102703247B1 (en) * 2023-12-12 2024-09-06 주식회사 노타 Method and system for refining search results based on query complexity for generative search
EP4575886A1 (en) * 2023-12-20 2025-06-25 Tata Consultancy Services Limited Systems and methods for ideation of research proposal using large language models agent-based architecture
CN117935281B (en) * 2023-12-22 2024-11-05 荣耀终端有限公司 Text recognition method and related device
KR102789327B1 (en) * 2024-01-22 2025-04-01 주식회사 큐레아 Technique for acquiring data from storage to generate answer data for question data
JP7761291B2 (en) * 2024-01-29 2025-10-28 アクセラテクノロジ株式会社 Information processing system, information processing program, and information processing method
CN118013944A (en) * 2024-02-27 2024-05-10 百度时代网络技术(北京)有限公司 Method, device, electronic equipment and storage medium for generating demonstration document
KR102926030B1 (en) * 2024-04-01 2026-02-11 올거나이즈코리아 주식회사 Method and system for generating structured query language using language model
KR20250147309A (en) 2024-04-04 2025-10-13 이인용 Customized response generation system
WO2025234863A1 (en) * 2024-05-10 2025-11-13 주식회사 랭코드 Method and apparatus for constructing pipeline based on prompt unit combination
KR102732264B1 (en) * 2024-05-24 2024-11-20 서준혁 Method for providing self introduction document using large language models and system using the same
KR102835813B1 (en) * 2024-06-04 2025-07-21 텔레픽스 주식회사 Method and system for providing conversational ai answer service
KR102884765B1 (en) * 2024-06-12 2025-11-11 주식회사 엔쓰리디앤티 Interactive extended reality docent service method and system based on voice recognition and image tracking
KR102731386B1 (en) * 2024-06-25 2024-11-20 주식회사 인터엑스 A system and method for providing chatbot services using a manufacturing-specific small language model-based generative ai
KR102856086B1 (en) * 2024-07-09 2025-09-05 주식회사 인터엑스 Manufacturing specific autonomous AI agent based answer provision and control system
WO2026022874A1 (en) * 2024-07-22 2026-01-29 ファナック株式会社 Control device
WO2026024004A1 (en) * 2024-07-26 2026-01-29 삼성전자 주식회사 Electronic device for providing response to user input on basis of usage pattern and operation method thereof
CN118550996B (en) * 2024-07-26 2025-01-14 阿里云飞天(杭州)云计算技术有限公司 Data and power data query method, device, storage medium, and program product
KR102831051B1 (en) * 2024-10-30 2025-07-07 셀렉트스타 주식회사 The Method for Improving A Inference-Ability Of An LLM-Based Inference System Including Multiple-Agents Using Dialogue With An External System, The Inference System That Performs The Same, And The Computer-Readable Recording Medium That Implements The Same
KR102833209B1 (en) * 2024-12-04 2025-07-15 주식회사 인터엑스 Training and application method of manufacturing-specific language model based on manufacturing task characteristics
KR102896786B1 (en) * 2024-12-24 2025-12-08 주식회사 인터엑스 Method for reducing the size of manufacturing specific language models for efficient deployment and operation
CN119357367B (en) * 2024-12-26 2025-03-28 中科云谷科技有限公司 Method, device and storage medium for processing user questions and answers
KR102837903B1 (en) * 2025-01-24 2025-07-24 주식회사 링크브릭스호라이즌에이아이 SYSTEM FOR AUTOMATICALLY GENERATING MULTIPLE SUB-TASKS FOR ANSWERING SINGLE QUESTION USING (s)LLM AND AUTOMATICALLY SELECTING MULTIPLE GENERATIVE ARTIFICIAL INTELLIGENCE MODELS ACCORDING TO PURPOSE OF DETAILED TASKS AND PROCESSING THEM IN PARALLEL

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013033488A (en) 2012-09-21 2013-02-14 Panasonic Healthcare Co Ltd Retrieval system
JP2021108197A (en) 2017-04-28 2021-07-29 キヤノンマーケティングジャパン株式会社 Information processing apparatus, information processing system, method for controlling the same, and program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10431205B2 (en) * 2016-04-27 2019-10-01 Conduent Business Services, Llc Dialog device with dialog support generated using a mixture of language models combined using a recurrent neural network
KR102391466B1 (en) * 2019-10-15 2022-04-27 (주)포스윈 Ai based question and answer system and method
US11475067B2 (en) * 2019-11-27 2022-10-18 Amazon Technologies, Inc. Systems, apparatuses, and methods to generate synthetic queries from customer data for training of document querying machine learning models

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013033488A (en) 2012-09-21 2013-02-14 Panasonic Healthcare Co Ltd Retrieval system
JP2021108197A (en) 2017-04-28 2021-07-29 キヤノンマーケティングジャパン株式会社 Information processing apparatus, information processing system, method for controlling the same, and program

Also Published As

Publication number Publication date
JP2023076413A (en) 2023-06-01
KR102909678B1 (en) 2026-01-08
KR20230075052A (en) 2023-05-31

Similar Documents

Publication Publication Date Title
JP7635940B2 (en) Method, computer device, and computer program for providing domain-specific dialogue utilizing language models
US11875585B2 (en) Semantic cluster formation in deep learning intelligent assistants
US12141532B2 (en) Device and method for machine reading comprehension question and answer
US20220343082A1 (en) System and method for ensemble question answering
CN113505196B (en) Text retrieval method and device based on parts of speech, electronic equipment and storage medium
Arumugam et al. Hands-On Natural Language Processing with Python: A practical guide to applying deep learning architectures to your NLP applications
AU2023236937B2 (en) Generating output sequences with inline evidence using language model neural networks
US11379527B2 (en) Sibling search queries
CN114942981B (en) Question and answer query method and device, electronic equipment and computer readable storage medium
CN116089567A (en) Recommendation method, device, equipment and storage medium for search keywords
CN113761125B (en) Dynamic summary determination method and device, computing device and computer storage medium
CN111881264A (en) Method and electronic equipment for searching long text in question-answering task in open field
CN119886332A (en) Question and answer method and device based on large language model, electronic equipment and computer program product
CN120045750A (en) Retrieval enhancement generation method and system based on large language model
Borisov et al. Keyword extraction for improved document retrieval in conversational search
CN119377369A (en) A multimodal RAG, device, equipment and storage medium based on a large model
CN117851574A (en) Text dialogue method and device and electronic equipment
CN119884333B (en) Text generation method, storage medium, electronic device and program product
CN118551002A (en) A method, device, equipment and medium for generating question and answer data based on a large model
CN119150984B (en) Controllable response method, device and storage medium based on large language model
CN116992111B (en) Data processing method, device, electronic equipment and computer storage medium
CN121093951B (en) Research report generation method, device, equipment and storage medium
US20250307630A1 (en) Method for training deep learning model for generative retrieval and apparatus for performing query inference using pre-trained deep learning model
Budda et al. Context-Aware Sanskrit QA with Hybrid Retrieval and Bidirectional Transliteration
CN120821797A (en) A problem optimization processing method and device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20221121

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20231222

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240109

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240408

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240716

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20241011

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20250114

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250204

R150 Certificate of patent or registration of utility model

Ref document number: 7635940

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150