Re:I built a geocoder for AI agents because I couldn't affor...
by nuky on Wednesday January 14, 2026 @01:36PM
(#46620414)
Sounds interesting. What's the stack under the hood?
[ Parent
| on HN ]
Re:I built a geocoder for AI agents because I couldn't affor...
by mips_avatar on Wednesday January 14, 2026 @01:38PM
(#46620455)
Mostly usearch since pgvector had some perf problems, though I use postgres during my ingestion stage since postgis is so good. I segment my hnsw indexes by multipe h3 levels.
Re:I built a geocoder for AI agents because I couldn't affor...
by nuky on Wednesday January 14, 2026 @01:44PM
(#46620574)
Nice. And how do you handle candidates near H3 boundaries?
Re:I built a geocoder for AI agents because I couldn't affor...
by mips_avatar on Wednesday January 14, 2026 @01:49PM
(#46620672)
So I don't support queries with a radius larger than 50km (if an AI agent doesn't know where it's looking within 50km there usually is a context issue upstream), but i have a larger h3 index and a tighter h3 index. Then I have a router that tries to find the correct h3 indexes for each query. For some queries I'll need up to 3 searches, but most map to a single search. (sorry I probably won't be able to reply below here since the max hn comment depth is 4)
Re:I built a geocoder for AI agents because I couldn't affor...
by mips_avatar on Wednesday January 14, 2026 @01:58PM
(#46620830)
Reply to your comment below this (since hn limits comment depth to 4). The 40ms latency is an average but 90% of queries are getting routed to a single index, latency is worse when the routing goes to 3. Since I already batch the embedding generation I should be able to get hard queries down to like 50ms.