Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

resolved latest conflicts

cs0lar5592dbd277f5
diff --cc .env.template
index 207360052b,4694aca085..10257ca350
--- a/.env.template
+++ b/.env.template
@@@ -17,13 -17,4 +17,13 @@@ OPENAI_AZURE_EMBEDDINGS_DEPLOYMENT_ID=d
IMAGE_PROVIDER=dalle
HUGGINGFACE_API_TOKEN=
USE_MAC_OS_TTS=False
+WEAVIATE_HOST="127.0.0.1"
+WEAVIATE_PORT=8080
+WEAVIATE_PROTOCOL="http"
+USE_WEAVIATE_EMBEDDED=False
+WEAVIATE_EMBEDDED_PATH="/home/me/.local/share/weaviate"
+WEAVIATE_USERNAME=
+WEAVIATE_PASSWORD=
+WEAVIATE_API_KEY=
+MEMORY_INDEX="auto-gpt"
- MEMORY_BACKEND="local"
+ MEMORY_BACKEND=local
diff --cc README.md
index 9b7753b41e,a2e14189e8..7664f07769
--- a/README.md
+++ b/README.md
@@@ -223,28 -233,17 +233,38 @@@ export PINECONE_ENV="Your pinecone regi
```
+## Weaviate Setup
+
+[Weaviate](https://weaviate.io/) is an open-source vector database. It allows to store data objects and vector embeddings from ML-models and scales seamlessly to billion of data objects. [An instance of Weaviate can be created locally (using Docker), on Kubernetes or using Weaviate Cloud Services](https://weaviate.io/developers/weaviate/quickstart).
+Although still experimental, [Embedded Weaviate](https://weaviate.io/developers/weaviate/installation/embedded) is supported which allows the Auto-GPT process itself to start a Weaviate instance. To enable it, set `USE_WEAVIATE_EMBEDDED` to `True` and make sure you `pip install "weaviate-client>=3.15.4"`.
+
+#### Setting up environment variables
+
+In your `.env` file set the following:
+
+```
+MEMORY_BACKEND=weaviate
+WEAVIATE_HOST="127.0.0.1" # the IP or domain of the running Weaviate instance
+WEAVIATE_PORT="8080"
+WEAVIATE_PROTOCOL="http"
+WEAVIATE_USERNAME="your username"
+WEAVIATE_PASSWORD="your password"
+WEAVIATE_API_KEY="your weaviate API key if you have one"
+WEAVIATE_EMBEDDED_PATH="/home/me/.local/share/weaviate" # this is optional and indicates where the data should be persisted when running an embedded instance
+USE_WEAVIATE_EMBEDDED=False # set to True to run Embedded Weaviate
+MEMORY_INDEX="Autogpt" # name of the index to create for the application
+```
+ ## 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 :)
diff --cc requirements.txt
index 5ec42b2f5f,b864c1d3e8..37fdf8c3da
--- a/requirements.txt
+++ b/requirements.txt
@@@ -15,5 -15,5 +15,6 @@@ pinecone-client==2.2.
redis
orjson
Pillow
+weaviate-client==3.15.5
coverage
-flake8
++flake8