Skip to content

Anshler/langchain-autogpt-with-modified-memory-management

 
 

Repository files navigation

🦜️🔗 LangChain

⚡ Building applications with LLMs through composability ⚡

In autogpt's agent.py, the lastest replies got append to both memory and full_message_history, so when we retrieve memory, we often got the same messages in message history, which is inefficient.

I modified it so that only when message history exceed 1000 words, the oldest messages will be pop and appended to memory.

About

⚡ Vastly Optimized tokens usage of AutoGPT ⚡

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.8%
  • Makefile 0.1%
  • HTML 0.1%
  • Dockerfile 0.0%
  • TeX 0.0%
  • Shell 0.0%