haystack-core-integrations
haystack-core-integrations copied to clipboard
Bedrock Converse API integration
Integrate AWS Bedrock Converse API into Haystack
Background
AWS Bedrock released earlier this year their new converse API that aims to standardize their api calls to their models.
Objective
Integrate the AWS Bedrock Converse API into the Haystack integration library to allow users to leverage AWS Bedrock converse within their Haystack pipelines, paving the way potentially for easier agent development and multimodal integration.
Proposed Features
- Add a new
BedrockConversationGeneratornode in Haystack integrations. - Support easy tool calling with some new classes to ease the process of tools definition and calling.
- Support streaming responses from the Bedrock Converse API.
- Implement error handling and retries for API calls.
Implementation Details
- Use the AWS SDK for Python (Boto3) to interact with the Bedrock Converse API.
- Follow Haystack's node implementation guidelines for consistency.
Resources
Alternatives
This could also be a feature for the existing AmazonBedrock generators instead of a new one.
Currently working on it
Currently working on it
Following on this, it will help a lot with tool use across all AWS Bedrock models with this unified API
@vblagoje Related issue: https://github.com/deepset-ai/haystack-core-integrations/issues/1229
Completed with https://github.com/deepset-ai/haystack-core-integrations/pull/1219 https://pypi.org/project/amazon-bedrock-haystack/ v2.0.0 released