amazon-bedrock-workshop
amazon-bedrock-workshop copied to clipboard
No explanation about how to pass in the customized Bedrock endpoint URL in 09_Guardrails notebook
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.
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!
#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.
Closing this; please refer to the latest bedrock workshop update and reopen if still relevant