Search Weaviate
Perform hybrid, semantic, or keyword search on a collection.
Usage
/weaviate:search query "your query" collection "CollectionName" [type "hybrid"] [alpha "0.5"] [limit "10"]
Workflow
When necessary, use AskUserQuestion to make entering arguments easier.
- Parse arguments
- If collection is missing:
- Run
/weaviate:collectionsto list available collections - Use AskUserQuestion to prompt user to select
- Run
- If type is not specified, default to
hybrid - Run the appropriate script based on type:
Hybrid (default)
uv run ${CLAUDE_PLUGIN_ROOT}/skills/weaviate/scripts/hybrid_search.py --query "USER_QUERY" --collection "COLLECTION_NAME" --alpha 0.7 --limit 10
Semantic
uv run ${CLAUDE_PLUGIN_ROOT}/skills/weaviate/scripts/semantic_search.py --query "USER_QUERY" --collection "COLLECTION_NAME" --limit 10
Keyword
uv run ${CLAUDE_PLUGIN_ROOT}/skills/weaviate/scripts/keyword_search.py --query "USER_QUERY" --collection "COLLECTION_NAME" --limit 10
Examples
/weaviate:search query "machine learning" collection "Articles"
/weaviate:search query "SKU-12345" collection "Products" type "keyword"
/weaviate:search query "similar concepts" collection "Documents" type "semantic"
Environment
Requires:
WEAVIATE_URL: Weaviate Cloud cluster URLWEAVIATE_API_KEY: API key for authentication