homanp / langchain-ui

🧬 The open source chat-ai toolkit

Home Page:https://langchain-ui.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Memory tweaks

homanp opened this issue · comments

Is your proposal related to a problem?

Memory should only take into account the last 5 messages for performance reasons.

Describe the solution you'd like

Only fetch the five last messages and feed into BufferMemory