Configuring Agentic Search with Bedrock Claude - Amazon OpenSearch Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Configuring Agentic Search with Bedrock Claude

Agentic search leverages autonomous agents to execute complex searches on your behalf by understanding user intent, orchestrating the right tools, generating optimized queries, and providing transparent summaries of their decisions through a natural language interface. These agents are powered by reasoning models, such as Bedrock Claude.

Follow the steps below to open and run a CloudFormation template that automatically configures Bedrock Claude models for agentic search, and how to configure and create your agents in the AI Search Flows plugin on OpenSearch Dashboards.

Enabling Bedrock Claude Access

  1. Open the Amazon OpenSearch Service console at https://console.aws.amazon.com/aos/home.

  2. In the left navigation, choose Integrations.

  3. Under Integration with Bedrock Claude for Agentic Search, choose Configure domain. Ensure your domain is on version 3.3 or greater.

  4. Follow the prompt to set up your model. Note the IAM role specified in the Lambda Invoke OpenSearch ML Commons Role Name field in the CloudFormation template, defaulted to LambdaInvokeOpenSearchMLCommonsRole. Ensure this full role ARN is mapped as the backend role to ml_full_access before proceeding with the template provisioning. For more details, see Map the ML role in OpenSearch Dashboards (if using fine-grained access control). Then, click Create Stack and wait for the provisioning to complete to make your model available for your domain.

  5. From the Amazon OpenSearch Service console, select Domains, and select your domain. Click the OpenSearch Dashboards URL to access OpenSearch Dashboards.

Building agents and running Agentic Search

  1. From OpenSearch Dashboards, open the menu on the left-hand side. Select OpenSearch Plugins > AI Search Flows to access the plugin.

  2. On the Workflows page, select the New workflow tab, and under the Agentic Search card, click Create.

  3. Provide a unique name for your search configuration, and click Create.

  4. Under Configure agent, click Create new agent. Select your newly-created Bedrock Claude model, then click Create agent. If the button is disabled, check Advanced Settings > LLM Interface, and ensure there is a valid interface selected. All models from CloudFormation will be Bedrock Claude models, so you can select Bedrock Claude, if it isn't already, then click Create agent.

  5. Under Test flow, try running agentic searches. Provide a natural language search query, and click Search.

For complete documentation of the AI Search Flows plugin, see Configuring Agentic Search in the OpenSearch documentation.

For more information about how Agentic Search works, see Agentic Search in the OpenSearch documentation.