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

Update requirements.txt #43

Closed jimburtoft closed 11 months ago

jimburtoft commented 11 months ago

Description of changes:

Updated version requirements for langchain and boto3 to versions that have Bedrock support. (only important if you are using the Bedrock/Claude retriever). This fixes the error from langchain that says, "Error raised by bedrock service: 'Bedrock' object has no attribute 'invoke_model'"

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

jimburtoft commented 11 months ago

There are other proposed changes to the requirements.txt, but there are also other issues with different versions of langchain. Better to only have the Bedrock users update, so I changed the REadme.