aws-samples / serverless-pdf-chat

LLM-powered document chat using Amazon Bedrock and AWS Serverless
https://aws.amazon.com/blogs/compute/building-a-serverless-document-chat-with-aws-lambda-and-amazon-bedrock/
MIT No Attribution
228 stars 206 forks source link

Add ModelId parameter and integrate BedrockChat library for additional model support #50

Closed kyleblocksom closed 2 months ago

kyleblocksom commented 3 months ago

Issue #, if available:

Description of changes:

Update GenerateResponseFunction to use LangChain BedrockChat, which supports more models that the previous LangChain Bedrock library.

Update the SAM template to support the ModelId parameter, which the user now specified during sam deploy --guided.

Update the SAM template to deploy to AWS Amplify by default (to drive more usage of AWS-native services).

Update the README to include ModelId parameter details and more detailed sam deploy --guided parameter explanations

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