How to Install Weaviate on Debian Latest?

Weaviate is an open-source, cloud-native, real-time, vector search engine that allows you to explore structured and unstructured data to retrieve contextualized insights. In this tutorial, we will learn how to install Weaviate on Debian Latest.

Prerequisites

Before installing Weaviate on Debian Latest, you need to have the following:

Step 1: Install Docker and Docker Compose

# Update the package list
sudo apt-get update

# Remove the existing Docker installations
sudo apt-get remove docker docker-engine docker.io containerd runc

# Install Docker dependencies
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release

# Add Docker GPG key
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

# Add Docker repository
echo \
  "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

# Update the package list
sudo apt-get update

# Install Docker and Docker Compose
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose

Step 2: Download Weaviate Docker Compose File

# Create a Weaviate directory
mkdir weaviate && cd weaviate

# Download the Weaviate Docker Compose file
wget https://raw.githubusercontent.com/semi-technologies/weaviate/v1.5.0/docker-compose-production.yml

Step 3: Configure Weaviate

# Open the Weaviate Docker Compose file
nano docker-compose-production.yml

# Edit the environment variables as per your requirements
- WEAVIATE_HOST=your-hostname
- WEAVIATE_PORT=your-port
- WEAVIATE_CONFIG_FILE=/app/config.toml
- WEAVIATE_GRAPHQL_ENDPOINT=/graphql
- WEAVIATE_ENABLE_ANALYZER=true
- WEAVIATE_SCHEMA_FILE=/app/schema.json
- WEAVIATE_DEFAULT_NAMESPACE=your-namespace
- WEAVIATE_SLACK_ENABLED=false
- WEAVIATE_NATS_URL=nats://nats:4222
- WEAVIATE_NEURON_SIZE=512
- WEAVIATE_NEURON_FILE=/app/neurons.yaml
- WEAVIATE_ENABLE_NEURON_CACHE=true

Step 4: Run Weaviate

# Start Weaviate
sudo docker-compose -f docker-compose-production.yml up -d

Step 5: Verify Weaviate

# Verify Weaviate
sudo docker-compose -f docker-compose-production.yml logs

Congratulations! You have successfully installed Weaviate on Debian Latest. You can now explore structured and unstructured data to retrieve contextualized insights.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!