Open anushkayadav opened 1 year ago
Verbose output
The history is not getting saved. I defined the chain as follows
chain = ConversationChain(llm=llm, verbose=True, memory=ConversationBufferMemory())
I also tried using prompts and LLM chain
#prompt= prompt definition here prompt = PromptTemplate( input_variables=["history", "human_input"], template=template ) chatgpt_chain = LLMChain( llm=llm, prompt=prompt, verbose=True, memory=ConversationBufferWindowMemory(k=4), ) output = chatgpt_chain.predict(human_input="Hello")
All of this works fine on notebooks but in streamlit app, the history is not getting passes in prompt
Hey. I made a PR with a suggested approach to ensuring memory persists between messages: take a look at #1
@samdobson This works! Thanks
Verbose output
The history is not getting saved. I defined the chain as follows
I also tried using prompts and LLM chain
All of this works fine on notebooks but in streamlit app, the history is not getting passes in prompt