[November 20, 2026]
AI
Put Dates in the Prompt When Freshness Matters
Inject today's date and the doc's last-updated stamp. Otherwise the model will recommend deprecated flags with confidence.
────────────────────────────────────────────────────────
Put Dates in the Prompt When Freshness Matters
Tip: Models do not know today
Inject today's date and the doc's last-updated stamp. Otherwise the model will recommend deprecated flags with confidence.
system = f"Today is {date.today().isoformat()}. Prefer docs dated after 2026-01-01."
Gotcha: Training cutoff looks like current knowledge
Without a date, 'current best practice' means the pretraining mix. Say so in the UI if you cannot retrieve live docs.
ask("What is the current OpenAI default model?")
Source: https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview
────────────────────────────────────────────────────────
<-- back to posts