muellerberndt / mini-agi

MiniAGI is a simple general-purpose autonomous agent based on the OpenAI API.
MIT License
2.81k stars 294 forks source link

Add redis option for memory #10

Closed lludlow closed 1 year ago

lludlow commented 1 year ago

I saw https://github.com/muellerberndt/micro-gpt/pull/9 adding pgsql. However, I felt Redis would be a better and more lightweight option. I am using redis-stack-server

muellerberndt commented 1 year ago

@madbuda thanks for the PR! Your code isn't implementing a vector store though? This wouldn't work very well IMO as we might be overflowing the context or return irrelevant items.

muellerberndt commented 1 year ago

Gonna close this for now, if we're gonna add Redis we need to use similarity search & adapt the code to the new structure (memory base class + subclasses).