3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AWS Bedrock エージェントで複数のナレッジベース(Structured Data 含む)使用時の設定問題と解決法

Posted at

AWS Bedrock のエージェントに複数のナレッジベースを登録した際、Structured Data タイプのナレッジベースを使用すると、SQL クエリが実行されてもその結果がエージェントの回答に反映されない場合があります。
この記事では、その問題の解決策を説明します。

解決策

以下の手順でエージェントの設定を変更します。

  1. Bedrock コンソールで対象エージェントを選択し、編集をクリック。
  2. Orchestration strategy を開き、”KB の回答生成 - 非アクティブ” タブを選択。
  3. 回答生成テンプレート で以下を有効化:
    • ”ナレッジベースの回答生成 テンプレートデフォルトを上書き”
    • ”ナレッジベースの回答生成 テンプレートを有効化”
  4. ”保存して終了” をクリック。

設定前の画面

image.png

設定後の画面

image.png

これで Structured Data ナレッジベースの検索結果がエージェントに正しく渡り、回答に反映されます。

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?