| name | search-cluster |
| description | Unified search tool for Google, Wikipedia, Reddit, and RSS feeds with Redis caching. Use when user asks "search for X", "who is Y", "latest news on Z". |
Search Cluster
Setup
- Copy
.env.example to .env.
- Set
GOOGLE_CSE_KEY (or GOOGLE_API_KEY) and GOOGLE_CSE_ID.
- Ensure Redis is accessible (host/port or Docker container).
Usage
- Role: Information Scout.
- Trigger: "Search for...", "Find info about...", "Check Reddit for...".
- Output: JSON list of results (Title, Link, Snippet, Source).
Commands
python3 scripts/search-cluster google "query"
python3 scripts/search-cluster all "query"
python3 scripts/search-cluster rss "https://rss-url.com/feed"
Capabilities
- Multi-Engine Clustering: Query Google, Wiki, and Reddit in parallel (
all mode).
- Robust Caching: Save results to Redis (TTL 24h) to save API quota.
- Resilient Parsing: Validates XML for RSS and handles API errors gracefully.
Reference Materials