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

> How to configure Amazon Bedrock as the LLM provider for Atoti Intelligence in an Atoti Python project, using `ConnectionConfig` and `ChatConfig` from `atoti_ai_amazon_bedrock` with `AiConfig`.

<Info>
  ### Atoti Intelligence Essentials

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

This guide explains how to configure Amazon Bedrock as the LLM provider for Atoti Intelligence in an Atoti Python project.

## Prerequisites

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

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

## Install the package

```bash theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
uv add "atoti[ai-amazon-bedrock]"
```

## Configure the LLM

Use [`ConnectionConfig`](https://docs.activeviam.com/products/atoti/python-sdk/latest/api/atoti_ai_amazon_bedrock.connection_config.html) and [`ChatConfig`](https://docs.activeviam.com/products/atoti/python-sdk/latest/api/atoti_ai_amazon_bedrock.chat_config.html) from `atoti_ai_amazon_bedrock` to configure the LLM connection, then pass them to [`AiConfig`](https://docs.activeviam.com/products/atoti/python-sdk/latest/api/atoti_ai.ai_config.html):

<BedrockAiConfig />

Then pass the config to the session through [`SessionConfig`](https://docs.activeviam.com/products/atoti/python-sdk/latest/api/atoti.config.session_config.html):

```python theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
session = tt.Session.start(tt.SessionConfig(ai=ai_config))
```

### `ConnectionConfig` parameters

<BedrockConnectionParams />

### `ChatConfig` parameters

<BedrockChatParams />

## Verify the configuration

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

1. Start the Atoti session.
2. Open the Atoti UI.
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 Python](../auto-explain/setup-python)
* [Set up Visualize This in Python](../visualize-this/setup-python)
* [`atoti_ai_amazon_bedrock`](https://docs.activeviam.com/products/atoti/python-sdk/latest/api/atoti_ai_amazon_bedrock.html) API reference
