Dev.to AI 🤖 Ai 👁 0 📖 2 min read

Form filling is inference, not lookup: why my first version failed

My first version of LocalForm AI looked great in a demo. It had my name, my email, my links, and it dropped them into the right boxes. Then I pointed it at a real application form and it fell apart. The form asked things

My first version of LocalForm AI looked great in a demo. It had my name, my email, my links, and it dropped them into the right boxes. Then I pointed it at a real application form and it fell apart. The form asked things my saved facts never mentioned, and the extension either skipped them or made something up.

That is when I understood the problem. Copying a saved fact into a field is a lookup. Real forms ask for answers you have never written down, like "why do you want this role" or "tell us about a project you are proud of". Filling those takes inference: read the question, work out what you know about the person, and write an answer.

What I learned building the second version:

  1. Lookup hides the hard part. A demo with a name and an email proves nothing. The first time I ran a real model on real questions, it invented numbers and picked substantive answers for me, such as how much I would work onsite. It also missed my own name. Fixing that took far longer than the original build. Names now fill from a saved full name with plain code and no model.

  2. Every generated answer needs a way out. LocalForm AI now shows each drafted answer for review. You can confirm it, edit it or reject it, and a generated answer is never written into the page until you accept it. Answers it cannot support from what you saved, such as an accomplishment it has no source for, stay empty. Yes/no answers like work authorization stay marked unverified until you confirm them.

  3. Corrections are the signal. After you submit, the extension records, per field, whether you kept, edited or cleared the fill. It never records the values. A learned rule is only used after you confirm it, or after three submissions agree. I have tested that loop on fixture forms, not on many live sites, so I treat it as early.

  4. The model runs in the browser first. The extension uses Gemini Nano on-device in Chrome. Cloud AI through Firebase AI Logic is off by default and opt-in. If you turn it on, you give consent once per Auto-Fill drafting batch, and then it sends one request per essay field.

It is an entry for the Firebase Hybrid AI hackathon. If you want to look at it, the project page is here: https://devpost.com/software/localform-ai

I would like to hear how you would handle questions where the right answer is "I don't know". Right now the extension leaves those for you.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.