Refresh LangGraph Couchbase persistence notebook#116
Conversation
|
Caution Notebooks or Frontmatter Files Have Been Modified
1 Notebook Files Modified:
0 Frontmatter Files Modified:
|
There was a problem hiding this comment.
Code Review
This pull request updates the Couchbase persistence notebook for LangGraph by adding support for langchain-openai, improving environment variable handling, and replacing hardcoded connection strings with configurable variables. The review feedback suggests refining the environment variable check in _set_env to correctly handle empty strings and recommends avoiding hardcoded default passwords to improve security practices.
ejscribner
left a comment
There was a problem hiding this comment.
If we can, lets get this up to date so we avoid the deprecation
|
Owner ping for this maintenance PR: @teetangh @VirajAgarwal1 Requesting review from the manifest-listed owner(s) where GitHub does not already show a pending review request. |
|
lgtm 🚀 |
Summary
langgraph/couchbase_persistence_langgraph.ipynbso it runs non-interactively with env-driven OpenAI and local Couchbase settingslanggraphinstall pinned, but update that pin to the latest tested version (1.1.10) and includelangchain-openaialongside the current Couchbase checkpointer packagecreate_react_agenttocreate_agentin the sync and async flowstest/langgraphcheckpoint collectionsVerification
uv venv -p 3.12 --seed --clear .venvpython -m pip install -U papermill nbclient jupyter ipykernelpython -m pip install -U pip-auditpip-audit→ no known vulnerabilitiespapermill -k vsc-langgraph-312 langgraph/couchbase_persistence_langgraph.ipynb tutorial-maintenance/runs/couchbase-examples__vector-search-cookbook/2026-04-28-langgraph-couchbase-persistence/couchbase_persistence_langgraph.executed.ipynbEvidence
OPENAI_API_KEY,CB_CONN_STR,CB_USER,CB_PASS,CB_BUCKET_NAME, andCB_SCOPE_NAMEfrom the environment instead of hard-coding local credentialsRendered notebook screenshot
tutorial-maintenance/runs/couchbase-examples__vector-search-cookbook/2026-04-28-langgraph-couchbase-persistence/verification.md— run summary, deprecation-fix note, and local setup notestutorial-maintenance/runs/couchbase-examples__vector-search-cookbook/2026-04-28-langgraph-couchbase-persistence/dependency-freeze.txt— tested package versions from the successful runpapermill result
Executed
27/27cells successfully with kernelvsc-langgraph-312.Local verification also created the required Couchbase bucket/scope/collections for this artifact run:
test,langgraph,checkpoints, andcheckpoint_writes.Notes
langgraph/couchbase_persistence_langgraph.ipynbartifact.create_agentinstead of the oldercreate_react_agentexample while keeping the rest of the maintenance scope focused.