all AI news
AWS Bedrock Claude 2.1 - Return only JSON
DEV Community dev.to
Working with the AWS Bedrock API is an exhilarating experience! I came across an interesting business case where I needed to develop an AI MVP. The MVP generates JSON data based on a prompt and utilizes the anthropic.claude-v2:1 model in AWS Bedrock.
I encountered an issue where the response I received was not pure JSON. It contained additional characters that I couldn't remove like:
" format: {\"one\":\"Supplier\",\"many\":\"Time\"}"
Seeking help from the AWS Community, I was able to find a …
anthropic api aws aws bedrock bedrock business business case case claude claude 2 claude 2.1 data experience issue json mvp prompt