Shaareable Apps
Shaareable Apps

Reputation: 1

How can I get the AWS Bedrock Agent to output a JSON in a given format?

I'm using AWS Bedrock. I have a knowledge base and an agent. The agent is set to query the knowledge base. I need the agent to output a json array containing the uri and content for each result. My problem is that I cannot get the agent to output the json array.

I tried changing:

  1. Instructions for the Agent (specifying as simply as possibly the requirements).
  2. Orchestration Strategy sections

I was expecting a json array.

[
  {"uri":"etc",
  "content":"etc"},
  {"uri":"etc",
  "content":"etc"}
]

No changes were noted when changing the instructions to the agents. I am not familiar enough with the orchestration strategy sections to be effective there.

Upvotes: 0

Views: 104

Answers (0)

Related Questions