Open LinboYuan opened 1 month ago
The problem arises when MessagePlaceHolder
is set as optional as according to this code, the input variable name set by MessagePlaceHolder
is excluded from the ChatPromptTemplate
. Consequently, when you invoke the chain, the MessagePlaceHolder
variable is not filled in by the ConversationBufferMemory
.
Checked other resources
Example Code