Merge pull request #794 from crimson-knight/add-documentation-for-caching-types

Adds information on how to use the other cache methods available
This commit is contained in:
Richard Beales
2023-04-12 19:31:23 +01:00
committed by GitHub
2 changed files with 12 additions and 0 deletions

View File

@@ -17,3 +17,4 @@ OPENAI_AZURE_EMBEDDINGS_DEPLOYMENT_ID=deployment-id-for-azure-embeddigs
IMAGE_PROVIDER=dalle
HUGGINGFACE_API_TOKEN=
USE_MAC_OS_TTS=False
MEMORY_BACKEND=local

View File

@@ -230,6 +230,17 @@ export PINECONE_ENV="Your pinecone region" # something like: us-east4-gcp
```
## Setting Your Cache Type
By default Auto-GPT is going to use LocalCache instead of redis or Pinecone.
To switch to either, change the `MEMORY_BACKEND` env variable to the value that you want:
`local` (default) uses a local JSON cache file
`pinecone` uses the Pinecone.io account you configured in your ENV settings
`redis` will use the redis cache that you configured
## View Memory Usage
1. View memory usage by using the `--debug` flag :)