# Send Weaviate to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "weaviate",
    "name": "Weaviate",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/ivangdavila/weaviate",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/weaviate",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/weaviate",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=weaviate",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "modules.md",
      "operations.md",
      "v4-syntax.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "weaviate",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-10T20:57:14.618Z",
      "expiresAt": "2026-05-17T20:57:14.618Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=weaviate",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=weaviate",
        "contentDisposition": "attachment; filename=\"weaviate-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "weaviate"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/weaviate"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/weaviate",
    "downloadUrl": "https://openagent3.xyz/downloads/weaviate",
    "agentUrl": "https://openagent3.xyz/skills/weaviate/agent",
    "manifestUrl": "https://openagent3.xyz/skills/weaviate/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/weaviate/agent.md"
  }
}
```
## Documentation

### Critical: v4 Only (Dec 2024+)

v3 syntax is DEPRECATED. Before generating ANY Weaviate code:

Verify client version — must be weaviate-client>=4.0
Use context managers — with weaviate.connect_to_*() as client: or explicit client.close()
New imports — from weaviate.classes.config import Configure, Property

If you see v3 patterns (weaviate.Client(), client.schema.create_class(), path=[...] filters), stop and rewrite.

### Quick Reference

TopicFilev3→v4 migration tablev4-syntax.mdModule configurationmodules.mdBatch, hybrid, HNSWoperations.md

### v4 Syntax Essentials

# Connection (ALWAYS close)
with weaviate.connect_to_local() as client:
    # Collections (not classes)
    collection = client.collections.get("Article")
    
    # Queries
    response = collection.query.hybrid("search term", alpha=0.7)
    
    # Vector access
    vector = obj.vector["default"]  # Dict, not List
    
    # Filters
    Filter.by_property("category").equal("tech")

### Scope

This skill covers:

Schema design for RAG and semantic search
Vectorizer and reranker module configuration
Batch imports with error handling
Hybrid search tuning (alpha parameter)
HNSW index configuration for scale

### 1. Always Verify Modules

Before using text2vec-openai, generative-openai, or rerankers, verify they're enabled:

# docker-compose.yml
ENABLE_MODULES: 'text2vec-openai,generative-openai,reranker-cohere'

### 2. API Keys in Headers

client = weaviate.connect_to_local(
    headers={"X-OpenAI-Api-Key": os.environ["OPENAI_API_KEY"]}
)

### 3. Batch with Context Manager

with client.batch.dynamic() as batch:
    for item in data:
        batch.add_object(properties=item, collection="Name")

### 4. Hybrid Search Alpha

alpha=0 → BM25 only (keyword)
alpha=1 → Vector only (semantic)
alpha=0.5-0.75 → Balanced (typical for RAG)

### 5. Apply Filters BEFORE Vector Search

Filters in where reduce the search space first — always filter before near_text/near_vector.

### 6. Named Vectors vs Single Vector

Choose one pattern per collection:

# Single vector (simpler)
vectorizer_config=Configure.Vectorizer.text2vec_openai()

# Named vectors (multiple embeddings per object)
vector_config=[
    Configure.Vectors.text2vec_openai(name="content", source_properties=["body"]),
]

### 7. Debug Empty Results

Check in order: schema exists → vectorizer ran → distance threshold → filter syntax.
Use _additional { vector } to verify vectors were generated.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ivangdavila
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-10T20:57:14.618Z
- Expires at: 2026-05-17T20:57:14.618Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/weaviate)
- [Send to Agent page](https://openagent3.xyz/skills/weaviate/agent)
- [JSON manifest](https://openagent3.xyz/skills/weaviate/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/weaviate/agent.md)
- [Download page](https://openagent3.xyz/downloads/weaviate)