2504 Query 92436bd6

Query Weaviate using natural language (Query Agent search mode)

tools-only Updated 7 repo stars

File contents

Query Weaviate (Search Mode)

Use Query Agent to search Weaviate collections with natural language. Returns objects for further processing.

Usage

/weaviate:query query "your search query" collections "Collection1,Collection2" limit 10

Workflow

When necessary, use AskUserQuestion to make entering arguments easier.

  1. Parse the query, collections, and limit arguments
  2. If arguments are missing:
    • Run /weaviate:collections to list available collections
    • Use AskUserQuestion to prompt user to select
    • Default limit to 10 if not specified
  3. Run the Query Agent search script:
    uv run ${CLAUDE_PLUGIN_ROOT}/skills/weaviate/scripts/query_search.py --query "USER_QUERY" --collections "COLLECTION_1,COLLECTION_2" --limit "LIMIT"
    
  4. Display results to user

Example

/weaviate:query query "articles about vector databases" collections "Articles,BlogPosts" limit 5

For Generated Answers

Use /weaviate:ask instead to get generated answers with sources.

Environment

Requires:

  • WEAVIATE_URL: Weaviate Cloud cluster URL
  • WEAVIATE_API_KEY: API key for authentication

tools-only/X-Skills/tree/main/content-creation/2504-query_92436bd6 commit 3110aed223

Frequently asked questions

npx skillmds@latest add tools-only/2504-query-92436bd6