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.

merged master and resolved conflicts

cs0lar23b89b80cd36
diff --cc README.md
index 2bd1b44493,cad5699fbb..9d8595b65a
--- a/README.md
+++ b/README.md
@@@ -317,37 -336,17 +336,39 @@@ export PINECONE_ENV="<YOUR_PINECONE_REG
export MEMORY_BACKEND="pinecone"
```
+## 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.
+ ### Milvus Setup
- To switch to either, change the `MEMORY_BACKEND` env variable to the value that you want:
+ [Milvus](https://milvus.io/) is a open-source, high scalable vector database to storage huge amount of vector-based memory and provide fast relevant search.
- `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
+ - setup milvus database, keep your pymilvus version and milvus version same to avoid compatible issues.
+ - setup by open source [Install Milvus](https://milvus.io/docs/install_standalone-operator.md)
+ - or setup by [Zilliz Cloud](https://zilliz.com/cloud)
+ - set `MILVUS_ADDR` in `.env` to your milvus address `host:ip`.
+ - set `MEMORY_BACKEND` in `.env` to `milvus` to enable milvus as backend.
+ - optional
+ - set `MILVUS_COLLECTION` in `.env` to change milvus collection name as you want, `autogpt` is the default name.
## View Memory Usage