Skip to content

Special symbols in bedrock agent response

0

I sent a request to bedrock agent and received the response with special symbols by python. I have checked the requsest by postman and have the same issue with special symbols. It's difficult to parse the response with these symbols. Is there a way to somehow get rid of them? Some other requests to bedrock api have correct responses without these symbols.

Request example - https://bedrock-agent-runtime.us-east-1.amazonaws.com/agents/AGENTID/agentAliases/ALIASEID/sessions/S277/text

Postman response example

  • Request example is not available. Probably would be good to add it here as a comment.

    Do you see this with other queries or only ones of this type?

  • The request is pretty simple (raw-json): { "inputText": "I need most experienced specialist", "enableTrace": true }

    I have 2 different knowledge base and agents and both requests with the same issue. If it's importand the documents in cyrillic.

asked 2 years ago477 views
1 Answer
0

Does the model that you are using specifically support Cyrillic?

AWS
EXPERT
answered 2 years ago
  • We are using Anthropic / Claude 3 Haiku. It work's fine both with Bedrock consol and external requests. In response we have correct cyrillic answer. But the json structure is invalid because of these symbols

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.