You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A strategy is needed to decide where session data (state) is stored (server side / client side). This applies to API responses as well as chat history.
The text was updated successfully, but these errors were encountered:
This endpoint generates a session_id, which is then stored in a session cookie:
Session Management:
When the langgraph state graph (chatbot) is initialized, the session_id is used to create a unique entry in the SQLite database. Each interaction with the graph (i.e., user input and AI response) results in a checkpoint being saved in the database. This checkpoint includes information such as:
Chat history
Search criteria
Spatial context
Search results
This checkpoint functions as a form of short-term memory.
Limitations and Benefits:
Currently, checkpoints are not retained if the server is restarted. However, this approach allows different clients to maintain their own sessions and respective memories even when using a single SQLite database.
A strategy is needed to decide where session data (state) is stored (server side / client side). This applies to API responses as well as chat history.
The text was updated successfully, but these errors were encountered: