Tentative Plan for for langgraph Checkpointer Support ? #120

Closed
opened 2026-02-20 17:26:52 -05:00 by yindo · 12 comments
Owner

Originally created by @sushantMoon on GitHub (Jun 19, 2024).

Will langgraph checkpointer be supported in future release, is there any roadmap?

Since there is lack of persistent database support in langgraph checkpointer this was my langchain-postgres==0.0.5 go to method for that (please let me know if there are better ways).

Apologies, since I am new I am not sure how I can help but will be happy to pitch in wherever I can.

Originally created by @sushantMoon on GitHub (Jun 19, 2024). Will langgraph checkpointer be supported in future release, is there any roadmap? Since there is lack of persistent database support in langgraph checkpointer this was my langchain-postgres==0.0.5 go to method for that (please let me know if there are better ways). Apologies, since I am new I am not sure how I can help but will be happy to pitch in wherever I can.
yindo closed this issue 2026-02-20 17:26:52 -05:00
Author
Owner

@tgscan commented on GitHub (Jun 20, 2024):

https://github.com/langchain-ai/langgraph/blob/main/examples/persistence_postgres.ipynb but not in main branch,hahah

@tgscan commented on GitHub (Jun 20, 2024): https://github.com/langchain-ai/langgraph/blob/main/examples/persistence_postgres.ipynb but not in main branch,hahah
Author
Owner

@byrocuy commented on GitHub (Jun 20, 2024):

@tgscan-dev Have you tried it? I attempted to implement it exactly like the notebook, but I encountered an ImportError: cannot import name 'PostgresSaver' from 'langchain_postgres'. I guess they removed the module required to attach postgres as a checkpointer

@byrocuy commented on GitHub (Jun 20, 2024): @tgscan-dev Have you tried it? I attempted to implement it exactly like the notebook, but I encountered an `ImportError: cannot import name 'PostgresSaver' from 'langchain_postgres'`. I guess they removed the module required to attach postgres as a checkpointer
Author
Owner

@sushantMoon commented on GitHub (Jun 21, 2024):

@byrocuy Yes the module is only available in version 0.0.5.
@tgscan-dev any tentative release version by which PostgresSaver would be integrated back in the main branch and be available as a package.

@sushantMoon commented on GitHub (Jun 21, 2024): @byrocuy Yes the module is only available in version 0.0.5. @tgscan-dev any tentative release version by which PostgresSaver would be integrated back in the main branch and be available as a package.
Author
Owner

@shermify commented on GitHub (Jun 27, 2024):

Just chiming in.

We currently use RunnableWithMessageHistory and redis. I'm trying to move us over to langgraph because we really need it for what we're working on, but it's going to be a tough sell to rip that out and spin up a SQL server or write and maintain our own checkpointer code. I am also looking for a better way.

It feels like there should be a way to just hook into the graph with a relatively simple interface for saving and loading sessions. Implementing a custom checkpointer from scratch seems to me like it would be an antipattern, looking at the source code. Let me know if I'm missing anything or if I can help.

@shermify commented on GitHub (Jun 27, 2024): Just chiming in. We currently use `RunnableWithMessageHistory` and redis. I'm trying to move us over to langgraph because we really need it for what we're working on, but it's going to be a tough sell to rip that out and spin up a SQL server or write and maintain our own checkpointer code. I am also looking for a better way. It feels like there should be a way to just hook into the graph with a relatively simple interface for saving and loading sessions. Implementing a custom checkpointer from scratch seems to me like it would be an antipattern, looking at the source code. Let me know if I'm missing anything or if I can help.
Author
Owner

@vbarda commented on GitHub (Jun 27, 2024):

hi all -- we just added an example Postgres checkpointer implementation here https://langchain-ai.github.io/langgraph/how-tos/persistence_postgres/. please let me know if you have any questions!

@vbarda commented on GitHub (Jun 27, 2024): hi all -- we just added an example Postgres checkpointer implementation here https://langchain-ai.github.io/langgraph/how-tos/persistence_postgres/. please let me know if you have any questions!
Author
Owner

@vbarda commented on GitHub (Jun 27, 2024):

@shermify we do actually recommend implementing your own checkpointer. so in your case, you can make a redis checkpointer that conforms to the BaseCheckpointSaver interface, you don't need to switch to SQL. please see the above example for Postgres. let me know if you have any questions!

@vbarda commented on GitHub (Jun 27, 2024): @shermify we do actually recommend implementing your own checkpointer. so in your case, you can make a redis checkpointer that conforms to the [`BaseCheckpointSaver`](https://github.com/langchain-ai/langgraph/blob/main/libs/langgraph/langgraph/checkpoint/base.py#L141) interface, you don't need to switch to SQL. please see the above example for Postgres. let me know if you have any questions!
Author
Owner

@gbaian10 commented on GitHub (Jun 28, 2024):

hi all -- we just added an example Postgres checkpointer implementation here https://langchain-ai.github.io/langgraph/how-tos/persistence_postgres/. please let me know if you have any questions!

Would you consider integrating it into some package?

@gbaian10 commented on GitHub (Jun 28, 2024): > hi all -- we just added an example Postgres checkpointer implementation here https://langchain-ai.github.io/langgraph/how-tos/persistence_postgres/. please let me know if you have any questions! Would you consider integrating it into some package?
Author
Owner

@DhavalThkkar commented on GitHub (Jun 29, 2024):

@vbarda I have created a RedisSaver. What is the way to contribute? I asked @hwchase17 but no response

Here is the discussion link

@DhavalThkkar commented on GitHub (Jun 29, 2024): @vbarda I have created a RedisSaver. What is the way to contribute? I asked @hwchase17 but no response Here is the discussion [link](https://github.com/langchain-ai/langgraph/discussions/848)
Author
Owner

@shermify commented on GitHub (Jul 1, 2024):

Awesome! It would be nice if this was integrated into the core package.

It's not that we're lazy or don't know how. The problem we tend to run into is in maintaining deeply-coupled code that inherits langchain classes and types. It locks you into a version and doesn't really scale. The more code you have, the more difficult it becomes to upgrade and maintain. Just my 2 cents.

@shermify commented on GitHub (Jul 1, 2024): Awesome! It would be nice if this was integrated into the core package. It's not that we're lazy or don't know how. The problem we tend to run into is in maintaining deeply-coupled code that inherits langchain classes and types. It locks you into a version and doesn't really scale. The more code you have, the more difficult it becomes to upgrade and maintain. Just my 2 cents.
Author
Owner

@vbarda commented on GitHub (Jul 1, 2024):

@shermify for now we do not plan to integrate these into the core package, will let you know if that changes in the future

@vbarda commented on GitHub (Jul 1, 2024): @shermify for now we do not plan to integrate these into the core package, will let you know if that changes in the future
Author
Owner

@vbarda commented on GitHub (Jul 1, 2024):

@DhavalThkkar thank you! feel free to add a documentation notebook / page similar to the one here https://github.com/langchain-ai/langgraph/blob/main/examples/persistence_postgres.ipynb

@vbarda commented on GitHub (Jul 1, 2024): @DhavalThkkar thank you! feel free to add a documentation notebook / page similar to the one here https://github.com/langchain-ai/langgraph/blob/main/examples/persistence_postgres.ipynb
Author
Owner

@DhavalThkkar commented on GitHub (Jul 9, 2024):

@DhavalThkkar thank you! feel free to add a documentation notebook / page similar to the one here https://github.com/langchain-ai/langgraph/blob/main/examples/persistence_postgres.ipynb

Added the PR here #961

@DhavalThkkar commented on GitHub (Jul 9, 2024): > @DhavalThkkar thank you! feel free to add a documentation notebook / page similar to the one here https://github.com/langchain-ai/langgraph/blob/main/examples/persistence_postgres.ipynb Added the PR here #961
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#120