way2bay · Lab

How well do models know the Bay?

way2bay is a map, a data layer, a set of tools and an evaluation, built in the order a map service with AI on top is built. This page is the evaluation side: it asks how much of the city a model carries in its head, and how much it needs the map for.

Open the map · EVAL.md · DECISIONS.md

Architecture

Each layer has one job, and every layer below the model is deterministic and testable on its own.

SOURCES Census ACS · TIGER · LODES HUD Small Area FMR BART · Caltrain · Muni · VTA DataSF (SFPD, trees) OpenStreetMap (Geofabrik) Wikidata · Wikipedia USGS 3DEP elevation CPUC robotaxi trips Owner's notes MANIFEST: url · date · sha256 PIPELINE (Python) transit CSA · terrain k-means types · DBSCAN joins · fame · stories make data · make test STATIC DATA GeoJSON + meta.json tools.json · llms.txt stories · mobility ~1.6 MB gzipped QUERY ENGINE parse.js text → query exec.js query → result query.js rank · plan find · trip pure functions: the same code runs in the browser, in Node for the eval, and (as lab/geo.py) for agents MAP UI 13 lenses · ask box planner · compare profiles · stories GitHub Pages AGENTS 3 harnesses · any model OpenRouter · Anthropic budget guard · meter lab/harness/run.py EVALUATION v0: 24 frozen questions v1: 14 frozen questions BayGeoBench: 148 items references recomputed from raw sources, not from the pipeline data tests · browser test parser accuracy make eval

The question

What we measure

For one real metro, how much of everyday geographic, cultural and fresh knowledge does a model answer correctly from memory, and how much do grounded map tools add, per kind of question? A relocation decision mixes all of them: where a place is, how far, how long by transit, what an area is like, what changed this year.

Why it isn't a toy

The answers are the decision inputs a person moving here actually needs, with dated sources. Closed-book errors on distances, transit times and fresh facts cost real time and rent. The same split (what the model knows vs what it should look up) decides how a map-plus-AI product is built.

What the field knows, what's open, what's only new to us

  • Known: models encode coarse geography (positions, directions) and are weak on precise metric and fresh facts; tool use helps. Work to read: Gurnee & Tegmark 2023, “Language Models Represent Space and Time”; Manvi et al., GeoLLM (ICLR 2024); MapEval (Dihan et al.) on map-based reasoning. unverified: cited from memory, not re-read
  • Open (as those papers frame it): fine-grained, local, time-sensitive geography; when to trust memory vs call a tool.
  • New to us: a single-metro benchmark tied to dated public sources, split by skill, with a freshness slice (robotaxi status as of Dec 2026) that a model's training data cannot contain.

Honest limits

  • One metro, 148 templated items: a probe, not a general benchmark.
  • Gold answers come from way2bay's own data. The tools condition is partly a test of using our tools correctly.
  • Rule: no model-specific tuning of the items after the first run; changes get a new version number.

The harness

Three harnesses, one answer protocol

  • Closed-book: no tools. What the model carries in its head.
  • Bespoke: eight purpose-built map tools (find a place, distance and direction, nearest station, transit time, area profile, count nearby, fame, mobility status).
  • FreeHand-style: one general tool, a descriptive prompt with no workflow, and a meter after every turn (turn, tokens, cost, time). Adapted from Microsoft Research's FreeHand, whose premise is that presets are "a crutch" for weaker models and "a cage" for frontier ones. FreeHand gives the model bash; here the one tool is read-only SQL over all of way2bay's data (DuckDB with file and network access switched off), because bash would run with your permissions.

Source: FreeHand's site and README, read 2026-12-03. Its paper (arXiv 2612.02442) has not been read here. Its own README says first-party harnesses still win with weaker models; this Lab can test that claim on a small geographic task.

Any model, a hard spending cap

  • Providers: OpenRouter (any model with tool calling; cost reported per request) and Anthropic directly. A free mock provider checks the plumbing.
  • Budget guard: --max-usd per results file (default $1). The run stops before the next question once spend reaches it, and resumes where it left off.
  • Fair comparison: same questions, same final-answer JSON, same scoring, same turn caps per harness. Answers a fallback model gave are excluded from that model's score.

What would change our minds

If the FreeHand-style harness matches the bespoke one on frontier models at lower cost, building bespoke tools is the wrong investment for this product. If smaller models only do well with bespoke tools, the map's agent layer should keep them for cheap models.

BayGeoBench

SkillItemsExampleRule parser can route

The rule parser is the map's ask box. A question it can route becomes a structured query; the rest fall through to name search. That gap is the measured reason an LLM layer might be worth adding.

Results

Accuracy by skill (strict scoring; compass directions also report lenient scoring in the raw files). Bars: gray = deterministic baselines, blue = closed-book, orange = bespoke tools, teal = FreeHand-style.

The map's own evaluation

v0 · 24 frozen planning questions

20 / 24
First run 18; three bug fixes and two logged formula changes since. Failing: two definition choices waiting on the owner (Q12, Q14), the calm prior (Q15), one wrong expectation (Q21).

v1 · 14 frozen questions for the new layers

12 / 14
Failing: famous places in North Beach (the reference counts the neighborhood's own label), and culture corridors miss Valencia Street and Telegraph's Moe's Books (DBSCAN on linear streets).

Run it

make lab-bench        # regenerate BayGeoBench (same seed, same data → same items)
make lab-baselines    # floor, oracle, parser routing (free)
make lab-mock         # free plumbing check through all three harnesses

export OPENROUTER_API_KEY=...          # any model with tool calling
.venv/bin/python lab/harness/run.py --provider openrouter --model <vendor/model> --harness freehand --limit 10 --max-usd 0.25
.venv/bin/python lab/harness/run.py --provider openrouter --model <vendor/model> --harness bespoke  --limit 10 --max-usd 0.25
.venv/bin/python lab/harness/run.py --provider openrouter --model <vendor/model> --harness closed_book --limit 10 --max-usd 0.10

make lab-summary lab-serve   # then open http://localhost:8001/lab/

Start with --limit 10 per harness to see cost per question, then raise the limit. Direct Claude runs use --provider anthropic (sign in with ant auth login or set ANTHROPIC_API_KEY); they default to effort medium with server-side refusal fallbacks on, and answers a fallback model gave are excluded from the score.