Inspiration

Ask an AI where a disposable vape goes and you get one confident answer. But the same item goes in different bins in different cities. A plastic bag is Blue Bin recycling in Toronto, trash in New York and a free drop-off item in Vancouver. A greasy pizza box is compost in New York and garbage elsewhere.

Generic "is this recyclable?" answers are wrong for a large share of real questions, and the worst errors (batteries, vapes and bulbs in normal bins) start fires in collection trucks and sorting plants. I live in Indonesia, where most guidance is still only by category, so I wanted to know how much location really matters and whether an assistant can be made to answer from the city's own rules.

What it does

Which Bin answers item + city → bin, using the city's own published rules and quoting them.

  • Type an item (or snap a photo) and pick a city. The model reads only that city's official pages and returns the bin plus the exact sentence it relied on, highlighted in place.
  • Every quote is checked word for word against the saved page. If it doesn't match, the app says so. If the page doesn't cover the item, it tells you to ask the city instead of guessing.
  • Compare cities side by side: same item, different answers, each one sourced.
  • Open API and MCP server: one which_bin(item, city) tool call and Claude or any agent answers with the city's rule instead of a guess.
  • Guidance gap report: shows which everyday items a city's main waste page never mentions, as a list cities can fix.

The benchmark

305 rules from 26 cities, each with the city's verbatim sentence and the official URL.

  • For 17 of 20 everyday items, cities disagree. Any answer that ignores location tops out at 78.4% accuracy, and 22.8% of special-handling items would go in the wrong bin.
  • On 94 hand-checked rows across 8 cities (gemini-3.5-flash-lite):
System Accuracy Hazard items
Item only 70.2% 75.0%
Item + city name 72.3% 81.2%
Item + city's official pages (Which Bin) 92.6% 100%

Knowing the city's name isn't enough. You have to read the city's rules.

  • 8 of 16 resident guides never mention vapes, and 10 of 16 give no rule for LED bulbs. Assistants fill those gaps with guesses.

How we built it

  • Data: hand-collected rules for 8 cities (Toronto, New York, Vancouver, Shibuya, Berlin, Camden, San Francisco, Phoenix), plus Makassar, Indonesia, added by hand from the city's sorting guide. Rows for 17 more cities were drafted by an LLM from the official pages and kept only if the quote appears verbatim on the page. In a 50-row spot check, 41 were correct, 4 ambiguous and 5 wrong (the 5 were removed).
  • Pipeline: fetch.py saves the official pages, extract.py drafts rules and drops any quote not found verbatim, bench.py computes corpus stats, the location-blind ceiling and scores, and baseline.py runs LLM baselines in four modes (blind, city, rules, page).
  • App: a small Python server (standard library only, pypdf only for PDF pages) that calls any OpenAI-compatible endpoint, plus a static site and an MCP server.

Challenges we ran into

  • 14 of 31 official pages could not be fetched without a browser (403s, JavaScript widgets, moved PDFs). Those cities fall back to the city-name prompt.
  • Stopping hallucinated rules. The fix was strict: no verbatim quote, no rule.
  • Mapping each city's local stream names (Green Bin, Wertstofftonne, 資源) onto four shared classes without losing meaning.

What we learned

Location is the missing input. A bigger model with the city name still guesses. A small model reading the city's page gets it right, and can prove it with a quote.

What's next

  • More cities, especially in Southeast Asia, where guidance is often category-only.
  • Re-checking rules automatically, since city pages change.
  • Sending each city its gap report so the guidance itself improves.

Built With

Share this project:

Updates

Submission history