Python code samples for using Claude 3 models to process PDF and extract text. Also examples for using textract.
This lab will walk you through the basics of connecting to the Amazon Bedrock service from Python with boto3.
- You will need to enable the Claude3 models through the AWS console. Steps outlined in the link below.
https://catalog.workshops.aws/building-with-amazon-bedrock/en-US/prerequisites/bedrock-setup
-
You will be ready to walk through the notebook bedrock_basics.ipynb, which shows how to install the required packages, connect to Bedrock, and invoke models. Before running any of the labs ensure you've run the Bedrock boto3 setup notebook.
-
Specific OCR examples are in the claude3sonnet_outputscleared.ipynb