aws-samples / amazon-kendra-langchain-extensions

Samples to build Generative AI applications with LangChain and Amazon Kendra
https://aws.amazon.com/blogs/machine-learning/quickly-build-high-accuracy-generative-ai-applications-on-enterprise-data-using-amazon-kendra-langchain-and-large-language-models/
MIT No Attribution
158 stars 104 forks source link

[Feature request] Amazon Bedrock support #31

Closed athewsey closed 11 months ago

athewsey commented 1 year ago

Hi team & thanks for the sample,

I see kendra_retriever_samples is currently supporting OpenAI, Anthropic by direct API key, and a few SageMaker models: But it would be great if we could provide Amazon Bedrock support also?

KamilLegault commented 1 year ago

Especially given that LangChain already supports it....

zhenghongpeng commented 1 year ago

If you can get AWS support on Bedrock on your AWS account, we have implemented Bedrock claude at the backend.

madtank commented 1 year ago

If you can get AWS support on Bedrock on your AWS account, we have implemented Bedrock claude at the backend.

I have bedrock enabled, can you explain how to use claude with bedrock with this solution? I see option for claude env api key, how do I use with boto3 instead?

MithilShah commented 11 months ago

Added Titan and Claudev2 support

madtank commented 11 months ago

Thanks for adding this, confirmed it works great with Claude V2.