haystack-core-integrations icon indicating copy to clipboard operation
haystack-core-integrations copied to clipboard

Bedrock Converse API integration

Open FloRul opened this issue 1 year ago • 2 comments

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

  1. Add a new BedrockConversationGenerator node in Haystack integrations.
  2. Support easy tool calling with some new classes to ease the process of tools definition and calling.
  3. Support streaming responses from the Bedrock Converse API.
  4. 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.

FloRul avatar Aug 13 '24 15:08 FloRul

Currently working on it

FloRul avatar Aug 15 '24 04:08 FloRul

Currently working on it

Following on this, it will help a lot with tool use across all AWS Bedrock models with this unified API

lambda-science avatar Aug 20 '24 08:08 lambda-science

@vblagoje Related issue: https://github.com/deepset-ai/haystack-core-integrations/issues/1229

julian-risch avatar Dec 09 '24 07:12 julian-risch

Completed with https://github.com/deepset-ai/haystack-core-integrations/pull/1219 https://pypi.org/project/amazon-bedrock-haystack/ v2.0.0 released

vblagoje avatar Dec 10 '24 14:12 vblagoje