Skip to content

Commit fab03ca

Browse files
committed
chore: update readme with details on dual state component setup
1 parent fccd1ce commit fab03ca

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

examples/langgraph-checkpointer/README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,27 @@ pip install -r requirements.txt
2424
dapr run -f dapr.yaml
2525
```
2626

27-
This will provision the redis state store (which we use in this example, see `./components/memory.yaml`) to store the state, the Checkpointer, for the LangGraph agent to have short term memory. See [State Management](https://docs.dapr.io/developing-applications/building-blocks/state-management/) for more details on State Managenent and [LangGraph - Memory](https://docs.langchain.com/oss/python/langgraph/add-memory) for details on LangGraph Agent Memory.
27+
This will provision the redis & SQLite state stores (which we use in this example, see `./components/*-memory.yaml`) to store the state, the Checkpointer, for the LangGraph agent to have short term memory. See [State Management](https://docs.dapr.io/developing-applications/building-blocks/state-management/) for more details on State Managenent and [LangGraph - Memory](https://docs.langchain.com/oss/python/langgraph/add-memory) for details on LangGraph Agent Memory.
2828

29-
This example is based on the LangGraph Academy Demo repository for [agent-memory in module-1](https://github.com/langchain-ai/langchain-academy/blob/b20cf608f2bf165e09080961537d329f813cfb20/module-1/agent-memory.ipynb).
29+
This example is based on the LangGraph Academy Demo repository for [agent-memory in module-1](https://github.com/langchain-ai/langchain-academy/blob/b20cf608f2bf165e09080961537d329f813cfb20/module-1/agent-memory.ipynb).
30+
31+
## Inspect
32+
33+
After running you'll find `./data.db`.
34+
35+
1. Connect
36+
```shell
37+
sqlite3 data.db
38+
```
39+
40+
2. List tables
41+
```shell
42+
.tables
43+
```
44+
45+
3. Inspect state table
46+
```shell
47+
select * from state;
48+
```
49+
50+
In this example we ran 2 threads that each had their own seperate memory checkpointer and by using dapr it was completely transparent that one was using Redis and the other SQLite DB.

0 commit comments

Comments
 (0)