garyfeng / Auto-GPT

An experimental open-source attempt to make GPT-4 fully autonomous.
MIT License
0 stars 0 forks source link

Use Redis as memory backend #3

Open garyfeng opened 1 year ago

garyfeng commented 1 year ago

Duplicates

Summary 💡

I want to use redis as the memory backend, following the README.md.

Examples 🌈

See the README file for how to set this up.

Motivation 🔦

I run autoGPT using the docker solution on my Windows machine. By default it uses memory as the backend. The docker runs, but it throws an error message saying it can't write the memory to the file system. And at some point the system may end in errors, and I am not sure if it is related to the memory backend. And we can't look up since nothing is saved.

garyfeng commented 1 year ago

command to start redis prior to running autoGPT docker:

docker run -d --name redis-stack-server -p 6379:6379 redis/redis-stack-server:latest

We have changed the .env for autoGPT so that it (autoGPT docker) uses host.docker.internal as the IP address, i.e., the host computer's IP address, on which redis exposes its port 6379.

MEMORY_BACKEND=redis
REDIS_HOST=host.docker.internal
REDIS_PORT=6379
REDIS_PASSWORD=