serverless-patterns
serverless-patterns copied to clipboard
New pattern submission - appsync-bedrock-subscriptions-cdk
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