Search Cluster
Setup
- •Copy
.env.exampleto.env. - •Set
GOOGLE_CSE_KEY(orGOOGLE_API_KEY) andGOOGLE_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
bash
# Search Google python3 scripts/search-cluster google "query" # Search All Sources (Parallel) python3 scripts/search-cluster all "query" # Fetch RSS Feed python3 scripts/search-cluster rss "https://rss-url.com/feed"
Capabilities
- •Multi-Engine Clustering: Query Google, Wiki, and Reddit in parallel (
allmode). - •Robust Caching: Save results to Redis (TTL 24h) to save API quota.
- •Resilient Parsing: Validates XML for RSS and handles API errors gracefully.