> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to set up and configure Amazon Bedrock

> How to add Amazon Bedrock as the LLM provider for Atoti Intelligence via Spring AI, including the `starter-ai-bedrock` Maven dependency, `application.yaml` configuration for AWS credentials, region, and Converse API model selection.

This guide explains how to configure Amazon Bedrock as the Large Language Model (LLM) provider for Atoti Intelligence.

## Prerequisites

Before configuring Amazon Bedrock, ensure the following requirements are met:

* An AWS account with Amazon Bedrock access with appropriate permissions
* The AWS region where Bedrock models are available

## Add the dependency

Add the Spring AI Amazon Bedrock dependency to the project.

Add the following to `pom.xml`:

```xml theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
<dependency>
  <groupId>org.springframework.ai</groupId>
  <artifactId>spring-ai-starter-model-bedrock-converse</artifactId>
</dependency>
```

## Configure the model

Configure the Amazon Bedrock model in the application configuration file. This example assumes that `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` are passed as JVM arguments or environment variables.

Add the following to `application.yaml`:

```yaml theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
spring:
  ai:
    bedrock:
      aws:
        access-key: ${AWS_ACCESS_KEY_ID}
        secret-key: ${AWS_SECRET_ACCESS_KEY}
        region: "your-aws-region"
      converse:
        chat:
          options:
            temperature: 0.
            maxTokens: 5000
            topP: 0.8
            model: eu.mistral.pixtral-large-2502-v1:0
```

Replace the following placeholders:

* `your-aws-region`: The AWS region where Bedrock is available
* Model name: Choose an available Bedrock model

Please refer to the [Spring AI documentation](https://docs.spring.io/spring-ai/reference/api/chat/comparison.html) for any additional configuration options.

## Verify the configuration

After completing the configuration, verify that the LLM connection works:

1. Start the Atoti application
2. Check the application logs for successful LLM initialization
3. Test an AI feature such as Visualize This or Auto-Explain

## Related reading

After configuring Amazon Bedrock, proceed to set up AI features:

* [Auto-Explain setup](../auto-explain/setup)
* [Visualize This setup](../chat/setup)
