search
Search across 94+ organizations and all products, published or unpublished, using fuzzy matching that handles typos and partial words, returning top 5 matches.
Instructions
Search for products across ALL accounts with smart fuzzy matching. Handles typos, partial matches, and incomplete words using 60% similarity threshold.
Hybrid Search - Automatically searches across:
All 94+ organizations
ALL products (published + unpublished)
All fields: title, description, product_id
Published products: Full metadata (title, description, product_id) Unpublished products: product_id only (no title/description available)
Args: query: Search keyword (supports typos and partial matches)
Returns: Top 5 matching accounts or products (sorted by relevance score)
Performance: ~5-8s (parallel 2-level S3 scan + top 5 API enrichment)
Performance breakdown:
- S3 parallel listing: ~2.4s (94 accounts + 354 products)
- Fuzzy matching: <1s (in-memory processing)
- API enrichment: ~2-5s (only top 5 results)
**11x faster** than sequential approach (was ~27s)
**Uses 2-level delimiter listing** (not full recursive scan)Examples: >>> # Exact match >>> results = await search("climate")
>>> # Fuzzy match (handles typos)
>>> results = await search("climte") # Finds "climate"
>>> results = await search("exiopase") # Finds "exiobase-3" (includes unpublished!)
>>> # Partial match
>>> results = await search("geo") # Finds "geospatial", "geocoding", etc.
>>> # Result formats
>>> print(results[0]) # Account match
{
"type": "account",
"account_id": "harvard-lil",
"match_string": "harvard-lil",
"search_score": 9.5,
"similarity": 0.95,
"matched_fields": ["account_id"]
}
>>> print(results[1]) # Product match
{
"type": "product",
"account_id": "youssef-harby",
"product_id": "exiobase-3",
"match_string": "youssef-harby/exiobase-3",
"title": "", # Empty for unpublished products
"description": "", # Empty for unpublished products
"search_score": 8.2,
"similarity": 0.82,
"matched_fields": ["product_id"]
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |