> ## 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.

# Set up Atoti Intelligence to use Amazon Bedrock in Java

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

<Info>
  ### Atoti Intelligence Essentials

  This is part of the Atoti Intelligence Essentials offer.
</Info>

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

## Prerequisites

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

* An AWS account with Amazon Bedrock access and 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`:

<SnippetRanchPomStarterAiBedrock />

## 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

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:

* [Set up Auto-Explain in Java](../auto-explain/setup-java)
* [Set up Visualize This in Java](../visualize-this/setup-java)
