Invoke Amazon Bedrock models from AWS AppSync HTTP resolver
This pattern shows how to invoke Amazon Bedrock models from AppSync through HTTP resolvers.
In this pattern the end user is able to provide a query and a role. Based on the role provided (philosopher, schoolteacher or politician), a specific context will be added to the prompt used to invoke an Amazon Bedrock model from within the JS resolver.