Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat (provider/bedrock): add file upload support #3364

Closed
wants to merge 1 commit into from

Conversation

dodgez
Copy link

@dodgez dodgez commented Oct 25, 2024

Summary

This PR adds support for file upload for the Amazon Bedrock provider.

  • Add case to convert to Bedrock's document type from the file type
  • Add basic check to the Bedrock message conversion test
  • Add a file upload example for Bedrock.

Note: For now the code generates the required document name by hashing the file contents, but it may be possible to default to a provider specific metadata option in the future.

Bedrock only supports file uploads for specific models. I found a page a while back that listed compatibility but cannot find it now. I know Claude 3 Sonnet and Claude 3 Haiku support it but Claude 3.5 Sonnet doesn't.

@lgrammel
Copy link
Collaborator

Thank you! Continued in #3383

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants