weaviate-connection
БесплатноБез исполняемых скриптовНе проверенConnect to local Weaviate vector database and verify connection health
Об этом скилле
Weaviate Connection Skill
This skill helps you connect to a local Weaviate database instance running in Docker and verify the connection is healthy.
Important Note
This skill is designed for LOCAL Weaviate instances only. Claude Desktop and Claude Web have network restrictions that prevent connections to external services like Weaviate Cloud.
To use these skills, you must run Weaviate locally using Docker. See the weaviate-local-setup skill first.
Purpose
Establish and test connections to local Weaviate vector databases running on localhost.
When to Use This Skill
- User wants to connect to their local Weaviate database
- User needs to verify their Weaviate connection is working
- User asks to check Weaviate health or status
- After starting Weaviate with Docker
Prerequisites Check
BEFORE proceeding, Claude should verify:
Python environment is set up (from
weaviate-local-setupskill)- Virtual environment exists at
.venv/ - Dependencies are installed
- Virtual environment exists at
Weaviate Docker container is running
- Check with
docker ps | grep weaviate - If not running, guide user to start it
- Check with
Environment file exists
.envfile is present- Has required variables set
Automated Prerequisites Check
import subprocess
import sys
import os
from pathlib import Path
def check_prerequisites():
"""Check all prerequisites before connecting to Weaviate"""
print("🔍 Checking prerequisites...\n")
all_checks_passed = True
# Check 1: Virtual environment
venv_path = Path(".venv")
if venv_path.exists():
print("✅ Virtual environment found")
else:
print("⚠️ No virtual environment found")
print(" Creating virtual environment...")
subprocess.run([sys.executable, "-m", "venv", ".venv"])
print("✅ Virtual environment created")
# Check 2: Dependencies
try:
import weaviate
from dotenv import load_dotenv
print("✅ Python dependencies installed")
except ImportError:
print("⚠️ Missing dependencies")
print(" Installing weaviate-client and python-dotenv...")
subprocess.check_call([sys.executable, "-m", "pip", "install", "-q",
"weaviate-client", "python-dotenv"])
print("✅ Dependencies installed")
# Check 3: Docker container
result = subprocess.run(["docker", "ps"], capture_output=True, text=True)
if "weaviate" in result.stdout:
print("✅ Weaviate Docker container is running")
else:
print("❌ Weaviate Docker container not found")
print(" Please start Weaviate first:")
print(" cd weaviate-local-setup && docker-compose up -d")
all_checks_passed = False
# Check 4: .env file
if Path(".env").exists():
print("✅ .env file found")
else:
print("⚠️ .env file not found")
print(" Creating .env from template...")
if Path(".env.example").exists():
import shutil
shutil.copy(".env.example", ".env")
print("✅ .env file created")
print(" Please edit .env and add your API keys if needed")
else:
print("❌ No .env.example found")
all_checks_passed = False
print("\n" + "="*50)
if all_checks_passed:
print("✅ All prerequisites met! Ready to connect.")
else:
print("❌ Some prerequisites missing. Please resolve them first.")
print("="*50 + "\n")
return all_checks_passed
# Run the check
if __name__ == "__main__":
check_prerequisites()
Claude should run this check automatically when this skill is loaded.
Requirements
- Python 3.8+
- weaviate-client library (
pip install weaviate-client) - Local Weaviate instance running in Docker (see
weaviate-local-setupskill) - Docker Desktop running
Connection Instructions
Step 1: Ensure Weaviate is Running Locally
Before connecting, verify Weaviate Docker container is running:
# Check if Weaviate is running
docker ps | grep weaviate
# If not running, start it with docker-compose
cd weaviate-local-setup
docker-compose up -d
# Verify Weaviate is ready
curl http://localhost:8080/v1/.well-known/ready
Step 2: Install Dependencies
pip install weaviate-client python-dotenv
Step 3: Configure Environment Variables
Update your .env file for local connection:
# .env file
WEAVIATE_URL=localhost:8080
WEAVIATE_API_KEY= # Leave empty for local instances
# Optional: Only needed if using these vectorizers
OPENAI_API_KEY=your-openai-key
COHERE_API_KEY=your-cohere-key
Step 4: Create Connection Code
Basic Connection (Recommended):
import weaviate
import os
from dotenv import load_dotenv
# Load environment variables
load_dotenv()
# Connect to local Weaviate
client = weaviate.connect_to_local(
host="localhost",
port=8080,
grpc_port=50051
)
# Test the conn
Установить weaviate-connection в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл weaviate-connection?
Connect to local Weaviate vector database and verify connection health
Как установить скилл weaviate-connection?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл weaviate-connection запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic