Find similar hexes (embeddings)
find_similarRank H3 hexes by cosine similarity to a query embedding and exclude existing sites to surface untapped look-alike locations for retail site selection.
Instructions
Method 2. Rank hexes by cosine similarity of Esri's USA Geodemographic Embeddings to a query. query = "independent_shops" (all hexes that hold an independent coffee shop) or a list of H3 r7 ids. exclude_existing drops query hexes and hexes that already have an independent shop ("untapped look-alikes"). engine: auto (precomputed Esri run for the default query, numpy for custom queries), arcpy (live FindSimilarFeaturesUsingEmbeddings, needs ArcGIS Pro Advanced; ~1 min), numpy, or open_proxy (no Esri data).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_similar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | independent_shops | |
| top_n | No | ||
| engine | No | auto | |
| exclude_existing | No |