-
Notifications
You must be signed in to change notification settings - Fork 1.3k
add cosmos db sample for checkpointer #1313
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
base: main
Are you sure you want to change the base?
add cosmos db sample for checkpointer #1313
Conversation
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.
Pull Request Overview
This PR adds documentation for using Azure Cosmos DB as a checkpoint saver for LangChain agents, providing an alternative to the existing PostgreSQL example.
Key changes:
- Added installation instructions and Python code example for the
langgraph-checkpoint-cosmosdbpackage - Included configuration details for authentication and database/container setup
- Added a note about sync/async support and RBAC credentials
0dfc288 to
00c5e66
Compare
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
1cdc77a to
1849682
Compare
|
Note: the earlier code snippet commit suggestion with the context manager pattern (with The standard usage pattern is direct instantiation ( |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
1849682 to
60b2350
Compare
|
Hi @lnhsingh any comments or issues with the PR? |
|
hi @TheovanKraay, thanks for your PR! Instead of putting code examples for each checkpointer implementation on the short term memory docs, I think it might make sense to link the Persistence page where we have a list of checkpointer options and update there / in our Reference docs. |
|
@lnhsingh - thanks, I made changes per your suggestion. How about this? |
Overview
added cosmos db sample for checkpointer in short term memory section
Type of change
Update existing documentation
Related issues/PRs
N/A
Checklist
docs devsrc/docs.jsonif neededAdditional notes
There are actually many checkpointer store implementations now: https://pypi.org/search/?q=langgraph-checkpoint. Perhaps this doc could further be revised to make that clear. However, I cannot comment authoritatively on those (I am PM in Cosmos DB engineering team). so just adding the Cosmos DB sample in addition to the existing Postgres sample.