この記事ではナレッジ回答プロンプトテンプレートでレトリーバーを使用する際、レトリーバーの検索結果が複数件存在していても、結果が 1 件に制限されてしまう事象について、よくある原因と解決策について説明します。
プロンプトビルダーの「ナレッジ回答」プロンプトテンプレートには、レトリーバーが実行された後に結果の重複を排除する内部処理(事後処理)が存在します。この処理では、チャンクデータの Source Record Id(ソースレコードID)を使用してレコードの識別を行います。
レトリーバーの設定で Source Record Id が取得対象に含まれていない場合、システムは結果を一意に識別できず、複数の検索結果が1件に集約されてしまう挙動となります。
なお、Flexテンプレートにはこの事後処理が存在しないため、Source Record Id の設定有無にかかわらず検索結果が表示されます。ナレッジ回答テンプレートを使用する場合にのみ、この設定が必須となります。
この問題を解決するには、対象のレトリーバー設定を編集し、返される項目として Source Record Id を明示的に追加します。以下の手順を実行してください。
Data 360 に移動し、[レトリーバー] タブを選択します。
問題が発生しているレトリーバー名をクリックして開きます。
[レトリーバーを編集] をクリックし、設定ウィザードを開始します。
[結果の設定](または項目選択画面)まで進みます。
「返される項目」の選択リストにおいて、「関連属性」配下のチャンク(Chunk)オブジェクトを展開します。
Source Record Id という項目を探し、選択済み項目に追加します。
設定を保存し、レトリーバーを更新します。
設定変更後、プロンプトビルダーに戻り、テンプレートのプレビューを実行して複数の商談データ(または対象レコード)が正しく埋め込まれることを確認してください。
005299200

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.