1 Answer
- Newest
- Most votes
- Most comments
0
One likely cause for not seeing citations is not including the $output_format_instructions$ placeholder in your custom prompt template, which provides instructions on how the model should format citations to be picked up by the API. You can find more information about this and the other available placeholders in the "Knowledge base prompt templates: orchestration & generation" section on this page in the Bedrock user guide.
Of course, depending on your custom template it's still possible to come across unreliable citation generation even when the format instructions are there... But including the placeholder should help a lot.
Relevant content
asked a year ago

Thank you for your response; it helped me see the citations! However, the chat still does not provide the structured response I expect. Is there a way to properly specify these instructions in the text prompt template?