Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v3-dev] Dedicate one LangChain history object per chat #1151

Merged
merged 3 commits into from
Dec 11, 2024

Conversation

dlqqq
Copy link
Member

@dlqqq dlqqq commented Dec 10, 2024

Description

  • Closes [v3-dev] Dedicate one instance of LLM memory per chat #1147
  • Provides a new YChatHistory class, an implementation of BaseChatMessageHistory that accepts a reference to a YChat shared document and returns the last 4 messages when used by a chat model
  • Creates a new instance of YChatHistory per chat room, meaning that the chat model assigned to one chat room can only retrieve history from that chat room.

Demo

Screen.Recording.2024-12-10.at.12.52.22.PM.mov

Copy link

@brichet brichet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks.

@dlqqq dlqqq force-pushed the separate-lc-histories branch from edfaafc to 9d15f22 Compare December 11, 2024 00:12
@dlqqq dlqqq merged commit 3581a8f into jupyterlab:v3-dev Dec 11, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants