1 Answer
- Newest
- Most votes
- Most comments
2
To improve the formatting of Claude 3 Sonnet's responses in a Bedrock Agent, you can try these approaches:
In the Agent Knowledge Base Configuration:
- Bullet points for lists
- Headers with ## for sections
- Line breaks between paragraphs
- Code blocks with ``` for technical content
- Tables when comparing data
Key Points:
Claude 3 Sonnet generally responds well to explicit formatting requests
Include formatting instructions in the actual question/prompt
Test different instruction placements to see what works best
Consider using markdown syntax in your instructions
Be specific about the desired format
Example Prompt:
Format your response with clear headers, bullet points for key information, and code blocks for technical details: [Your question here]
Relevant content
asked 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 7 months ago

doesn't work even after updating the agent knowledge base config.