weaviate-local-setup
БесплатноБез исполняемых скриптовНе проверенSet up and manage a local Weaviate instance using Docker
Об этом скилле
Weaviate Local Setup Skill
Run Weaviate locally using Docker for development, testing, and avoiding network restrictions in Claude Desktop/Web.
Why Use Local Weaviate?
Benefits:
- No network restrictions in Claude Desktop/Web
- Free (no cloud costs)
- Full control over data and configuration
- Fast development/testing cycles
- Works offline
- No API key management for cloud instances
Best for:
- Development and testing
- Learning Weaviate
- Working in Claude Desktop with network restrictions
- Privacy-sensitive projects
Prerequisites
Required:
- Docker Desktop installed and running
- Available ports: 8080 (Weaviate), 8081 (optional for Weaviate Console)
- Python 3.8+ installed
Optional (for specific vectorizers):
- OpenAI API key (for text2vec-openai)
- Cohere API key (for text2vec-cohere)
- Anthropic API key (for generative-anthropic)
Python Environment Setup
IMPORTANT: Do this FIRST before using any Weaviate skills!
Claude will create a virtual environment and install dependencies to avoid conflicts with your system Python.
Step 1: Create Virtual Environment
# Navigate to the weaviate-claude-skills directory
cd ~/Documents/weaviate-claude-skills
# Create virtual environment
python3 -m venv .venv
# Activate it
source .venv/bin/activate # macOS/Linux
# OR
.venv\Scripts\activate # Windows
Step 2: Install Dependencies
# Install required packages
pip install weaviate-client python-dotenv
# Optional: Install additional packages for specific vectorizers
pip install openai # If using OpenAI vectorizer
pip install cohere # If using Cohere vectorizer
Or install everything at once:
pip install -r requirements.txt
Step 3: Verify Installation
import subprocess
import sys
# Check if dependencies are installed
try:
import weaviate
from dotenv import load_dotenv
print("✅ All required packages are installed!")
except ImportError as e:
print(f"❌ Missing package: {e}")
print("Installing dependencies...")
subprocess.check_call([sys.executable, "-m", "pip", "install",
"weaviate-client", "python-dotenv"])
print("✅ Dependencies installed successfully!")
When Using Claude
Claude will check and ensure dependencies are installed before running any Weaviate code.
If you see errors about missing packages, Claude will:
- Check if the virtual environment exists
- Create it if needed
- Install required dependencies
- Proceed with your request
Pro Tip: Keep the virtual environment activated throughout your Claude session for best results.
Quick Start
Option 1: Basic Setup (No API Keys Required)
Use Weaviate's built-in vectorizer (no external API needed):
# Start Weaviate with transformers (runs locally, no API key)
docker run -d \
--name weaviate \
-p 8080:8080 \
-p 50051:50051 \
-e QUERY_DEFAULTS_LIMIT=25 \
-e AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
-e PERSISTENCE_DATA_PATH='/var/lib/weaviate' \
-e DEFAULT_VECTORIZER_MODULE='text2vec-transformers' \
-e ENABLE_MODULES='text2vec-transformers' \
-e TRANSFORMERS_INFERENCE_API='http://t2v-transformers:8080' \
-e CLUSTER_HOSTNAME='node1' \
semitechnologies/weaviate:1.28.1
# Start the transformers module
docker run -d \
--name t2v-transformers \
-e ENABLE_CUDA=0 \
semitechnologies/transformers-inference:sentence-transformers-multi-qa-MiniLM-L6-cos-v1
Connection:
WEAVIATE_URL=localhost:8080
WEAVIATE_API_KEY= # Leave empty for local
Option 2: With OpenAI Vectorizer
Use OpenAI embeddings (requires OpenAI API key):
docker run -d \
--name weaviate \
-p 8080:8080 \
-p 50051:50051 \
-e QUERY_DEFAULTS_LIMIT=25 \
-e AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
-e PERSISTENCE_DATA_PATH='/var/lib/weaviate' \
-e DEFAULT_VECTORIZER_MODULE='text2vec-openai' \
-e ENABLE_MODULES='text2vec-openai,generative-openai' \
-e CLUSTER_HOSTNAME='node1' \
semitechnologies/weaviate:1.28.1
Connection (.env):
WEAVIATE_URL=localhost:8080
WEAVIATE_API_KEY= # Leave empty
OPENAI_API_KEY=your-openai-key-here
Option 3: Docker Compose (Recommended for Production)
See docker-compose.yml in this folder (created separately).
# Start Weaviate
docker-compose up -d
# Check status
docker-compose ps
# View logs
docker-compose logs -f weaviate
# Stop Weaviate
docker-compose down
# Stop and remove data
docker-compose down -v
Docker Commands Reference
Container Management
# Start Weaviate
docker start weaviate
# Stop Weaviate
docker stop weaviate
# Restart Weaviate
docker restart weaviate
# Check if running
docker ps | grep weaviate
# View logs
docker logs weaviate
# Follow logs in real-time
docker logs -f weaviate
# Remove container (keeps data)
docker rm weaviate
# Remove container and data volume
docker rm -v weaviate
Health Checks
# Check if Weavi
Установить weaviate-local-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл weaviate-local-setup?
Set up and manage a local Weaviate instance using Docker
Как установить скилл weaviate-local-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл weaviate-local-setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub