saskinosie/weaviate-claude-skills

Claude Skills for connecting Claude.ai to local Weaviate vector databases - manage collections, ingest data, and query with RAG

License:MITLanguage:N/A376
人工智能Claudeclaude-aiclaude-skillsdata-ingestionDockerdocker-composedocument-searchembeddingsknowledge-basellmPythonragsemantic-searchvector-databaseweaviate

Deep Analysis

为 Claude 提供与本地 Weaviate 向量数据库交互的完整工具包,支持集合管理、数据导入和 RAG 查询

Core Features

Technical Implementation

Highlights
  • 本地 Docker 部署绕过 Claude Desktop/Web 网络限制,无需云服务费用
  • 支持图像编码和文档分块,可进行图像搜索
Use Cases
  • 构建本地私有知识库并进行语义检索
  • 企业内部文档的 RAG 问答系统
Limitations
  • 仅支持本地 Docker 部署,不支持云端 Weaviate 实例
Tech Stack
WeaviateDockerPython

Weaviate Skills Collection

A comprehensive set of Claude Skills for working with local Weaviate vector databases. These skills enable you to connect, manage, ingest data, and query Weaviate running in Docker directly through Claude.ai or Claude Desktop.

Important: Local Weaviate Required

These skills are designed for LOCAL Weaviate instances running in Docker.

⚠️ Claude Desktop and Claude Web have network restrictions that prevent connections to external services like Weaviate Cloud. Therefore, these skills use a local Docker-based Weaviate instance that runs on localhost:8080 with no network limitations.

Benefits of Local Setup:

  • ✅ No network restrictions in Claude
  • ✅ Free (no cloud costs)
  • ✅ Fast local queries
  • ✅ Full data privacy and control
  • ✅ Works offline (with transformers vectorizer)

What are Claude Skills?

Claude Skills are self-contained knowledge modules that Claude can load on-demand. Each skill is a folder containing a SKILL.md file with instructions, code examples, and best practices for a specific task.

Skills provide:

  • Progressive Disclosure: Claude only loads what it needs
  • Composability: Skills can depend on other skills
  • Portability: Easy to share and reuse across projects
  • No Deployment: Works directly in Claude.ai web or Claude Desktop
  • Client-Friendly: Just download folders and start using
  • Local-First: Run Weaviate in Docker, no external dependencies

Available Skills

0. weaviate-local-setup ← START HERE

Set up and manage a local Weaviate instance using Docker for development and testing.

When to use: Before anything else - sets up your local Weaviate database

Key features:

  • Docker and Docker Compose configurations
  • Multiple vectorizer options (transformers, OpenAI, Cohere)
  • Data persistence and backup
  • No cloud costs or network restrictions
  • Perfect for Claude Desktop/Web environments

1. weaviate-connection

Connect to your local Weaviate instance and verify connection health.

When to use: After starting Weaviate - establishes database connection

Key features:

  • Local connection to Docker instance
  • Environment variable management
  • Connection health checks
  • Error troubleshooting

2. weaviate-collection-manager

Create, view, update, and delete Weaviate collections with comprehensive schema management.

When to use: Setting up database schema, managing collections

Key features:

  • List and inspect collections
  • Create collections with various vectorizers
  • Configure RAG and reranking
  • Data type reference tables
  • Multi-modal collection support

3. weaviate-data-ingestion

Upload data to Weaviate collections with support for single objects, batch uploads, and multi-modal content.

When to use: Adding documents, images, or any data to collections

Key features:

  • Single and batch object insertion
  • JSON/CSV file import
  • Image upload (base64 encoding)
  • Document chunking strategies
  • Progress tracking for large uploads
  • Error handling and validation

4. weaviate-query-agent

Search and retrieve data using semantic search, filters, RAG, and hybrid queries.

When to use: Searching collections, Q&A, finding similar items

Key features:

  • Semantic vector search
  • Keyword (BM25) search
  • Hybrid search
  • Advanced filtering
  • RAG (Retrieval Augmented Generation)
  • Multi-modal image search
  • Aggregation and analytics

Quick Start

Step 1: Get the Skills

Option A: Download

  1. Download this repository as ZIP
  2. Extract the weaviate-skills folder
  3. Place it somewhere accessible (e.g., ~/Documents/)

Option B: Clone

git clone https://github.com/saskinosie/weaviate-claude-skills.git ~/Documents/weaviate-claude-skills

Option C: Project Integration

  1. Add weaviate-skills/ to your project repository
  2. Commit skills alongside your code

Step 2: Set Up Python Environment (Optional)

Claude will handle this automatically, but you can set it up manually if preferred:

cd weaviate-claude-skills

# Create virtual environment
python3 -m venv .venv

# Activate it
source .venv/bin/activate  # macOS/Linux
# OR
.venv\Scripts\activate     # Windows

# Install dependencies
pip install -r requirements.txt

Note: When you use the skills with Claude, Claude will check for dependencies and create the virtual environment if needed.

Step 3: Start Local Weaviate

Required: Docker Desktop must be installed and running

cd weaviate-claude-skills/weaviate-local-setup
docker-compose up -d

Wait 10-15 seconds for startup, then verify:

curl http://localhost:8080/v1/.well-known/ready

Step 4: Use in Claude

Claude.ai Web:

  1. Open Claude.ai
  2. Upload the individual SKILL.md files you need (attachment limit: 20 files)
  3. Upload your .env file
  4. Say: "Connect to my local Weaviate instance"

Claude Desktop:

  1. Open Claude Desktop
  2. Reference the skills folder in your conversation
  3. Say: "I have Weaviate skills in ~/Documents/weaviate-skills. Connect to my local Weaviate instance."

Note: Due to the 20-file attachment limit in Claude Web, you may need to upload skills individually rather than the entire folder (the .git folder contains many files). Claude Desktop doesn't have this limitation.

Installation Details

Python Environment

Claude handles dependency management automatically! When you first use the skills, Claude will:

  1. Check if a virtual environment exists
  2. Create .venv/ if needed
  3. Install required packages (weaviate-client, python-dotenv, etc.)
  4. Run all Python code within the virtual environment

Manual setup (optional):

cd weaviate-claude-skills
python3 -m venv .venv
source .venv/bin/activate  # macOS/Linux
pip install -r requirements.txt

The requirements.txt includes:

weaviate-client>=4.0.0
openai>=1.0.0
python-dotenv>=1.0.0

Environment Setup

Your configuration goes in a .env file in the project root:

  1. Copy the template:

    cp .env.example .env
    
  2. Edit .env with your credentials:

    # Weaviate Connection (REQUIRED)
    WEAVIATE_URL=your-cluster.weaviate.cloud  # NO https:// prefix
    WEAVIATE_API_KEY=your-weaviate-api-key
    
    # Vectorizer API Keys (optional, only if using these services)
    OPENAI_API_KEY=your-openai-api-key
    COHERE_API_KEY=your-cohere-api-key
    
  3. Where to find your Weaviate credentials:

    • Log into Weaviate Cloud Console
    • Click on your cluster
    • REST Endpoint: Copy the URL (without https://)
    • API Key: Click "API Keys" to view/generate

Important:

  • .env is in .gitignore - never commit secrets to version control!
  • Share .env.example with your clients as a template
  • Each person needs their own .env file with their credentials

Local Setup (Docker)

For local development or if you have network restrictions in Claude:

  1. Install Docker Desktop (if not already installed)

  2. Start Weaviate locally using the weaviate-local-setup skill:

    cd weaviate-skills/weaviate-local-setup
    docker-compose up -d
    
  3. Update your .env for local connection:

    WEAVIATE_URL=localhost:8080
    WEAVIATE_API_KEY=  # Leave empty for local
    
  4. Verify it's running:

    curl http://localhost:8080/v1/.well-known/ready
    

Benefits of local setup:

  • No network restrictions (works in Claude Web and Claude Desktop)
  • Free (no cloud costs)
  • Faster development cycles
  • Full data control and privacy

Workflow

Cloud Workflow

1. Connect to Weaviate (weaviate-connection)
   ↓
2. Create/Manage Collections (weaviate-collection-manager)
   ↓
3. Upload Data (weaviate-data-ingestion)
   ↓
4. Query and Search (weaviate-query-agent)

Local Development Workflow

0. Start Local Weaviate (weaviate-local-setup)
   ↓
1. Connect to Weaviate (weaviate-connection) - using localhost:8080
   ↓
2. Create/Manage Collections (weaviate-collection-manager)
   ↓
3. Upload Data (weaviate-data-ingestion)
   ↓
4. Query and Search (weaviate-query-agent)

Example Usage

Example 1: Complete Setup

You: "I want to create a vector database for my technical documentation"

Claude: *Loads weaviate-connection skill*
        "Let me help you connect to Weaviate. Do you have a Weaviate Cloud
        account or a local instance?"

You: "I have a cloud instance at xyz.weaviate.cloud"

Claude: *Guides through connection setup*
        *Tests connection*
        ✅ Connected to Weaviate successfully!

You: "Create a collection for technical documents with RAG enabled"

Claude: *Loads weaviate-collection-manager skill*
        *Creates optimized collection schema*
        ✅ Created 'TechnicalDocuments' collection with OpenAI vectorizer and GPT-4 RAG

You: "Upload these 100 PDF files from /docs folder"

Claude: *Loads weaviate-data-ingestion skill*
        *Processes PDFs, chunks text, batch uploads*
        📊 Processing: [████████████████████] 100/100
        ✅ Successfully uploaded 100 documents (523 chunks)

You: "Find information about seismic zone requirements"

Claude: *Loads weaviate-query-agent skill*
        *Performs semantic search with RAG*

        🤖 Answer: Seismic zone requirements vary by location...
        📚 Sources: Building Code Manual (Page 45), Seismic Guidelines (Page 12)

Example 2: Quick Search

You: "Search my product catalog for items similar to 'wireless headphones under $200'"

Claude: *Loads weaviate-connection and weaviate-query-agent*
        *Connects to existing collection*
        *Runs hybrid search with price filter*

        Found 8 products:
        • Sony WH-1000XM4 - $179.99
        • Bose QuietComfort 45 - $199.00
Highly Recommended
agents

wshobson/agents

wshobson

Intelligent automation and multi-agent orchestration for Claude Code

The most comprehensive Claude Code plugin ecosystem, covering full-stack development scenarios with a three-tier model strategy balancing performance and cost.

25.6k2.8k3 days ago
Highly Recommended
awesome-claude-skills

ComposioHQ/awesome-claude-skills

ComposioHQ

A curated list of awesome Claude Skills, resources, and tools for customizing Claude AI workflows

The most comprehensive Claude Skills resource list; connect-apps is a killer feature.

19.9k2.0k3 days ago
Recommended
oh-my-opencode

code-yeongyu/oh-my-opencode

code-yeongyu

The Best Agent Harness. Meet Sisyphus: The Batteries-Included Agent that codes like you.

Powerful multi-agent coding tool, but note OAuth limitations.

17.5k1.2k3 days ago
Highly Recommended
ui-ux-pro-max-skill

nextlevelbuilder/ui-ux-pro-max-skill

nextlevelbuilder

An AI SKILL that provide design intelligence for building professional UI/UX multiple platforms

Essential for designers; comprehensive UI/UX knowledge base.

15.3k1.5k3 days ago
Recommended
claude-mem

thedotmack/claude-mem

thedotmack

A Claude Code plugin that automatically captures everything Claude does during your coding sessions, compresses it with AI (using Claude's agent-sdk), and injects relevant context back into future sessions.

A practical solution for Claude's memory issues.

14.0k9143 days ago
Highly Recommended
planning-with-files

OthmanAdi/planning-with-files

OthmanAdi

Claude Code skill implementing Manus-style persistent markdown planning — the workflow pattern behind the $2B acquisition.

Context engineering best practices; an open-source implementation of Manus mode.

9.3k8113 days ago