Movatterモバイル変換


[0]ホーム

URL:


Perform AI prompt-chaining with Amazon Bedrock - AWS Step Functions
DocumentationAWS Step FunctionsDeveloper Guide
PrerequisitesStep 1: Create the state machineStep 2: Run the demo state machine

Perform AI prompt-chaining with Amazon Bedrock

This sample project demonstrates how you can integrate with Amazon Bedrock to perform AI prompt-chaining and build high-quality chatbots using Amazon Bedrock. The project chains together some prompts and resolves them in the sequence in which they're provided. Chaining of these prompts augments the ability of the language model being used to deliver a highly-curated response.

This sample project creates the state machine, the supporting AWS resources, and configures the related IAM permissions. Explore this sample project to learn about using Amazon Bedrock optimized service integration with Step Functions state machines, or use it as a starting point for your own projects.

Prerequisites

This sample project uses the Cohere Command large language model (LLM). To successfully run this sample project, you must add access to this LLM from the Amazon Bedrock console. To add the model access, do the following:

  1. Open theAmazon Bedrock console.

  2. On the navigation pane, chooseModel access.

  3. ChooseManage model access.

  4. Select the check box next toCohere.

  5. ChooseRequest access. TheAccess status forCohere model shows asAccess granted.

Step 1: Create the state machine

  1. Open theStep Functions console and chooseCreate state machine.

  2. ChooseCreate from template and find the related starter template. ChooseNext to continue.

  3. Choose how to use the template:

    1. Run a demo – creates a read-only state machine. After review, you can create the workflow and all related resources.

    2. Build on it – provides an editable workflow definition that you can review, customize, and deploy with your own resources. (Related resources, such as functions or queues, willnot be created automatically.)

  4. ChooseUse template to continue with your selection.

Step 2: Run the demo state machine

If you chose theRun a demo option, all related resources will be deployed and ready to run. If you chose theBuild on it option, you might need to set placeholder values and create additional resources before you can run your custom workflow.

Congratulations!

You should now have a running demo of your state machine. You can choose states in theGraph view to review input, output, variables, definition, and events.

Tune a machine learning model
Process high-volume messages from SQS

[8]
ページ先頭

©2009-2025 Movatter.jp