Skip to content

Time and validity

Recallr is bi-temporal. Each memory records two kinds of time:

  • Valid time: when the statement was true in the world, valid_from to valid_to. "I moved to Berlin last month", said on 12 April, makes the Berlin memory valid from 1 March and closes the Pune memory on the same date.
  • Transaction time: when Recallr learned it (recorded_at) and when a newer version or an invalidation was learned.

Asking about a point in time

as_of asks what was true at a moment (valid time). known_at asks what Recallr knew at a moment (transaction time). The demo's time-travel slider sets both, showing what the assistant would have said back then.

{ "query": "Where do I live?", "as_of": "2026-02-01T00:00:00Z" }

Set include_history: true to get every version regardless of validity.

Relative dates

Expressions in a query resolve against as_of (or now); expressions in a conversation resolve against the turn's timestamp. A deterministic resolver handles the common forms and the model is only consulted when a query has a time cue the rules can't place.

ExpressionResolves to
yesterday, today, tomorrowThat day
last TuesdayThe most recent Tuesday before today
next Monday, this FridayThe next Monday; Friday of this week
on FridayThe last Friday, or the next one if the sentence talks about the future
3 days ago, two weeks agoThat day; the 7-day window around that date
last week, this month, next yearThe calendar week (Monday start), month or year
the past 2 weeks, recentlyFrom then until today; the last 30 days
in March, March 2025, 5 MarchThe most recent March (or the coming one for future plans); that month; that day
in 2023, 2026-02-14That year; that day

For events and plans with a date, a time window matches on when the event happened. For facts it matches any overlap with the validity range, so "Where did I live in March?" returns the city that was valid during March.

Command palette

Jump to a page, search the docs or change the theme.