-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add information about setup for persistence #1759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Mintlify preview ID generated: preview-rahuld-1764974092-c1936da |
| <Info> | ||
| **LangGraph API handles checkpointing automatically** | ||
| When using the LangGraph API, you don't need to implement or configure checkpointers manually. The API handles all persistence infrastructure for you behind the scenes. | ||
| **Agent Server handles checkpointing automatically** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated but noticed while I was doing this so I decided to fix as well!
src/oss/langgraph/add-memory.mdx
Outdated
|
|
||
| ## Database management | ||
|
|
||
| If you are using Postgres or Redis to store short and/or long-term memory, you will need to call the LangGraph-provided `saver` or `store`'s `setup` method before you can use it with your database. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This applies to any checkpointer or store really - any DB-backed persistence implementation would have migrations.
The convention is to define a setup() method to run the required migrations for that instance, but the user should check with their specific implementation of the BaseCheckpointSaver or BaseStore to confirm.
We'd recommend running migration as a dedicated deployment step. Or you can ensure they're run as a part of server startup.
|
Mintlify preview ID generated: preview-rahuld-1765213882-08c5736 |
Minor tweak
|
Mintlify preview ID generated: preview-rahuld-1765221422-431da96 |
Overview
We currently say you have to call
setupfor a saver or store but don't specify what that does or best practices for when to call it.Type of change
Type: Update existing documentation
Checklist
docs dev