I built Footing, a web app that opens every link an AI answer cites and checks whether the page says what the sentence claims. The hybrid plan was simple: Gemini Nano triages each readable page on your laptop, and the cloud handles the rest. My first version gave Nano the whole verdict. That was wrong, and I measured how wrong before building further.

Live: https://footing.edycu.dev · Demo video (2:48): https://youtu.be/1okeD78D7Nw · Code (Apache-2.0): https://github.com/edycutjong/footing · Devpost: https://devpost.com/software/footing

The problem

AI answers come with links, and people treat the link as proof. Often the page is real and on topic but doesn't say what the sentence says: a figure changed, a clause added, a neighbouring fact. Nobody opens eight links per answer.

The first design, and the number that killed it

Nano would answer one of three things per (claim, passage) pair: SUPPORTS, PARTIAL, NOT_SUPPORTED, with the quote it relied on. Before writing any UI I labelled 30 claims against real fetched pages and ran Nano on them in desktop Chrome (157, M1 Max).

  • v1 prompt: 21/30 = 70% on the three-way verdict (raw rows in evidence/p0c/)

My bar was 80%. Nano failed it. I read that as a task problem, not a wording problem. The graded middle, "says part of it", is exactly where a small model drifts.

The re-scope: binary triage on device, the cloud decides "partial"

The same run, cut to a binary question (does any passage support the claim?), scored 24/30. That is a post-hoc cut of the same 30 claims, so it is not held-out, and I say so everywhere. So Nano's job became triage. In Firebase AI Logic that is PREFER_ON_DEVICE with a responseConstraint:

export function triageModel(cfg: FootingConfig, mode: "PREFER_ON_DEVICE" | "ONLY_ON_DEVICE"): GenerativeModel { return getGenerativeModel(firebase().ai, { mode: mode === "ONLY_ON_DEVICE" ? InferenceMode.ONLY_ON_DEVICE : InferenceMode.PREFER_ON_DEVICE, onDeviceParams: { createOptions: TEXT_EN, promptOptions: { responseConstraint: triageConstraint(cfg.quoteMaxChars) } }, inCloudParams: { model: cfg.triageCloudModel, generationConfig: { responseMimeType: "application/json", responseSchema: TRIAGE_SCHEMA_CLOUD, temperature: 0 }, }, }, CLOUD_REQUEST); } 

And the three-way judgement moved to a cloud-only instance:

export function judgeModel(cfg: FootingConfig): GenerativeModel { return getGenerativeModel(firebase().ai, { mode: InferenceMode.ONLY_IN_CLOUD, inCloudParams: { model: cfg.judgeModel, generationConfig: { responseMimeType: "application/json", responseSchema: VERDICT3_SCHEMA, temperature: 0 } }, }, CLOUD_REQUEST); } 

The rule that fell out: Nano's SUPPORTS is never final. Every Nano "yes" escalates to the cloud, which checks whether the source says all of the sentence or only part. A Nano "no" with no quote is settled on the laptop and shown as "not found on device (unconfirmed)", with one tap to confirm. A "no" that quotes related text escalates like a "yes". PDFs go to the cloud anyway because PDF input is cloud-only in AI Logic. JavaScript-only pages go there too, because there is no fetched text for Nano to read and the URL context tool is cloud-only. Those pages are always shown as UNVERIFIED, since there is no source text to check the quote against.

Code has the last word

Models invent quotes. So whatever either model quotes must appear verbatim in the text it was given, and inside one segment, so a quote can't be stitched across two passages:

export function gate(quote: string, modelInput: Given): boolean { return normalize(quote).length >= MIN_QUOTE_CHARS && quoteHeld(quote, modelInput); } 

If the gate fails, the verdict is UNVERIFIED, never SUPPORTS. A SUPPORTS or PARTIAL verdict is shown only if its quote passes. The gate proves the quoted words are in the source, not that the model read them correctly: on the fresh 20, 6 wrong cloud verdicts still carried a quote that was found.

Honest numbers

On a fresh held-out set of 20 claims (labelled and committed before any model saw them), measured on an M1 Max with Chrome 157:

Nano binary triage Cloud judge (3-class)
fresh 20, held-out 13/20 = 65% 14/20 = 70%
original 30 (not held-out) 24/30 = 80% 23/30 = 76.7%

On the fresh 20, Nano settled only 1 pair on the laptop and escalated 19. On the original 30 it settled 8 and escalated 22. So the honest summary is: the laptop does a cheap first pass, the cloud does most of the deciding, and code verifies every quote. Latency per claim from a separate benchmark run (20 held-out claims x 2 reps per route, source fetching excluded, the cloud judge reading a 24,000-character window): on device p50 1699 ms, p95 2067 ms; cloud p50 4095 ms, p95 11476 ms. End to end the hybrid is not faster: an escalated citation pays for both calls. Raw rows are in evidence/ in the repo; /eval lists the accuracy and settle numbers, and the latency rows are in evidence/bench.json.

Limits

  • Footing checks citation faithfulness, not truth. It never searches for a better answer.
  • 20 and 30 claims are small sets. Treat the percentages as indicative.
  • On-device inference needs desktop Chrome with Nano and about 22 GB free disk. Most readers will see the cloud path, which is badged separately, with a meter showing how many citations a Nano laptop would have read on-device first.
  • The first on-device call starts a model download. In Auto mode Footing's router checks citations in the cloud while it runs, and the page shows the download progress. "On-device only" waits for the download instead.
  • When a citation goes to the cloud, the sentence, the three best-matching passages and up to the first 24,000 characters of the page text are sent to a Gemini model through Firebase AI Logic. The fetch proxy itself never calls a model.

Try it

Open https://footing.edycu.dev in desktop Chrome, press Check sources, and click any citation to see your sentence beside the source's own words. If you find a citation it gets wrong, that is exactly the feedback I want.

One more limit: Footing caps each answer at 10 automatic cloud checks (a Remote Config setting), and the sample answer I ship has 9 citations, so all 9 run without a tap. A longer answer would leave the extra citations behind a tap. I'd rather say that than hide it.

The 2:48 demo video is at https://youtu.be/1okeD78D7Nw, and the Devpost entry for #BuildHybridAI is at https://devpost.com/software/footing.