Skip to content

Commit

Permalink
kendra-bedrock-cdk-python
Browse files Browse the repository at this point in the history
  • Loading branch information
julianwood committed Sep 4, 2024
1 parent 4d9b728 commit 520d81a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 86 deletions.
2 changes: 1 addition & 1 deletion appsync-stepfunctions-express-sync-bedrock-sam/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion kendra-bedrock-cdk-python/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion kendra-bedrock-cdk-python/example-pattern.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
83 changes: 0 additions & 83 deletions kendra-bedrock-cdk-python/kendra-bedrock-cdk-python.json

This file was deleted.

0 comments on commit 520d81a

Please sign in to comment.