Serverless Operations, inc

>_cd /blog/id_vo6fjevdgrbg

title

Amazon BedrockのAmazon NovaモデルがWeb Groundingに対応したので試してみる

先日AWSブログでAmazon Nova モデルがWeb Groundingに対応したというアナウンスがありました。

https://aws.amazon.com/jp/blogs/aws/build-more-accurate-ai-applications-with-amazon-nova-web-grounding/

Web Grounding とは

生成AIは大量のデータをもとに学習してモデルが生成されます。このため常にモデルが保有する知識と最新の情報には差が存在しています。この差を埋めるためにRAGやMCP、Agent等様々な知識補完の仕組みが生み出されています。

Web Grounding とはBedrock経由で利用できるAmazon Novaモデルが自発的に外部URLに情報を取りに行く仕組みを提供します。

これによりMCP等外部URLを検索して情報を入手するという部分の実装を行わなくてもモデルだけでその機能がいて供されるようになります。

さっそくやってみる:PlayGround

Bedrockのマネージメントコンソール左ペインで playgroundを選択してモデルに Amazon Nova Premierを選択します。その後画面左下の Nova Grounding のトグルをオンにします。

質問をすると以下の様にWeb検索を試みます。

いろいろな方が試してブログで書いている通り、現時点ではまだあまり検索性能は高くないようです。今後の発展に期待です。

さっそくやってみる:スクリプト

では次にPythonスクリプトでもテストを行います。

import json
import boto3
from botocore.exceptions import ClientError

def test_web_grounding(model_id: str, question: str, region: str = 'us-east-1'):
    # セッション &クライアント生成
    session = boto3.Session(region_name=region)
    client = session.client('bedrock-runtime')
    
    # 会話メッセージ構築
    conversation = [
        {
            "role": "user",
            "content": [{"text": question}],
        }
    ]
    
    # Web Grounding 用 toolConfig を付与
    tool_config = {
        "tools": [
            {
                "systemTool": {
                    "name": "nova_grounding"
                }
            }
        ]
    }
    
    try:
        response = client.converse(
            modelId = model_id,
            messages = conversation,
            toolConfig = tool_config
        )
    except ClientError as e:
        print(f"ERROR: Can't invoke '{model_id}'. Reason: {e}")
        return None
    
    # 応答取得
    output = response.get("output", {}).get("message", {}).get("content", [])
    print("=== Model Output ===")
    for block in output:
        # 通常テキスト/tool使用のトレース/出典情報などが含まれます
        print(json.dumps(block, indent=2, ensure_ascii=False))
    return response

if __name__ == "__main__":
    MODEL_ID = "us.amazon.nova-premier-v1:0"
    QUESTION = "2025年11月15日時点の、Amazonの最新リージョンとその場所を教えてください。"
    resp = test_web_grounding(MODEL_ID, QUESTION)
    if resp:
        print("=== Raw Response ===")
        print(json.dumps(resp, indent=2, ensure_ascii=False))

python test.py で実行します。

以下のtool指定パラメータで呼び出せます。

    tool_config = {
        "tools": [
            {
                "systemTool": {
                    "name": "nova_grounding"
                }
            }
        ]
    }

以下の通り反復的に複数回の検索が行われていることがわかります。

=== Model Output ===
{
  "text": "<thinking>地域情報が必要なので、ウェブ検索ツールを使用します。</thinking>\n"
}
{
  "toolUse": {
    "toolUseId": "tooluse_RlsMgalXpeK-JWUU04rJug",
    "name": "nova_grounding",
    "input": {
      "query": "2025年11月15日時点でのAmazonの最新リージョンとその場所は?"
    },
    "type": "server_tool_use"
  }
}
{
  "toolResult": {
    "toolUseId": "tooluse_RlsMgalXpeK-JWUU04rJug",
    "content": [
      {
        "text": "[HIDDEN]"
      }
    ],
    "status": "success",
    "type": "nova_grounding_result"
  }
}
{
  "text": "<thinking>2025年11月15日時点でのAmazonの最新リージョンは、イタリアのミラノとケープタウン(南アフリカ)です。ミラノリージョンは2025年に、ケープタウンリージョンは2024年にそれぞれオープンしました。</thinking>\n\n"
}
{
  "toolUse": {
    "toolUseId": "tooluse_1ApiEw-XaCI88Bjs-9dDLQ",
    "name": "nova_grounding",
    "input": {
      "query": "2025年11月15日時点でのAmazonの最新リージョンとその場所は?"
    },
    "type": "server_tool_use"
  }
}
{
  "toolResult": {
    "toolUseId": "tooluse_1ApiEw-XaCI88Bjs-9dDLQ",
    "content": [
      {
        "text": "[HIDDEN]"
      }
    ],
    "status": "success",
    "type": "nova_grounding_result"
  }
}
{
  "text": "<thinking>Amazonの最新リージョンに関する情報を検索しましたが、2025年11月15日時点での新しい情報は見つかりませんでした。最新の情報を得るために、別のアプローチを試してみます。</thinking>\n"
}
{
  "toolUse": {
    "toolUseId": "tooluse_d72IVTDW2PnOSsyRf61PqA",
    "name": "nova_grounding",
    "input": {
      "query": "What are all the regions for Amazon Web Services"
    },
    "type": "server_tool_use"
  }
}
{
  "toolResult": {
    "toolUseId": "tooluse_d72IVTDW2PnOSsyRf61PqA",
    "content": [
      {
        "text": "[HIDDEN]"
      }
    ],
    "status": "success",
    "type": "nova_grounding_result"
  }
}
{
  "text": "<thinking>2025年11月15日時点でのAmazonの最新リージョンは、ヨーロッパのミラノ(イタリア)です。このリージョンは2025年に発表されました。その他の新しいリージョンとして、2024年にはケープタウン(南アフリカ)がオープンしました。また、サウジアラビアのジェッダとチリのバルパライソにも新しいAWSリージョンが計画されていますが、これらはまだ利用可能になっていません。</thinking>\n\n"
}
{
  "toolUse": {
    "toolUseId": "tooluse_E41T5p_p5De-uMyxX601ww",
    "name": "nova_grounding",
    "input": {
      "query": "What are all the regions for Amazon Web Services"
    },
    "type": "server_tool_use"
  }
}
{
  "toolResult": {
    "toolUseId": "tooluse_E41T5p_p5De-uMyxX601ww",
    "content": [
      {
        "text": "[HIDDEN]"
      }
    ],
    "status": "success",
    "type": "nova_grounding_result"
  }
}
{
  "text": "<thinking>既存の情報を整理すると、2025年11月15日時点でのAmazonの最新リージョンは、イタリアのミラノ(Europe (Milan))です。また、今後オープン予定のリージョンとして、サウジアラビアのジェッダとチリのバルパライソが確認されています。</thinking>\n\n<answer>2025年11月15日時点でのAmazonの最新リージョンは、ヨーロッパのミラノ(イタリア)です。このリージョンは2025年に発表されました。また、サウジアラビアとチリにも新しいAWSリージョンが計画されていますが、これらのリージョンはまだ利用可能になっていません。"
}
{
  "citationsContent": {
    "citations": [
      {
        "location": {
          "web": {
            "url": "https://www.boxpiper.com/posts/complete-list-of-aws-regions-wavelength-zones-and-local-zones-globally",
            "domain": "boxpiper.com"
          }
        }
      }
    ]
  }
}
{
  "citationsContent": {
    "citations": [
      {
        "location": {
          "web": {
            "url": "https://aws.amazon.com/products/",
            "domain": "amazon.com"
          }
        }
      }
    ]
  }
}
{
  "text": "</answer>"
}
=== Raw Response ===
{
  "ResponseMetadata": {
    "RequestId": "c9363ce3-32c6-47ff-9745-0969c5c60e12",
    "HTTPStatusCode": 200,
    "HTTPHeaders": {
      "date": "Sun, 16 Nov 2025 07:13:42 GMT",
      "content-type": "application/json",
      "content-length": "3803",
      "connection": "keep-alive",
      "x-amzn-requestid": "c9363ce3-32c6-47ff-9745-0969c5c60e12"
    },
    "RetryAttempts": 0
  },
  "output": {
    "message": {
      "role": "assistant",
      "content": [
        {
          "text": "<thinking>地域情報が必要なので、ウェブ検索ツールを使用します。</thinking>\n"
        },
        {
          "toolUse": {
            "toolUseId": "tooluse_RlsMgalXpeK-JWUU04rJug",
            "name": "nova_grounding",
            "input": {
              "query": "2025年11月15日時点でのAmazonの最新リージョンとその場所は?"
            },
            "type": "server_tool_use"
          }
        },
        {
          "toolResult": {
            "toolUseId": "tooluse_RlsMgalXpeK-JWUU04rJug",
            "content": [
              {
                "text": "[HIDDEN]"
              }
            ],
            "status": "success",
            "type": "nova_grounding_result"
          }
        },
        {
          "text": "<thinking>2025年11月15日時点でのAmazonの最新リージョンは、イタリアのミラノとケープタウン(南アフリカ)です。ミラノリージョンは2025年に、ケープタウンリージョンは2024年にそれぞれオープンしました。</thinking>\n\n"
        },
        {
          "toolUse": {
            "toolUseId": "tooluse_1ApiEw-XaCI88Bjs-9dDLQ",
            "name": "nova_grounding",
            "input": {
              "query": "2025年11月15日時点でのAmazonの最新リージョンとその場所は?"
            },
            "type": "server_tool_use"
          }
        },
        {
          "toolResult": {
            "toolUseId": "tooluse_1ApiEw-XaCI88Bjs-9dDLQ",
            "content": [
              {
                "text": "[HIDDEN]"
              }
            ],
            "status": "success",
            "type": "nova_grounding_result"
          }
        },
        {
          "text": "<thinking>Amazonの最新リージョンに関する情報を検索しましたが、2025年11月15日時点での新しい情報は見つかりませんでした。最新の情報を得るために、別のアプローチを試してみます。</thinking>\n"
        },
        {
          "toolUse": {
            "toolUseId": "tooluse_d72IVTDW2PnOSsyRf61PqA",
            "name": "nova_grounding",
            "input": {
              "query": "What are all the regions for Amazon Web Services"
            },
            "type": "server_tool_use"
          }
        },
        {
          "toolResult": {
            "toolUseId": "tooluse_d72IVTDW2PnOSsyRf61PqA",
            "content": [
              {
                "text": "[HIDDEN]"
              }
            ],
            "status": "success",
            "type": "nova_grounding_result"
          }
        },
        {
          "text": "<thinking>2025年11月15日時点でのAmazonの最新リージョンは、ヨーロッパのミラノ(イタリア)です。このリージョンは2025年に発表されました。その他の新しいリージョンとして、2024年にはケープタウン(南アフリカ)がオープンしました。また、サウジアラビアのジェッダとチリのバルパライソにも新しいAWSリージョンが計画されていますが、これらはまだ利用可能になっていません。</thinking>\n\n"
        },
        {
          "toolUse": {
            "toolUseId": "tooluse_E41T5p_p5De-uMyxX601ww",
            "name": "nova_grounding",
            "input": {
              "query": "What are all the regions for Amazon Web Services"
            },
            "type": "server_tool_use"
          }
        },
        {
          "toolResult": {
            "toolUseId": "tooluse_E41T5p_p5De-uMyxX601ww",
            "content": [
              {
                "text": "[HIDDEN]"
              }
            ],
            "status": "success",
            "type": "nova_grounding_result"
          }
        },
        {
          "text": "<thinking>既存の情報を整理すると、2025年11月15日時点でのAmazonの最新リージョンは、イタリアのミラノ(Europe (Milan))です。また、今後オープン予定のリージョンとして、サウジアラビアのジェッダとチリのバルパライソが確認されています。</thinking>\n\n<answer>2025年11月15日時点でのAmazonの最新リージョンは、ヨーロッパのミラノ(イタリア)です。このリージョンは2025年に発表されました。また、サウジアラビアとチリにも新しいAWSリージョンが計画されていますが、これらのリージョンはまだ利用可能になっていません。"
        },
        {
          "citationsContent": {
            "citations": [
              {
                "location": {
                  "web": {
                    "url": "https://www.boxpiper.com/posts/complete-list-of-aws-regions-wavelength-zones-and-local-zones-globally",
                    "domain": "boxpiper.com"
                  }
                }
              }
            ]
          }
        },
        {
          "citationsContent": {
            "citations": [
              {
                "location": {
                  "web": {
                    "url": "https://aws.amazon.com/products/",
                    "domain": "amazon.com"
                  }
                }
              }
            ]
          }
        },
        {
          "text": "</answer>"
        }
      ]
    }
  },
  "stopReason": "end_turn",
  "usage": {
    "inputTokens": 58,
    "outputTokens": 545,
    "totalTokens": 603
  },
  "metrics": {
    "latencyMs": 36499
  }
}

検索対象となったURL部分を抜き出したものが以下です。

        "location": {
          "web": {
            "url": "https://www.boxpiper.com/posts/complete-list-of-aws-regions-wavelength-zones-and-local-zones-globally",
            "domain": "boxpiper.com"
          }
        }
<snip>
                "location": {
                  "web": {
                    "url": "https://aws.amazon.com/products/",
                    "domain": "amazon.com"
                  }
                }

jsonから回答を抜き出したものが以下です。

2025年11月15日時点での Amazon の最新リージョンは、

イタリアのミラノ (Europe (Milan)) です。

ミラノは 2025 年に発表されました。

その直前の新リージョンとしては、2024 年に

南アフリカのケープタウンがオープンしています。

また、現在計画中の新リージョンとして、

・サウジアラビア(Jeddah)

・チリ(Valparaiso)

が確認されています。

Written by
編集部

亀田 治伸

Kameda Harunobu

  • Facebook->
  • X->
  • GitHub->

Share

Facebook->X->
Back
to list
<-