How to persist or save InMemoryStore data between program runs in LangGraph? #3359
Unanswered
EvanZhou1999
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I and the docs recommend the Postgres store for actual persistence. The in memory store is in memory and thus ephemeral - useful for dev and docs as a dependency-free option. |
Beta Was this translation helpful? Give feedback.
1 reply
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'm using LangGraph's InMemoryStore to store data in my application. However, I noticed that whenever I restart my program and attempt to retrieve from in_memory_store with the same namespace and key, all previously stored data is lost. Here's my current code (from Langgraph Academy) to test this functionality:
I'm looking for ways to persist this data between program runs. And there seems to be no description nor API references that talks about how to persist the InMemoryStore (If I did miss a reference somewhere please kindly point me to the solution). What are the recommended approaches for handling this in LangGraph?
Beta Was this translation helpful? Give feedback.
All reactions