admin管理员组

文章数量:1402943

  1. I will have documents like PDF, JPEG, PNG stored on s3.
  2. I want to post them to Anthropic claude for OCR processing.
  3. Instead of using boto3 to download and convert them to base64 and send bytes to to bedrock invoke method. Is there a way where I can directly specify the s3 URL of document and bedrock takes care of it? For example
bedrock_agent_runtime.invoke(modelID,s3Location="s3://bucket_name/w2.pdf")

I didn't find any API for this.

  1. I will have documents like PDF, JPEG, PNG stored on s3.
  2. I want to post them to Anthropic claude for OCR processing.
  3. Instead of using boto3 to download and convert them to base64 and send bytes to to bedrock invoke method. Is there a way where I can directly specify the s3 URL of document and bedrock takes care of it? For example
bedrock_agent_runtime.invoke(modelID,s3Location="s3://bucket_name/w2.pdf")

I didn't find any API for this.

Share Improve this question edited Mar 23 at 17:13 desertnaut 60.5k32 gold badges155 silver badges181 bronze badges asked Mar 21 at 1:23 RajRaj 4177 silver badges25 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Apologies for the previous link. It was incorrect.

Please take a look at these examples. They use Bedrock to send through the contents of an S3 object through to the model.
I do not see the option to send the ARN/URL of the S3 Object itself as a method input parameter.

本文标签: amazon web servicespost s3 document URL to bedrock llmStack Overflow