Conversational_memory for a pandas_dataframe_agent in a Streamlit app #10684
Unanswered
SynergyWiz
asked this question in
Q&A
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.
-
I am a coding noob, but I have been beating my head against the wall for 6 hours trying to get my LLM to have any memory of the prior message in my Streamlit chat app. I have tried adding memory via st.session_state and Conversational_memory, but neither have worked. I have been troubleshooting with Bard, ChatGPT, Bing, and Claude with no success. Could someone PLEASE help and tell me what I am doing wrong. Thanks in advance for taking a look!
New Chat Functionality
def chat(temperature, model_name,openai_api_key=st.secrets["OPENAI_API_KEY"]):
st.write("# Talk to your data")
Add functionality for Page 1
Create a ConversationBufferMemory instance
)
Create agent
Beta Was this translation helpful? Give feedback.
All reactions