PromptTemplate, second iteration not working #13235
sorrentinopasquale
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am trying to make a bot with history and a custom prompt:
`const noInputPrompt = new PromptTemplate(
{
inputVariables: [],
template: "You are an assistant of a doctor and help customer on that." +
"You do a flow, collect name, last name and email. Then finish the call. Do that one by one. So you say hello and then ask first question.",
}
);
const chain = new ConversationChain({ llm: chatModel, memory: memory, prompt: noInputPrompt});
The issue is that when I call it the first time it works. When I do again it stops working. If I remove the template it works.
Basically after the chain finishes without returning anything, I also tried with ConversationChain.
Beta Was this translation helpful? Give feedback.
All reactions