This directory contains Jupyter notebooks demonstrating the usage of the Redis with LangGraph.
To run these notebooks using the local development versions of LangChain and the Redis partner package:
- Ensure you have Docker and Docker Compose installed on your system.
- Navigate to this directory (
examples
) in your terminal. - Run the following command:
docker compose up
- Look for a URL in the console output that starts with
http://127.0.0.1:8888/tree
. Open this URL in your web browser to access Jupyter Notebook. - You can now run the notebooks, which will use the local development versions of LangChain and the Redis partner package.
Note: The first time you run this, it may take a few minutes to build the Docker image.
To stop the Docker containers, use Ctrl+C in the terminal where you ran docker compose up
, then run:
docker compose down
persistence_redis.ipynb
: Demonstrates the usage ofRedisSaver
andAsyncRedisSaver
checkpoint savers with LangGraph.
These notebooks are designed to work both within this Docker environment (using local package builds) and standalone (using installed packages via pip).