Replies: 1 comment 1 reply
-
Hi! I saw that this issue hasn’t had any updates in a while. Just wondering if this is the right place to discuss it or if there’s a better forum or web for it. Let me know what you think. Thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
We’re building a RAG application using LangGraph’s React Agent and ShallowPostgresSaver for state management. Our current implementation stores conversation messages in the checkpoint, which might be summarized or deleted over time. This raises concerns about user experience when viewing conversation history.
To get the list of messages for the frontend we are doing something like this. With the thread id we get the checkpoint which has all the messages stored for that conversation in the state.
The Issue
When users revisit a conversation in the frontend, we send the entire list of messages saved in the checkpoint state. However, we want to start managing checkpoint messages through methods like history summarization or deletion, which means modifying the list. This will affect the conversation history visible to users.
The user's conversation history should remain static as seen by the user, even if internal state management summarizes or prunes the message list.
Questions
We’d appreciate any guidance on whether we should decouple user-facing conversation history from internal state management. Are there recommended patterns for handling this scenario?
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
Beta Was this translation helpful? Give feedback.
All reactions