Weaviate
Use weaviate as the vector store for RAG applications, with by self hosting with Docker or by using the weaviate cloud version.
Website - weaviate.io
GitHub - weaviate/weaviate
Setting up weaviate with Docker
For quickly trying out weaviate with Superagent, a basic docker compose example is provided in the folder libs/.docker/external/vector-store/weaviate/
For a production setup refer to the official documentation on self hosting weaviate.
Run weaviate with docker compose
-
cd
into the weaviate example folder -
Copy the
.env.example
file into a.env
file -
For quickly trying out weaviate you can keep the default environment variables, though it is advised to review them and change the
AUTHENTICATION_APIKEY_ALLOWED_KEYS
to a more secure secret passkey, and possibly disableAUTHENTICATION_ANONYMOUS_ACCESS_ENABLED
to disable access to the API in the browser. -
Start weaviate with docker compose using the provided
run.sh
script in the same folder. -
You can access the weaviate API in the browser to confirm the service is up.
http://localhost:8082 or http://weaviate:8082 if you have added the following to your
hosts
file. -
Enter the values in the superagent docker
.env
file
Weaviate container logs
Stop weaviate
Use the provided stop.sh
script to stop running services for weaviate
Uninstall weaviate
Use the provided uninstall.sh
script to remove the running services for weaviate
Setting up weaviate Cloud
Alternatively you can use the cloud hosted version of weaviate.
-
Sign up for an account here https://console.weaviate.cloud/
-
Create a new cluster named
superagent
-
Once the cluster has deployed, expand the cluster
Details
and underAuthentication
clickAPI Keys
- copy your key. -
Enter the values in the superagent docker
.env
file, paste the key in the variableWEAVIATE_API_KEY
. -
Grab the
Cluster Url
, e.ghttps://superagent-1234567.weaviate.network
- enter the Cluster Url in theWEAVIATE_URL
var.