Weaviate

Configure Weaviate vector database

Configuration

weaviate:
  connection_type: local
  host: localhost
  port: 8001
  grpc_host: localhost
  grpc_port: 50051
  api_key: ""

Configuration Options

FieldTypeDefaultRequiredDescription
connection_typestring"local"Connection type: "local" or "custom"
hoststring"localhost"HTTP host for Weaviate instance
portinteger8001HTTP port for Weaviate instance
grpc_hoststring"localhost"gRPC host for Weaviate instance
grpc_portinteger50051gRPC port for Weaviate instance
api_keystring""API key for authentication (empty for local)

Docker Setup

docker-compose.yml
services:
  weaviate:
    image: weaviate:1.28.3
    restart: unless-stopped
    ports:
      - "8001:8080"
      - "50051:50051"
    environment:
      QUERY_DEFAULTS_LIMIT: 25
      AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
      PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
      DEFAULT_VECTORIZER_MODULE: 'none'
      ENABLE_MODULES: ''
    volumes:
      - weaviate_data:/var/lib/weaviate

volumes:
  weaviate_data:

Basic Operations

# Check health
curl http://localhost:8001/v1/.well-known/ready

# Check document count
curl http://localhost:8001/v1/objects

Weaviate Documentation