Skip to content

Implementing persistence / checkpointers in streamlit UI #112

Answered by JoshuaC215
sreyakumar asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, you probably need to store the MemorySaver() in st.session_state and re-use it across runs instead of declaring it as its own variable, since Streamlit will re-create it on each run with the code you shared.

Fair warning, you may run into some further issues. LangChain / LangGraph and Streamlit don't always play nice together when running in the same process. Hence why I split out the architecture in this repo.

I won't be able to provide more support on your use case but the Streamlit forums or LangGraph discussions might be a good place to ask further questions!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JoshuaC215
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants