diff --git a/appsync-stepfunctions-express-sync-bedrock-sam/README.md b/appsync-stepfunctions-express-sync-bedrock-sam/README.md index 1f4fbdace..67bba8007 100644 --- a/appsync-stepfunctions-express-sync-bedrock-sam/README.md +++ b/appsync-stepfunctions-express-sync-bedrock-sam/README.md @@ -1,4 +1,4 @@ -# Prompt Chaining with AWS AppSync, AWS Step Functions and Amazon Bedrock. +# Prompt chaining with AWS AppSync, AWS Step Functions and Amazon Bedrock. The AWS Serverless Application Model (SAM) template deploys an AWS AppSync serverless GraphQL endpoint connected to an AWS Step Functions state machine. This example demonstrates how to invoke an Express state machine synchronously and utilize AWS Step Functions intrinsic functions to chain two prompts, which are then used to invoke the Amazon Bedrock language model. The output from the state machine execution is returned to the client within 29 seconds, using the GraphQL API. This no-code example showcases how the results from the first prompt can be used to provide context for the second prompt, allowing the language model to deliver a highly-curated response. By chaining these prompts, the system can leverage the capabilities of the language model to generate more meaningful and contextual outputs. diff --git a/kendra-bedrock-cdk-python/README.md b/kendra-bedrock-cdk-python/README.md index 828e7d33f..82ebfe36d 100644 --- a/kendra-bedrock-cdk-python/README.md +++ b/kendra-bedrock-cdk-python/README.md @@ -1,4 +1,4 @@ -# AWS Lambda to Amazon Kendra to Amazon Bedrock +# AWS Lambda from Amazon Kendra to Amazon Bedrock This pattern contains a sample stack that utilizes an AWS Lambda function to retrieve documents from an Amazon Kendra index and then pass it to Amazon Bedrock to generate a response. The pattern includes usage of the Amazon S3 data source connector. diff --git a/kendra-bedrock-cdk-python/example-pattern.json b/kendra-bedrock-cdk-python/example-pattern.json index 194875a84..67bccd4e3 100644 --- a/kendra-bedrock-cdk-python/example-pattern.json +++ b/kendra-bedrock-cdk-python/example-pattern.json @@ -1,5 +1,5 @@ { - "title": "Lambda to Kendra to Bedrock", + "title": "AWS Lambda from Amazon Kendra to Amazon Bedrock", "description": "AWS Lambda function to retrieve documents from an Amazon Kendra index and pass it to Amazon Bedrock for a generated response.", "language": "Python", "level": "200", diff --git a/kendra-bedrock-cdk-python/kendra-bedrock-cdk-python.json b/kendra-bedrock-cdk-python/kendra-bedrock-cdk-python.json deleted file mode 100644 index ed9a57e5b..000000000 --- a/kendra-bedrock-cdk-python/kendra-bedrock-cdk-python.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "title": "Lambda to Kendra to Bedrock", - "description": "AWS Lambda function to retrieve documents from an Amazon Kendra index and pass it to Amazon Bedrock for a generated response.", - "language": "Python", - "level": "200", - "framework": "CDK", - "introBox": { - "headline": "How it works", - "text": [ - "AWS Lambda: Two AWS Lambda functions are created. DataSourceSync Lambda function crawls and indexes the content. InvokeBedrockLambda AWS Lambda function that invokes the specified model by passing the retrieved content from Amazon Kendra as context to the generative AI model.", - "Amazon Kendra: An Amazon Kendra index is created with a S3 data source. When a the InvokeBedrockLambda function is called, documents are retrieved from the Amazon Kendra index.", - "Amazon Bedrock: Documents retrieved from the Amazon Kendra index are sent to Amazon Bedrock which responds with a generated response." - ] - }, - "gitHub": { - "template": { - "repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/kendra-bedrock-cdk-python", - "templateURL": "serverless-patterns/kendra-bedrock-cdk-python", - "projectFolder": "kendra-bedrock-cdk-python", - "templateFile": "app.py" - } - }, - "resources": { - "bullets": [ - { - "text": "Amazon Kendra - Enterprise Search Engine", - "link": "https://aws.amazon.com/kendra/" - }, - { - "text": "Amazon Bedrock - Generative AI", - "link": "https://aws.amazon.com/bedrock/" - } - ] - }, - "deploy": { - "text": [ - "cdk deploy BedrockKendraStack --parameters S3DSBucketName=${YourS3BucketName}" - ] - }, - "testing": { - "text": ["See the GitHub repo for detailed testing instructions."] - }, - "cleanup": { - "text": ["Delete the stack: cdk destroy."] - }, - "authors": [ - { - "name": "Kruthi Jayasimha Rao", - "bio": "Kruthi is a Partner Solutions Architect specializing in AI and ML. She provides technical guidance to AWS Partners in following best practices to build secure, resilient, and highly available solutions in the AWS Cloud.", - "linkedin": "kruthi-jayasimha-rao-132a78167" - } - ], - "patternArch": { - "icon1": { - "x": 20, - "y": 50, - "service": "lambda", - "label": "AWS Lambda" - }, - "icon2": { - "x": 50, - "y": 50, - "service": "kendra", - "label": "Amazon Kendra" - }, - "icon3": { - "x": 80, - "y": 50, - "service": "bedrock", - "label": "Amazon Bedrock" - }, - "line1": { - "from": "icon1", - "to": "icon2", - "label": "" - }, - "line2": { - "from": "icon2", - "to": "icon3", - "label": "" - } - } -}