aws-samples / amazon-bedrock-samples

This repository contains examples for customers to get started using the Amazon Bedrock Service. This contains examples for all available foundational models
https://aws.amazon.com/bedrock/
MIT No Attribution
440 stars 233 forks source link

Update 1_managed-rag-kb-retrieve-generate-api.ipynb by haochu #52

Closed haochuaws closed 8 months ago

haochuaws commented 8 months ago

Added Region_id into retrieveAndGenerate function, allowing user to define which region the sagemaker is in. This will avoid validation error due to model arn not in service region, which occurs when sagemaker and bedrock model is not in the same region

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.