Skip to content

Latest commit

 

History

History

bedrock

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

AI Chatbot example using Amazon Bedrock

Demonstrates how Temporal and Amazon Bedrock can be used to quickly build bulletproof AI applications.

Samples

  • basic - A basic Bedrock workflow to process a single prompt.
  • signals_and_queries - Extension to the basic workflow to allow multiple prompts through signals & queries.
  • entity - Full multi-Turn chat using an entity workflow..

Pre-requisites

  1. An AWS account with Bedrock enabled.
  2. A machine that has access to Bedrock.
  3. A local Temporal server running on the same machine. See Temporal's dev server docs for more information.

These examples use Amazon's Python SDK (Boto3). To configure Boto3 to use your AWS credentials, follow the instructions in the Boto3 documentation.

Running the samples

For these sample, the optional bedrock dependency group must be included. To include, run:

poetry install --with bedrock

There are 3 Bedrock samples, see the README.md in each sub-directory for instructions on running each.