How Kaagaz works
Kaagaz understands a household paper or message, remembers what it asks for, and protects against the ones that are scams. It is built for a parent who handles the family's papers, and for the son who wants to know before something slips.
The loop
- UnderstandA photo of a bill, notice or message screenshot, or a spoken instruction in Hindi, Hinglish or English. Gemma 4 reads it and returns the amount, the last date, what to do and what happens if it's missed, each with the exact words it came from.
- ConfirmA card reads it back in English or Hindi. A field the paper's words don't support is outlined for checking. Nothing is saved until the tap.
- RememberOne Temporal workflow per paper reminds 30, 7 and 1 days before the date, or on the day he chose with "Later".
- Follow throughIf it still isn't done, the son gets an alert. Renewals that come every year are offered again for next year when marked done.
- ProtectEvery scan is checked for scam warning signs. A suspicious message gets a red stamp, the words that raised it, and a one-tap "Tell my son".
The rules it never breaks
- Never invent a fact. Amount, date and consequence come only from the paper or his words, each with its evidence. No evidence, no value.
- Nothing is saved without confirmation. Only the confirm tap writes to the database and starts a workflow.
- Real papers stay off the public demo. The public site is for the fictitious sample papers; real family papers use private mode.
- Temporal never sees content. Workflows carry IDs and dates only. Titles, amounts and text live in MongoDB.
- A scam warning is evidence, never a verdict. Every sign carries the words that triggered it, and the server checks those words before showing it. Kaagaz never says "safe".
- Both languages say the same thing. Every message exists in English and Hindi; the model writes its summary and answers in both, in the same call.
The scam check
Scammers send fake "electricity will be cut tonight" SMSs, KYC links and prize messages to exactly the people Kaagaz is for. So every scan is checked, automatically, for seven warning signs:
- asks you to pay a personal UPI ID, phone number or bank account;
- has a link to pay or "update" details (short links and unusual web endings count more);
- asks for an OTP, PIN or password;
- asks you to install an app like AnyDesk;
- threatens action within hours;
- asks you to call a mobile number;
- promises a prize, bonus, refund or cashback.
Gemma proposes the signs and quotes the words for each. The server then checks every quote with plain pattern rules: a "personal payment" sign must actually contain a UPI ID, an account number or a phone number with a pay word, or it's dropped. A strong sign, or a threat plus a phone number, gives a red warning; weaker signs give an amber caution; no signs say nothing. A genuine bill with a due date and a helpline is not a warning sign on its own.
Yearly renewals
Insurance, property tax and certificate renewals come back every year. When one is marked done, Kaagaz offers the same reminder for next year's date. Next year's amount isn't known yet, so the card shows last year's amount instead of guessing; 29 February becomes 28 February, and tapping twice adds it once.
Architecture
Privacy and private mode
| Public demo (this site) | Private mode (family laptop) | |
|---|---|---|
| Gemma | Gemma 4 26B via the Gemini API | Gemma 4 E4B via Ollama, on the laptop |
| Speech to text | ElevenLabs Scribe | Whisper, on the laptop |
| Voice | ElevenLabs | The browser's own voice |
| Photos and voice leave the device? | Yes, so use the sample papers | No; only confirmed reminder details sync |
Photos and recordings are held temporarily on the processing host, then removed after processing or by cleanup. Demo households expire automatically.
Measured, not assumed
Kaagaz is scored on 26 fictitious documents (6 of them scam messages), each photographed in four simulated conditions (clean, tilted with a shadow, dim and noisy, creased and blurred), plus 20 typed instructions and 8 synthetic-voice clips mixed with room noise. All names and numbers are invented; photo conditions and voices are simulated, not real phone photos or real elderly voices.
Gemma 4 26B (public demo), run on 2 October 2026
| Photo condition (simulated) | Fields right | Silent errors |
|---|---|---|
| Clean | 103/103 | 0 |
| Tilted on a table, with a shadow | 103/103 | 0 |
| Dim light, sensor noise, heavy JPEG | 103/103 | 0 |
| Creased, rotated, blurred | 103/103 | 0 |
| Instructions | Fully right |
|---|---|
| Typed (Hindi, Hinglish, English) | 20/20 |
| Spoken (synthetic voice + noise → speech to text → Gemma) | 8/8 |
| Time per call | median 9.7 s, 90th percentile 13.4 s |
Read these numbers for what they are. The documents are cleanly typeset and the scams are textbook examples, so a 26B model reads them well even through the simulated damage. Real handwriting, faded carbon copies and cleverer scams will be harder. The safety rules (evidence for every fact, highlighting, the confirmation tap) are there because a perfect score on a test set is not a promise.
Gemma 4 E4B on a laptop (private mode)
On the earlier, smaller set (4 clean papers, 4 spoken instructions): 18/20 paper fields right, one silent error (it copied the late-payment amount on the electricity bill), 3/4 instructions fully right ("atharah hazaar" heard as 14,400), 4–18 s per item on a laptop CPU. The full v2 run on the laptop model was not completed.
This is why every amount and date shows the words it came from, why anything unsupported is highlighted, and why nothing is saved without a tap.
Full tables: eval/results-gemini.md, eval/results-ollama.md; method: eval/README.md.