Feature/chatbot memory - #133
Merged
Merged
Conversation
Document the planned independent chat-session memory model with optional history-session attachment so implementation can follow the agreed LangGraph approach. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
- Added functions to create, retrieve, and reset chat session IDs using sessionStorage and in-memory storage. - Integrated chat session handling in ChatPage component, allowing users to attach history sessions and manage document uploads accordingly. - Updated UI to reflect changes in session management, including disabling document uploads when a history session is attached. - Enhanced error handling and user feedback for session-related actions.
- Added user_id field to ChatMemoryRequest to associate requests with specific users. - Updated invoke method in ChatMemoryService to generate a thread ID using user_id and chat_session_id for better session tracking.
- Eliminated the attached_session_id field from ChatQueryRequest and related logic in chat_query function. - Removed associated UI elements and state management for attached session in ChatPage component. - Cleaned up unused imports and functions related to session attachment, streamlining chat memory service interactions.
…Tstream2/SummarizationTool into feature/chatbot-memory
- Introduced context usage tracking in ChatMemoryService to monitor token usage and context limits. - Added ContextWindowExceededError for better error handling when context limits are exceeded. - Updated ChatPage component to display context usage information, including estimated tokens and omitted message counts. - Implemented logic to manage context levels (normal, warning, critical) based on usage percentage.
…Tstream2/SummarizationTool into feature/chatbot-memory
Sam120204
marked this pull request as ready for review
June 10, 2026 20:30
… into the chat page
…Tstream1/SummarizationTool into feature/chatbot-memory
| return | ||
| try: | ||
| asyncio.run(self._close_async_checkpointer_context()) | ||
| except Exception: |
| return | ||
| try: | ||
| await self._async_checkpointer_context.__aexit__(None, None, None) | ||
| except Exception: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
langgraph for chat memory