|
| 1 | +{ |
| 2 | + "title": "Stream Amazon Bedrock completions via AWS AppSync Events API", |
| 3 | + "description": "Leverage AppSync Events API to stream completions from Amazon Bedrock.", |
| 4 | + "language": "TypeScript", |
| 5 | + "level": "200", |
| 6 | + "framework": "CDK", |
| 7 | + "introBox": { |
| 8 | + "headline": "How it works", |
| 9 | + "text": [ |
| 10 | + "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 middleware.", |
| 11 | + "The client will receive the model's completions through WebSocket provided by AppSync Events." |
| 12 | + ] |
| 13 | + }, |
| 14 | + "gitHub": { |
| 15 | + "template": { |
| 16 | + "repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/appsync-events-bedrock-cdk", |
| 17 | + "templateURL": "serverless-patterns/appsync-events-bedrock-cdk", |
| 18 | + "projectFolder": "appsync-events-bedrock-cdk", |
| 19 | + "templateFile": "lib/appsync-events-bedrock-cdk-stack.ts" |
| 20 | + } |
| 21 | + }, |
| 22 | + "resources": { |
| 23 | + "bullets": [ |
| 24 | + { |
| 25 | + "text": "AppSync Events API", |
| 26 | + "link": "https://docs.aws.amazon.com/appsync/latest/eventapi/event-api-welcome.html" |
| 27 | + }, |
| 28 | + { |
| 29 | + "text": "Amazon Bedrock - Generative AI", |
| 30 | + "link": "https://aws.amazon.com/bedrock/" |
| 31 | + }, |
| 32 | + { |
| 33 | + "text": "Bedrock's Response Stream API", |
| 34 | + "link": "https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModelWithResponseStream.html" |
| 35 | + } |
| 36 | + ] |
| 37 | + }, |
| 38 | + "deploy": { |
| 39 | + "text": [ |
| 40 | + "npm run deploy" |
| 41 | + ] |
| 42 | + }, |
| 43 | + "testing": { |
| 44 | + "text": [ |
| 45 | + "npm run test" |
| 46 | + ] |
| 47 | + }, |
| 48 | + "cleanup": { |
| 49 | + "text": [ |
| 50 | + "cdk destroy" |
| 51 | + ] |
| 52 | + }, |
| 53 | + "authors": [ |
| 54 | + { |
| 55 | + "name": "Gabriele Biagini", |
| 56 | + "bio": "Solutions Architect @ AWS", |
| 57 | + "linkedin": "gbiagini97" |
| 58 | + } |
| 59 | + ], |
| 60 | + "patternArch": { |
| 61 | + "icon1": { |
| 62 | + "x": 20, |
| 63 | + "y": 50, |
| 64 | + "service": "apigw", |
| 65 | + "label": "Amazon API Gateway" |
| 66 | + }, |
| 67 | + "icon2": { |
| 68 | + "x": 50, |
| 69 | + "y": 50, |
| 70 | + "service": "lambda", |
| 71 | + "label": "AWS Lambda" |
| 72 | + }, |
| 73 | + "icon3": { |
| 74 | + "x": 80, |
| 75 | + "y": 50, |
| 76 | + "service": "bedrock", |
| 77 | + "label": "Amazon Bedrock" |
| 78 | + }, |
| 79 | + "line1": { |
| 80 | + "from": "icon1", |
| 81 | + "to": "icon2", |
| 82 | + "label": "WebSocket" |
| 83 | + }, |
| 84 | + "line2": { |
| 85 | + "from": "icon2", |
| 86 | + "to": "icon3", |
| 87 | + "label": "" |
| 88 | + } |
| 89 | + } |
| 90 | +} |
0 commit comments