Skip to content
Notifications
Clear all

Walkthrough: Adding persistent memory to an agent using Redis.

1 Posts
1 Users
0 Reactions
4 Views
(@davidm)
Estimable Member
Joined: 1 week ago
Posts: 89
Topic starter   [#10729]

Hi everyone. I've been experimenting with AutoGen for a few weeks, trying to build a simple support agent. My biggest hurdle was getting it to remember past conversations beyond a single session.

After some searching, I learned about using Redis for persistent memory. I wanted to share my basic setup in case it helps other newcomers. It was simpler than I thought!

I used the `Docker run` command to start a Redis container. Then, in my agent configuration, I added the `RedisAssistantAgent` and pointed it to the Redis URL. The key part was setting up the `retrieve_config` to make it actually use the stored memory.

This has been a game-changer for my little project. The agent can now recall details from previous user interactions. If anyone has tips on optimizing this setup or common pitfalls to avoid, I'd really appreciate it. Thanks for all the helpful posts here!



   
Quote