amazon-bedrock-workshop icon indicating copy to clipboard operation
amazon-bedrock-workshop copied to clipboard

No explanation about how to pass in the customized Bedrock endpoint URL in 09_Guardrails notebook

Open hinfsynz opened this issue 1 year ago • 2 comments

Unlike other notebooks which shows how to pass a customized Bedrock boto3 client to the Bedrock class init function as an argument, the sample notebook for 09_Guardrail only invoke a singleton class BedrockBorgModels which seems only takes no argument. This made it unable to use dev/test endpoint.

hinfsynz avatar Oct 27 '23 21:10 hinfsynz

Good catch! You’re right about the inconsistency with the 09_Guardrail notebook. Funny enough, I was already tinkering with a fix for this. I plan to roll it out (PR) in a couple of days. With the fix, you’ll be able to pass a customized boto3 client just like in the other notebooks, making it easier to use dev/test endpoints.

I’ll drop a message here once the updated version is live. Thanks a bunch for pointing this out!

harelix avatar Oct 28 '23 19:10 harelix

#128 This PR addresses the encapsulation in the '09_Guardrail' sample notebook, wherein the code allowed for the acceptance of a customized boto3 client argument upon initialization, but it was not facilitated in the Jupyter Notebook interface. With the modifications, users can now pass a customized boto3 client to the initialization of the Bedrock Models class within the notebook.

harelix avatar Nov 08 '23 17:11 harelix

Closing this; please refer to the latest bedrock workshop update and reopen if still relevant

w601sxs avatar Apr 09 '24 19:04 w601sxs