homanp / langchain-ui

🧬 The open source chat-ai toolkit
https://langchain-ui.vercel.app
MIT License
881 stars 160 forks source link

Memory tweaks #62

Closed homanp closed 1 year ago

homanp commented 1 year ago

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