cd /news/large-language-models/a-missing-date-beats-a-guessed-one · home › topics › large-language-models › article
[ARTICLE · art-182873] src=dev.to ↗ pub= topic=large-language-models verified=true sentiment=↑ positive

A missing date beats a guessed one

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.

recommendation

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.

more in playbook: Verifying model output
by read8 min views1 publishedDec 6, 2026

Sarvam launched a document extraction 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.

My 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:

A 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.

I 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?

46 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.

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. So 18 chats name a due day and 28 don't. Same model, same chats, four setups:

"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. "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.

I 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: right date, wrong date, missed, right null or invented.

Setup Right dates (of 18) Wrong or missed dates Invented dates (of 28 with none) Invented, all runs (of 84)
Date required 18, 18, 18 0, 0, 0 27, 26, 27 80
Date or null 18, 18, 18 0, 0, 0 1, 3, 1 5
Date or null + quote check 18, 18, 18 0, 0, 0 0, 3, 1 4
Phrase + my bot's parser 17, 18, 18 1, 0, 0 1, 0, 1 2

Each setup had 84 chances to invent a date: 28 chats, three runs. The required date took 80 of them.

The 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.

Asked 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.

The 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.

The only chat it left empty in every run was "I'll come once things settle down".

I 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.

Adding 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.

What 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.

This 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.

Every 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.

The 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.

My 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.

My 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.

The 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.

So 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.

The 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.

One 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.

5 Dec, 15/12 and kal first. These 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.

Some 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.

The 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.

What 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.

The code, chats and all three runs are in shipping-with-ai/05-null-beats-a-guess.

── more in #large-language-models 4 stories · sorted by recency
── more on @sarvam 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/a-missing-date-beats…] indexed:0 read:8min 2026-12-06 · —