aws-samples / amazon-bedrock-workshop

This is a workshop designed for Amazon Bedrock a foundational model service.
https://catalog.us-east-1.prod.workshops.aws/workshops/a4bdb007-5600-4368-81c5-ff5b4154f518/en-US/20-intro
MIT No Attribution
1.27k stars 545 forks source link

Fix sample code and add claude v3 code generation #220

Open mnmcho opened 3 months ago

mnmcho commented 3 months ago

2 changes:

Change 1: Fixing incorrect sample code

image

Above result from sample generated code is incorrect. It should be 'P003' and '2023-04-23'.

image image

The changed code is also generated from Claude v2 but it gets the result correct.

image

Change 2: Adding Claude v3 generated code for comparison / easy access to users who want to play with Claude v3 in this particular notebook.

Changed prompt a little bit to avoid Claude v3 from using pandas.

Claude v3 also generates desired output, so I included sample as well.

image

mnmcho commented 2 months ago

@chpecora Added! Is there any other points about messages API that we should be adding?