5 Comments
User's avatar
Rainbow Roxy's avatar

Brilliant; your solution for persistent state management in conversational AI, using LangGraph's checkpoint system, is exactly the step needed for truely intelligent agents.

Expand full comment
Anuj's avatar

Will try today definetly let u know my learning as well by EOD.

Expand full comment
Neural Foundry's avatar

The checkpoint persitence using SQLite is really clever here. I've been strugling with multi-agent state management and losing context after server restarts has been a nightmare. Your thread_id format (user:topic) is so simple yet solves the whole problem. The way you keep the last 5 exchanges and summarize older ones is a nice balance for avoiding token bloat. Did you run into any issues with concurrent users hitting the same SQLite database?

Expand full comment
Benito Martin's avatar

I didn't test it with concurrent users, but this is doable for sure. And summarizing is necessary. Otherwise, the context grows too much for the model

Expand full comment
Neural Foundry's avatar

Great stuff, subscribed!

Expand full comment