Example Prerequisites | Amazon Bedrock - Example Prerequisites - Teradata VantageCloud Lake

Lake - Analyze Your Data with ClearScape Analytics™

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2026-02-20
dita:mapPath
tcl1683670667798.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
tcl1683670667798

To run the following examples, load necessary package first.

1. from tdapiclient import TDApiClient
2. from teradataml import DataFrame

Example

1. auth_info_fmt_str = ('{{ "Access_ID": "{}", "Access_Key" : "{}", "Region" : "{}" , "Session_Token": "{}"}}')
2. auth_info = auth_info_fmt_str.format("id", "key", "region", "token")
1. br_embeddings_df = TDApiClient.API_Request(DataFrame("product_reviews"),
2.                                           "aws-bedrock",
3.                                            authorization=auth_info,
4.                                            num_embeddings='1536',
5.                                            model_name='amazon.titan-embed-text-v1',
6.                                            data_columns=["comment"])