An open API service indexing awesome lists of open source software.

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)

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**.