surfaceextractiontimeline
Extractionscalar · returns json

TIMELINE

Extract chronologically ordered events from text

Per-row — runs once for each row.

extractionllmtext

Syntax

TIMELINE({{ text }})
TIMELINE({{ text }}, '{{ reference_date }}')
{{ text }} TIMELINE

Arguments

nametypedescription
textVARCHAR
reference_date(optional)VARCHARReference date for resolving relative times (e.g., 'yesterday')

About

Extract temporal events from text and order them chronologically. Turns unstructured narratives, emails, logs, or documents into ordered sequences of events with timestamps (absolute or relative). Perfect for: - Reconstructing sequences of events from emails/documents - Log analysis and incident timelines - Project history extraction - Legal discovery (what happened when?) - Meeting notes → action item timelines

Examples

Extracts ordered events with relative dates

SELECT
  timeline (
    'We met on Monday to discuss the proposal. By Wednesday, the contract was signed. The project launched the following week.'
  )

Extracts precise timestamps

SELECT
  timeline (
    'The server crashed at 3:15 PM. We identified the issue at 3:45 PM and deployed a fix at 4:30 PM.'
  )

Nearby rabbit holes

same domain
Climb back to The Looking Glass