weaviate-data-ingestion
БесплатноБез исполняемых скриптовНе проверенUpload and process data into local Weaviate collections with support for single objects, batch uploads, and multi-modal content
Об этом скилле
Weaviate Data Ingestion Skill
This skill helps you upload data to your local Weaviate collections efficiently, handling everything from single objects to large batch imports.
Important Note
This skill is designed for LOCAL Weaviate instances only. Ensure you have Weaviate running locally in Docker before using this skill.
Purpose
Add data to your local Weaviate collections with automatic vectorization, proper error handling, and progress tracking.
When to Use This Skill
- User wants to add data to a collection
- User needs to upload documents, articles, or records
- User has images or multi-modal content to ingest
- User wants to import data from files (JSON, CSV, text)
- User asks about batch uploading or bulk data import
Prerequisites Check
Claude should verify these prerequisites before proceeding:
- ✅ weaviate-local-setup completed - Python environment and dependencies installed
- ✅ weaviate-connection completed - Successfully connected to Weaviate
- ✅ weaviate-collection-manager used - Target collection exists
- ✅ Docker container running - Weaviate is accessible at localhost:8080
If any prerequisites are missing, Claude should:
- Load the required prerequisite skill first
- Guide the user through the setup
- Then return to this skill
Prerequisites
- Local Weaviate running in Docker (see weaviate-local-setup skill)
- Active Weaviate connection (use weaviate-connection skill first)
- Existing collection (use weaviate-collection-manager skill to create)
- Python weaviate-client library installed
Operations
1. Add a Single Object
import weaviate
from weaviate.classes.data import DataObject
# Assuming client is already connected
collection = client.collections.get("Articles")
# Add one object
uuid = collection.data.insert(
properties={
"title": "Introduction to Vector Databases",
"content": "Vector databases enable semantic search by storing embeddings...",
"author": "John Doe",
"publishDate": "2025-01-20T10:00:00Z"
}
)
print(f"✅ Object created with UUID: {uuid}")
2. Add Object with Custom Vector
# If you bring your own embeddings
collection = client.collections.get("CustomEmbeddings")
uuid = collection.data.insert(
properties={
"text": "Your content here",
"metadata": "Additional info"
},
vector=[0.1, 0.2, 0.3, ...] # Your pre-computed embedding
)
3. Batch Upload Multiple Objects
Simple Batch Insert
from weaviate.util import generate_uuid5
collection = client.collections.get("Articles")
# Prepare your data
articles = [
{
"title": "AI in 2025",
"content": "Artificial intelligence continues to evolve...",
"author": "Jane Smith",
"publishDate": "2025-01-15T00:00:00Z"
},
{
"title": "Vector Search Explained",
"content": "Vector search allows you to find similar items...",
"author": "Bob Johnson",
"publishDate": "2025-01-18T00:00:00Z"
},
# ... more articles
]
# Batch insert with context manager (recommended)
with collection.batch.dynamic() as batch:
for article in articles:
batch.add_object(
properties=article,
# Optional: provide deterministic UUID based on content
uuid=generate_uuid5(article['title'])
)
print(f"✅ Inserted {len(articles)} articles")
Batch with Error Handling
from weaviate.util import generate_uuid5
collection = client.collections.get("Articles")
failed_objects = []
with collection.batch.dynamic() as batch:
for i, article in enumerate(articles):
try:
batch.add_object(
properties=article,
uuid=generate_uuid5(article.get('title', str(i)))
)
except Exception as e:
failed_objects.append({"index": i, "error": str(e), "data": article})
print(f"⚠️ Failed to add article {i}: {str(e)}")
# Check batch results
if batch.failed_objects:
print(f"❌ {len(batch.failed_objects)} objects failed")
for failed in batch.failed_objects:
print(f" Error: {failed.message}")
else:
print(f"✅ All {len(articles)} objects inserted successfully")
4. Upload Data from JSON File
import json
# Read JSON file
with open("articles.json", "r") as f:
data = json.load(f)
collection = client.collections.get("Articles")
# Batch insert
with collection.batch.dynamic() as batch:
for item in data:
batch.add_object(properties=item)
print(f"✅ Imported {len(data)} objects from JSON")
5. Upload Data from CSV File
import csv
from datetime import datetime
collection = client.collections.get("Articles")
with open("articles.csv", "r") as csvfile:
reader = csv.DictReader(csvfile)
with collection.batch.dynamic() as batch:
for row in reader:
# Transform CSV row
Установить weaviate-data-ingestion в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл weaviate-data-ingestion?
Upload and process data into local Weaviate collections with support for single objects, batch uploads, and multi-modal content
Как установить скилл weaviate-data-ingestion?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл weaviate-data-ingestion запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic