https://github.com/nickchecan/graph-persistence
AI Application Development - Concept Study - Human in the Loop (persistence)
https://github.com/nickchecan/graph-persistence
artificial-intelligence checkpointer langchain langgraph python
Last synced: 6 months ago
JSON representation
AI Application Development - Concept Study - Human in the Loop (persistence)
- Host: GitHub
- URL: https://github.com/nickchecan/graph-persistence
- Owner: NickChecan
- Created: 2025-02-12T03:01:23.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-02-14T19:41:49.000Z (11 months ago)
- Last Synced: 2025-05-16T16:12:09.319Z (8 months ago)
- Topics: artificial-intelligence, checkpointer, langchain, langgraph, python
- Language: Python
- Homepage:
- Size: 85.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# graph-persistence
This is a very simple project that shows the setup of a memory mechanism
for a human-in-the-loop system.
MemorySaver is an ephemeral tool and does not persist data across sessions, thus the data in this example will be saved in a SQLite database.
```mermaid
%%{init: {'flowchart': {'curve': 'linear'}}}%%
graph TD;
__start__([
__start__
]):::first
step_1(step_1)
human_feedback(human_feedback
__interrupt = before)
step_3(step_3)
__end__([__end__
]):::last
__start__ --> step_1;
human_feedback --> step_3;
step_1 --> human_feedback;
step_3 --> __end__;
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc
```
## Utilities
```sh
poetry add langgraph langchain-community python-dotenv black isort grandalf langgraph-checkpoint-sqlite
```
> [!NOTE]
> The DevContainer was added to analyze the `checkpoint.sqlite` content, however, the extensions used in vscode are not compatible with the format being saved in the `checkpoint` and `metadata` columns and the values will be displayed as hex, instead of **JSON**.