You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This directory contains Jupyter notebooks demonstrating the usage of the Redis with LangGraph.
3
+
This directory contains Jupyter notebooks demonstrating the usage of Redis with LangGraph.
4
4
5
5
## Running Notebooks with Docker
6
6
7
-
To run these notebooks using the local development versions of LangChain and the Redis partner package:
7
+
To run these notebooks using the local development version of the Redis checkpoint package:
8
8
9
9
1. Ensure you have Docker and Docker Compose installed on your system.
10
10
2. Navigate to this directory (`examples`) in your terminal.
11
11
3. Run the following command:
12
+
12
13
```bash
13
14
docker compose up
14
15
```
16
+
15
17
4. 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.
16
-
5. You can now run the notebooks, which will use the local development versions of LangChain and the Redis partner package.
18
+
5. You can now run the notebooks, which will use the local development version of the Redis checkpoint package.
17
19
18
20
Note: The first time you run this, it may take a few minutes to build the Docker image.
19
21
20
22
To stop the Docker containers, use Ctrl+C in the terminal where you ran `docker compose up`, then run:
23
+
21
24
```bash
22
25
docker compose down
23
26
```
24
27
25
28
## Notebook Contents
26
29
27
30
-`persistence_redis.ipynb`: Demonstrates the usage of `RedisSaver` and `AsyncRedisSaver` checkpoint savers with LangGraph.
31
+
-`create-react-agent-memory.ipynb`: Shows how to create an agent with persistent memory using Redis.
32
+
-`cross-thread-persistence.ipynb`: Demonstrates cross-thread persistence capabilities with Redis.
33
+
-`persistence-functional.ipynb`: Shows functional persistence patterns with Redis.
28
34
29
35
These notebooks are designed to work both within this Docker environment (using local package builds) and standalone (using installed packages via pip).
0 commit comments