Closed barr-code closed 10 months ago
I opened this PR to address this issue: https://github.com/aws-samples/amazon-bedrock-workshop/pull/115
Hi @barr-code thank you for looking into this. Your fix does address the issue but this is also fixed in the next langchain version, so this workshop is currently using langchain==0.0.308
, we need to upgrade to langchain==0.0.309
. I verified that doing that fixes this issue without any code change in this notebook. Still, thank you for debugging this.
This is now fixed via https://github.com/aws-samples/amazon-bedrock-workshop/pull/120.
When executing the code under Chatbot using prompt template (Langchain) in the 00_Chatbot_Claude.ipynb, an error occurs because the prompt's chat history contains
Human:
, confusing Claude.The human prefix for the chat history memory needs to be updated to be something other than Human.