AWS Bedrock Agents vs AWS Bedrock with Step Functions

0

I have a simple use case. I have a knowledge base of construction building codes and descriptions. I would like to build an application that allows users to prompt Bedrock with questions about the building codes. If the user is unhappy with the answer a Bedrock agent will create a ticket to the the knowledgebase manager to investigate the incorrect prompt (outcome may be update to the knowledge base) . If the user is happy the response then a Bedrock agent will create a building application number that is returned to the user.

From my understanding it is possible to invoke Bedrock from a Step Functions as well as create Bedrock agents - in what case would I use the Step Functions to call the Bedrock model vs Bedrock agents to complete the task?

Amevy
已提問 1 個月前檢視次數 495 次
1 個回答
0
已接受的答案

Hi Amevy,

AWS Bedrock Agents are designed for conversational interactions, allowing you to build applications that can understand natural language inputs from users, interpret their intents, and provide responses based on a provided knowledge base. In your use case, a Bedrock Agent could directly interact with the user, understand their questions about building codes, provide answers from the knowledge base, and handle follow-up actions like creating tickets or generating application numbers based on the user's feedback.

AWS Step Functions, on the other hand, is a serverless workflow service that allows you to orchestrate and coordinate multiple AWS services and tasks into business processes. In your use case, Step Functions could be used to orchestrate the entire workflow, including:

  1. Invoking the Bedrock model to generate an answer based on the user's input
  2. Evaluating the user's feedback on the answer (e.g., through a separate user interface)
  3. Based on the feedback, either creating a ticket for the knowledge base manager or generating a building application number
  4. Returning the final result (either the ticket confirmation or the building application number) to the user

Using Step Functions would allow you to have more control over the entire workflow, including error handling, retries, and integrations with other AWS services or external systems. However, it would require you to manage the user interaction separately, potentially through a separate interface or API.

If your primary focus is on providing a natural, conversational user experience and the workflow is relatively straightforward, using Bedrock Agents alone might be the simpler approach.

Hope this helps

AWS
已回答 1 個月前
profile picture
專家
已審閱 1 個月前
  • Thanks very clear explanation! I will start with Bedrock Agents.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南