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"])