L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Données et recherche · SKILL.md

weaviate

weaviate

Search, query, and manage Weaviate vector database collections. Use when running semantic search, hybrid search, keyword search, natural language Q&A with source citations, collection schema inspection, data exploration, filtered fetching, bulk imports, or creating example data. Triggers: 'Weaviate', 'vector search', 'hybrid search', 'semantic search', 'Que…

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: weaviate description: "Search, query, and manage Weaviate vector database collections. Use when running semantic search, hybrid search, keyword search, natural language Q&A with source citations, collection schema inspection, data exploration, filtered fetching, bulk imports, or creating example data. Triggers: 'Weaviate', 'vector search', 'hybrid search', 'semantic search', 'Query Agent', 'collection management', 'import data', 'explore collection'." allowed-tools: Read, Glob, Grep metadata: triggers: Weaviate, vector search, hybrid search, semantic search, Query Agent, collection management, data import, explore collection, keyword search related-skills: vector-database, weaviate-cookbooks, agentic-ai-dev domain: backend role: specialist scope: query output-format: results last-reviewed: "2026-03-15"

Weaviate Database Operations

Iron Law

ALWAYS LIST COLLECTIONS FIRST — never assume collection names or schemas exist.

Running any search or import against a non-existent collection returns a cryptic error. list_collections.py takes under 1 second and prevents every "collection not found" failure.

Process

  1. List collections — discover what exists before any operation
  2. Ask user — confirm which collection(s) to target, or offer example data if empty
  3. Get collection details — inspect schema, vectorizer, multi-tenancy status
  4. Explore collection — check data distribution and sample objects
  5. Run operation — search, import, fetch, or ask

Script Index

ScriptCommandWhen to Use
ask.pyuv run scripts/ask.pyAI-generated answer with source citations across collections
query_search.pyuv run scripts/query_search.pyBrowse raw objects across collections (no synthesis)
hybrid_search.pyuv run scripts/hybrid_search.pyDefault search — BM25 + vector, balanced recall
semantic_search.pyuv run scripts/semantic_search.pyConceptual similarity, intent matters more than keywords
keyword_search.pyuv run scripts/keyword_search.pyExact terms, IDs, SKUs, specific text patterns
list_collections.pyuv run scripts/list_collections.pyDiscover all collections in the instance
get_collection.pyuv run scripts/get_collection.py --name NAMESchema, vectorizer config, multi-tenancy status
explore_collection.pyuv run scripts/explore_collection.py NAMEData distribution, top values, sample objects
create_collection.pyuv run scripts/create_collection.pyCreate collection with custom schema
fetch_filter.pyuv run scripts/fetch_filter.pyRetrieve by ID or structured filter criteria
import.pyuv run scripts/import.py data.csv --collection NAMEBulk import from CSV, JSON, or JSONL
example_data.pyuv run scripts/example_data.pyLoad toy data when no real data exists

Reference Files

FileContentWhen to Use
references/ask.mdQuery Agent ask mode — answer synthesis, source citation formatBuilding Q&A interfaces
references/query_search.mdQuery Agent search mode — raw object retrievalBrowsing/exploring objects
references/hybrid_search.mdHybrid BM25 + vector, alpha tuning, fusion typesGeneral-purpose search
references/semantic_search.mdnearText query patterns, distance thresholdsConceptual/intent-based search
references/keyword_search.mdBM25 patterns, tokenization, exact matchKeyword/ID/SKU lookup
references/list_collections.mdCollection discovery, schema overviewDiscovery step
references/get_collection.mdSchema inspection, vectorizer config, propertiesPre-query schema check
references/explore_collection.mdData stats, value distribution, sample objectsUnderstanding data shape
references/create_collection.mdCollection creation, properties, vectorizer configSchema design
references/fetch_filter.mdID fetch, where filter, structured retrievalPrecise data retrieval
references/import_data.mdBatch import, error handling, UUID strategyData ingestion
references/example_data.mdPre-built toy datasetsDemos, testing
references/environment_requirements.mdAll env vars and provider keysEnvironment setup

Environment Variables

Required:

  • WEAVIATE_URL — Weaviate Cloud cluster URL
  • WEAVIATE_API_KEY — Weaviate API key

External provider keys (set only what your collections use): → See references/environment_requirements.md for the full list.

If the user has no Weaviate instance, direct them to Weaviate Cloud to create a free sandbox, then run /weaviate:quickstart.

Documentation Sources

Before generating code, consult these sources for current APIs:

SourceToolPurpose
Weaviate Python v4weaviate-docs MCPCollection creation, query APIs, vectorizer config
Weaviate general docsweaviate-docs MCPBest practices, multi-tenancy, named vectors
Python client fallbackContext7 MCPweaviate-client package, async patterns

Output Formats

All scripts support --json flag. Default output is markdown tables.

Error Handling

ErrorCauseFix
WEAVIATE_URL not setMissing env varExport env var in terminal
Collection not foundWrong name or not yet createdRun list_collections.py first
Authentication errorBad API keyCheck both Weaviate key and vectorizer provider key
Dimension mismatchCollection vectorizer ≠ query vectorizerMatch vectorizer on import and query

Post-Code Review

After writing Weaviate code, dispatch:

  • weaviate-schema-reviewer — collection schema, v4 API, multi-tenancy, distance metric
  • rag-pipeline-reviewer — if building a retrieval pipeline
Skills enregistrées