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

refactor: implementing the historical context of LangChainBot using the BufferMemory encapsulated by LangChain #537

Merged
merged 6 commits into from
Sep 10, 2023

Conversation

frostwandering
Copy link
Contributor

Optimize by implementing the historical context of LangChainBot using the BufferMemory encapsulated by LangChain.

@vercel
Copy link

vercel bot commented Sep 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
chatall ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 10, 2023 9:36am

@sunner
Copy link
Member

sunner commented Sep 7, 2023

Thank you very much! Introducing more LangChain features are exactly in the plan.

I have only one consideration. The Chat Title is not always unique. Is it a good choice of key? How about continuing using chatContext to restore messages?

… the BufferMemory encapsulated by LangChain.
@frostwandering
Copy link
Contributor Author

Yes, thank you for your suggestion. I have revised the code again, reducing the amount of previous modifications. Perhaps my previous modification ideas were too greedy, hahaha

… the BufferMemory encapsulated by LangChain.
Copy link
Member

@sunner sunner left a comment

Choose a reason for hiding this comment

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

Thank you for more commits. I have two comments on the latest code.

… the BufferMemory encapsulated by LangChain.
@frostwandering
Copy link
Contributor Author

Thank you for more commits. I have two comments on the latest code.

Thanks! You nailed it with those suggestions. I've fixed them up.

@sunner sunner changed the title Optimize:Optimize by implementing the historical context of LangChainBot using the BufferMemory encapsulated by LangChain. refactor: implementing the historical context of LangChainBot using the BufferMemory encapsulated by LangChain Sep 10, 2023
@sunner sunner merged commit 8ce75a2 into ai-shifu:main Sep 10, 2023
@sunner
Copy link
Member

sunner commented Sep 10, 2023

Thank you very much. The PR will be included in next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants