serverless-patterns icon indicating copy to clipboard operation
serverless-patterns copied to clipboard

New pattern submission - appsync-bedrock-subscriptions-cdk

Open gbiagini97 opened this issue 3 years ago • 0 comments

In this pattern the end user is able to provide a prompt that will be used to invoke an Amazon Bedrock model from via a Lambda Resolver. The model's completions will be sent via an AppSync Subscription, to which the client will subscribe by providing the corresponding Chat ID.

Resources:

  • https://docs.aws.amazon.com/appsync/latest/devguide/aws-appsync-real-time-data.html
  • https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModelWithResponseStream.html

Framework: CDK Author bio: Solutions Architect @ AWS Name: Gabriele Biagini Linkedin: Gabriele Biagini

GitHub PR for template:

1779

gbiagini97 avatar Oct 22 '23 15:10 gbiagini97