{"slug": "a-missing-date-beats-a-guessed-one", "title": "A missing date beats a guessed one", "summary": "A developer built a 46-chat synthetic benchmark to test whether an LLM invents due dates when a message contains none, running four prompt-and-parser setups three times each on openai/gpt-oss-120b via Groq. When the prompt required a date, the model invented one in 80 of 84 no-date cases, 66 of them defaulting to the current day, while adding an explicit null option cut inventions to 5 and a phrase-plus-parser setup to 2. Real dates were extracted correctly in every setup, so the developer argues a missing due date is strictly better than a guessed one.", "body_md": "Sarvam [launched a document extraction API](https://www.sarvam.ai/blogs/extract-api) on 24 November. Every value it returns comes with the page it came from, a bounding box and a confidence score. I like that design, because the hard part of extraction is rarely the values that are there. It's the values that aren't, and the values that are there but mean something else.\n\nMy problem is smaller and not about documents, but it's the same question. My WhatsApp assistant pulls promises out of my chats, with a due date when I gave one. The parser that turns the due phrase into a date has this comment at the top:\n\nA missing due is strictly better than a guessed one — a false \"overdue\" shows first in !today and is the fastest way to lose the user's trust.\n\nI added that rule in June and never measured it. So I built a small test: what does a model do with a date field when the message has no date?\n\n46 short synthetic chats. In each, someone asks me for something and I promise to do it. The system prompt says today is Tuesday, 1 December 2026, in India; every right answer is counted from that day.\n\n`by 5 Dec`, `on the 10th`, `15/12 tak bhej dunga`) and ten relative (` tomorrow`, `kal pakka kar dunga`, `by Friday`, `in 2 weeks`, `by EOD`).` soon`, `jaldi`, `sometime next week`, `next month`, `after the holidays`, `early next week`.\nSo 18 chats name a due day and 28 don't. Same model, same chats, four setups:\n\n`\"due\": the due date as YYYY-MM-DD`.` or null if I did not give a due date`.` a due date or time if mentioned, else null`, then the parser from my bot turns the phrase into a date. Anything it doesn't recognise becomes no date.\n\"Required\" here means the prompt asks for a date. There's no JSON schema or structured output mode in any setup; the only thing that changes between setups 1 and 2 is that one clause in the prompt. Setups 3 and 4 change the prompt and the code after it.\n\nI committed the chats, labels and grader before the first run, then ran each setup three times on 1 December on `openai/gpt-oss-120b` through Groq, with Groq's default settings (no temperature or reasoning level set). [Code scores every answer](https://www.sayamjain.com/blog/evals-before-vibes): right date, wrong date, missed, right null or invented.\n\n| Setup | Right dates (of 18) | Wrong or missed dates | Invented dates (of 28 with none) | Invented, all runs (of 84) | \n|---|---|---|---|---|\n| Date required | 18, 18, 18 | 0, 0, 0 | 27, 26, 27 | 80 | \n| Date or null | 18, 18, 18 | 0, 0, 0 | 1, 3, 1 | 5 | \n| Date or null + quote check | 18, 18, 18 | 0, 0, 0 | 0, 3, 1 | 4 | \n| Phrase + my bot's parser | 17, 18, 18 | 1, 0, 0 | 1, 0, 1 | 2 | \n\nEach setup had 84 chances to invent a date: 28 chats, three runs. The required date took 80 of them.\n\nThe real dates were never the problem. Every setup got `15/12 tak`, `kal` and `by Friday` right in every run. Almost all the differences are in the 28 chats with no date; the one exception is a real date the parser setup missed in run 1, which I'll come to.\n\nAsked for a date every time, the model gave one almost every time. Across three runs it invented 80 dates, and 66 of them were 1 December, today. The medicines, the repo link, the dentist, the call back, the unpaid invoice: all due today.\n\nThe other 14 were precise dates too: 12 from vague words, and 2 from a birthday that had already passed. `sometime next week` became 8, 11 or 13 December, depending on the run. `after the holidays` became 27 December or 2 January. \"Mom's birthday was on the 29th and you forgot!\" made the gift due on 29 December in two runs.\n\nThe only chat it left empty in every run was \"I'll come once things settle down\".\n\nI expected false dates in the past, the overdue items my comment warns about. That's not what happened. A required field mostly fills with today, so almost every promise looks due today. That's a quieter failure, but it would still bury the three promises in this set that really are due today.\n\nAdding `or null if I did not give a due date` took the invented dates from 26 or 27 down to 1 to 3 per run. One extra clause in the prompt.\n\nWhat was left was nearly all vague words. `early next week` became 7 or 9 December in every run. `next month` became 1 January once. And once, \"Haan, I'll pick them up\" became due today.\n\nThis is the result I didn't expect. The check itself rejected nothing, in any run. Its first run has one fewer invented date than the date or null setup, but that's a separate model call answering differently, not the check catching anything.\n\nEvery date the model kept came with words that really were in my message, 58 of them across three runs. The invented ones quoted `next month` and `early next week` correctly. In run 2 it quoted `28 Nov` from \"Got the 28 Nov invoice, I'll pay it\" and made the payment due on 28 November, three days before I promised it. That was the only invented date in the past across all twelve setup runs.\n\nThe check proves where the words came from. It doesn't prove the words are a due date. Sarvam's page and bounding box work the same way for documents: they tell a reviewer where to look, and someone still has to look. Its confidence score goes further. Sarvam says values get lower scores when they fail its validation checks or a second read disagrees. That's a useful signal for what to review, but it still isn't proof that a value means what the field says.\n\nMy check also has a rule that's too strict for real chats: the quote must come from my own message. \"Can you send it by Friday?\" / \"Sure\" is a promise due on Friday, with the date in the other person's message. None of my 46 chats has that shape, so this test doesn't show the cost, but a real version should tie the date to the right message in the conversation, not only to mine.\n\nMy bot's design depends on one assumption: the model hands over the phrase, and code decides whether it's a date. Code is strict, so `next month` and `soon` fail closed.\n\nThe model didn't hand over phrases. Asked for \"a due date or time if mentioned\", it answered with a date every single time: 55 times as `YYYY-MM-DD` and once as a full timestamp, `2026-12-01T23:59:00+05:30`, for \"Sending them tonight\". The parser doesn't read timestamps, so it failed closed and missed a real date. Meanwhile `early next week` arrived already converted to `2026-12-07`, and the parser accepted it like any other date.\n\nSo the parser did exactly what it was built to do, and it barely mattered. The model had already made the decision the parser was supposed to make.\n\nThe flip side shows up when the parser gets the raw words. In this run, `kal` and `15/12 tak` reached it as dates the model had already worked out. When I fed it the quoted words from setup 3 instead, it rejected 10 of the 18 real dates in every run, because it can't read `5 Dec`, `15/12`, `on the 10th` or `kal`. The model was doing the interpreting, not my parser.\n\nOne difference matters here. This demo tells the model today's date. My bot's prompt doesn't state it, though every message it sends carries a Unix timestamp, so the model there has a date to anchor on too. I haven't tested whether that changes how often it converts phrases itself.\n\n`5 Dec`, `15/12` and `kal` first.\nThese are 46 chats I wrote myself, with labels I wrote, knowing what each setup does. Real promises are messier, and a different set could move these numbers. It's one model, three runs on one day, under a model name a provider can update.\n\nSome labels are judgement calls. I labelled `sometime next week`, `early next week` and `next month` as no due date, meaning no calendar day, not no time at all. A rough window could still be useful for a suggested reminder; this test only asks whether the model invents an exact deadline. \"Haan, I'll pick them up\", after \"Bring the medicines on the way back\", probably does mean today, and \"Sorry, I'll call back\" and \"On it, I'll fix it\" lean that way too. I labelled them no date because I didn't say when. I'd still rather code decide those defaults than the model.\n\nThe setups differ only in the prompt and the code after it, but the quote check asks for one more field, which may change how the model answers the first one. And my bot's real prompt asks for a list of promises with evidence fields, not a single object.\n\nWhat it does show: a required date gets filled, mostly with today. Allowing null fixed nearly all of it. And a check on where an answer came from is not a check on whether the answer is right.\n\nThe code, chats and all three runs are in [`shipping-with-ai/05-null-beats-a-guess`](https://github.com/sayamjn/shipping-with-ai/tree/main/05-null-beats-a-guess).", "url": "https://wpnews.pro/news/a-missing-date-beats-a-guessed-one", "canonical_source": "https://dev.to/sayam_jain/a-missing-date-beats-a-guessed-one-11i0", "published_at": "2026-12-06 12:37:06+00:00", "updated_at": "2026-12-06 12:44:17.877590+00:00", "lang": "en", "topics": ["large-language-models", "ai-tools", "ai-agents"], "entities": ["Sarvam", "Groq", "openai/gpt-oss-120b", "WhatsApp"], "also_reported_by": [], "takeaway": "Requiring a date field in the prompt made gpt-oss-120b invent dates in 80 of 84 no-date cases (66 defaulting to today), while adding an explicit null option cut inventions to 5 and a phrase-plus-parser setup to 2 with no loss on real dates.", "recommendation": {"advice": "When extracting optional fields like due dates, make null an explicit allowed value and verify against the source text rather than requiring a value, since a required field fills with today's date.", "playbook": "output-verification", "playbook_url": "https://wpnews.pro/playbooks/output-verification"}, "alternates": {"html": "https://wpnews.pro/news/a-missing-date-beats-a-guessed-one", "markdown": "https://wpnews.pro/news/a-missing-date-beats-a-guessed-one.md", "text": "https://wpnews.pro/news/a-missing-date-beats-a-guessed-one.txt", "jsonld": "https://wpnews.pro/news/a-missing-date-beats-a-guessed-one.jsonld"}}