Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local (not docker) install does not pick up Redis as a LocalCache #3859

Closed
1 task done
thurft opened this issue May 5, 2023 · 7 comments
Closed
1 task done

Local (not docker) install does not pick up Redis as a LocalCache #3859

thurft opened this issue May 5, 2023 · 7 comments

Comments

@thurft
Copy link

thurft commented May 5, 2023

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

Which Operating System are you using?

MacOS

Which version of Auto-GPT are you using?

Stable (branch)

GPT-3 or GPT-4?

GPT-3.5

Steps to reproduce 🕹

################################################################################
### MEMORY
################################################################################

### MEMORY_BACKEND - Memory backend type
## local - Default
## pinecone - Pinecone (if configured)
## redis - Redis (if configured)
## milvus - Milvus (if configured - also works with Zilliz)
## MEMORY_INDEX - Name of index created in Memory backend (Default: auto-gpt)
MEMORY_BACKEND=redis
MEMORY_INDEX=auto-gpt

### PINECONE
## PINECONE_API_KEY - Pinecone API Key (Example: my-pinecone-api-key)
## PINECONE_ENV - Pinecone environment (region) (Example: us-west-2)
#PINECONE_API_KEY=
#PINECONE_ENV=

### REDIS
## REDIS_HOST - Redis host (Default: localhost, use "redis" for docker-compose)
## REDIS_PORT - Redis port (Default: 6379)
## REDIS_PASSWORD - Redis password (Default: "")
## WIPE_REDIS_ON_START - Wipes data / index on start (Default: True)
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
WIPE_REDIS_ON_START=True

Current behavior 😯

I have everything installed without docker in my mac - Auto-GPT & Redis. Everything works. I can connect locally to Redis via the regular CLI. But Auto-GPT never uses Redis. I can however get it to use PINECONE. So i think is a Redis only bug.

"I want Auto-GPT to: How to configure redis in auto-gpt?
RedisGPT  has been created with the following details:
Name:  RedisGPT
Role:  an AI assistant that specializes in configuring Redis for the Auto-GPT system, providing expert guidance to ensure optimal performance and stability.
Goals:
-  Analyze the existing Auto-GPT infrastructure and recommend the appropriate Redis deployment strategy based on the system's requirements and constraints.
-  Provide detailed instructions on the installation and configuration of Redis, including the selection of appropriate hardware and software components.
-  Optimize Redis performance by fine-tuning key parameters such as memory usage, persistence, and replication, based on the Auto-GPT workload characteristics.
-  Implement best practices for Redis security, such as authentication, encryption, and access control, to ensure the system's data integrity and confidentiality.
-  Monitor Redis performance and proactively identify and resolve any issues that may arise, ensuring the Auto-GPT system's smooth and uninterrupted operation.
  Error: Redis is not installed. Please install redis-py to use Redis as a memory backend.
Using memory of type:  LocalCache
Using Browser:  chrome"

Expected behavior 🤔

Using memory of type: Redis

Your prompt 📝

# Paste your prompt here

Your Logs 📒

<insert your logs here>
@Boostrix
Copy link
Contributor

Boostrix commented May 6, 2023

There are now so many memory related issues being reported that it would probably make sense to review/improve unit testing in that area - and potentially even execute some self-test during startup if that isn't already done ? An AI agent suffering from dementia isn't exactly helpful when it comes to improving itself (#15)

@k-boikov
Copy link
Contributor

k-boikov commented May 6, 2023

Will tell you a small secret - memory in latest stable is completely broken and it doesn't matter what memory you use. We switched to summary memory internally till we fix the conventional memory storages.

@Boostrix
Copy link
Contributor

Boostrix commented May 6, 2023

at least you are able to tag things ... to help your ... memory :-)

@ether8unny
Copy link

I'm running in stable-0.2.2 to maintain memory., with redis.
git checkout -b stble-0.2.2 if you want to revert for the time being

@Boostrix
Copy link
Contributor

Boostrix commented May 7, 2023

this is one of those reasons why more tests are needed, and possibly some form of "selftest" that can be executed by users (or is executed during startup) to ensure that everything is working as expected. The number of folks running into obscure issues like these and leaving Auto-GPT alone because they consider it a dysfunctional POS is probably not to be underestimated - just because the system fails to check itself during startup:

#3855 (comment)

At the very least it should be able to tell users what is working and what isn't OPTIONALLY

@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2023

This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.

@github-actions github-actions bot added the Stale label Sep 6, 2023
@github-actions
Copy link
Contributor

This issue was closed automatically because it has been stale for 10 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants