environment variables for a RAG/Bedrock notebook

0

What values do I have to set:

# os.environ["AWS_DEFAULT_REGION"] = "<REGION_NAME>"  # E.g. "us-east-1"
# os.environ["AWS_PROFILE"] = "<YOUR_PROFILE>"
# os.environ["BEDROCK_ASSUME_ROLE"] = "<YOUR_ROLE_ARN>"  # E.g. "arn:aws:..."

in order to work with this notebook ? https://github.com/aws-samples/amazon-bedrock-workshop/blob/main/03_QuestionAnswering/01_qa_w_rag_llama2.ipynb

2개 답변
0
os.environ["AWS_DEFAULT_REGION"] - The region where you have access to the Bedrock. Sample value : us-east-1  
os.environ["AWS_PROFILE"] = "<YOUR_PROFILE>"  - If you run the notebook from your local, the profile you have setup in your local environment which has access to the Bedrock. 
os.environ["BEDROCK_ASSUME_ROLE"] = "<YOUR_ROLE_ARN>"  - IAM Role which has access to the Bedrock

Please refer the following link which has the boto3 setup instructions - Create the boto3 client
https://github.com/aws-samples/amazon-bedrock-workshop/blob/6c6997b042b8d493b74d2e8ece3eff4dce96a95c/00_Intro/bedrock_boto3_setup.ipynb#Prerequisites

profile pictureAWS
답변함 2달 전
profile picture
전문가
검토됨 2달 전
0

Hi Josh, Before you begin any of the modules in the workshop you need to run the Workshop set up located at

https://github.com/aws-samples/amazon-bedrock-workshop/blob/6c6997b042b8d493b74d2e8ece3eff4dce96a95c/00_Intro/bedrock_boto3_setup.ipynb#Prerequisites

If you are already in the notebook session, you can find this module at: 00_Intro -> bedrock_boto3_setup.ipynb then proceed to run all cells.

zeekg
답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠