← Writing

Product · · 6 min

t0 wins on accuracy. Now what?

You’ve just tried t0. To your surprise, it matches or beats your production system’s accuracy. Wow!

Then you start thinking about putting it into production. Data pipelines. Context engineering. Backtesting. Serving. Another system to operate. “Another research company that only ships models,” you think. “I’ll stick with my battle-tested production system.”

Think again. The Forecasting Company gives you a forecast factory. We combine best in class forecast accuracy with the tools to build and run production forecasting systems for each of your use cases. You define the task, choose the input data, and decide how the forecasts will inform your business decisions. Our system handles the data preparation, context engineering, forecasting, backtesting, and delivery.

The production work this removes

Suppose you need parcel arrivals at each depot, every half hour, for the next day. The job starts with individual parcel scans. Those transactions must become regular counts, joined with weather from another source and kept current as new scans arrive.

Traditionally, an ML forecasting model is trained on a large historical dataset—say, five years—but receives only a short recent window, such as the last two weeks, at inference time.

The training pipeline builds examples and fits the model; a separate inference pipeline prepares each new request. Your team has to keep their aggregations, joins, feature transforms, and cutoff rules in sync, while also publishing and serving a versioned model artifact. In Python-style pseudocode:

# 1. Scheduled training: prepare years of examples.
training_rows = training_pipeline.read_snapshots(years=5)
X, y = training_pipeline.make_examples(
    training_rows, context_steps=672, horizon_steps=48,
)
model.fit(X, y)
artifact = serialize(model, training_pipeline.transforms)
artifact_store.upload("parcel-model/v17", artifact)

# 2. Deployment: load the exact published model version.
serving_model, transforms = deserialize(
    artifact_store.download("parcel-model/v17")
)

# 3. Every forecast: a different pipeline supplies recent inputs.
snapshot = inference_pipeline.read_snapshot(as_of=cutoff)
inputs = inference_pipeline.make_features(
    snapshot, context_steps=672, transforms=transforms,
)
forecast = serving_model.predict(inputs)

At 30-minute resolution, 672 steps are two weeks; 48 steps are one day. Five years of training history shapes the model’s parameters, but each prediction sees only its supplied inputs. Changing those inputs can require changes to both pipelines, retraining, and a new artifact.

With The Forecasting Company, a single API call covers data preparation and t0 inference. The diagrams show the work your application hands over: joins, context slicing, batching, and forecasting, with no customer-specific model to train, upload, or deploy.

A customer-trained forecasting system
Training When releasing a model version
Transaction historyAvailable database snapshots
Training data pipelineAggregate + join + alignTraining windows + targets
Fit feature transforms
Train a forecasting modelFit task-specific weights
Versioned artifact storeUpload model + fitted transforms
Deploy selected version
to the serving runtime
Inference For each forecast request
Keep both pipelines in syncAggregation rules, feature order, fitted scaling
Fresh source snapshotLatest transaction data
Inference data pipelineRecent 2 weeksSame aggregations + joins
Same feature order + scaling
Deployed modelServing runtime
Loads the selected artifact
Forecasts
Two preparation paths feed one released model. Training produces the artifact; forecast calls use the deployed version. The two-week input is illustrative.
The same forecast with The Forecasting Company
Inference You specify the target, horizon, and destination.
Fresh source snapshotSQL transaction tables
or Parquet files
One API callData preparation + forecasting
Urs prepares contextAggregate + join + align
Slice history + signals
Pretrained t0Batch series
Run inference
We handle joins, context slicing, batching, and inference.
ForecastsSame SQL database
or Parquet files
One API call prepares the data and runs t0. Your application supplies the request and consumes the forecasts; the system handles the joins, context slicing, and batching. SQL reads and writes use a configured integration.

SQL to SQL. Parquet to Parquet.

That call can start and finish in the systems you already use. Connect a SQL database and receive forecasts back in the same database through a configured integration. Or send Parquet and receive Parquet.

Urs prepares the data and t0 produces the forecasts. When you want to compare context choices, our agents can run historical backtests using the same preparation rules.

Your data in. Usable forecasts out.
Database workflowSQL databaseTransaction tables
Related tables + snapshots
File workflowParquet filesTransactions + context
Local files or object storage
The Forecasting CompanyThe complete forecasting workflow
You specify the target, horizon, and destination.
Agents select contextChoose windows, signals, and historical cutoffs to trySchema + forecast request
Shared context preparationUrsRead sources + declared joins
Aggregation + time alignment
Missing policy + context slicing
Prepared history + supported covariates
Pretrained t0Inference
Agents evaluate + refine contextHistorical backtests inform the next context choice
The same preparation rules support historical backtests and live forecasts.
Deliver forecasts + evaluation resultsIdentifiers, forecast times, and cutoffs preserved
Return Parquet or write through the configured database integration
Database workflowSame SQL databaseForecast tables
Ready for downstream queries
File workflowParquet filesForecasts + quantiles
Ready for downstream jobs
Two ways to integrate the same product: SQL to SQL, or Parquet to Parquet. Database reads and writes use a configured integration; the HTTP example below demonstrates the file workflow.

The returned forecasts carry the identifiers and timestamps your next query or batch job needs. Here is the file workflow for the parcel job.

Describe the forecast. Get the file back.

With The Forecasting Company, you declare what the data means and what you want to forecast. For the parcel job, the request below defines the depot and time columns, the counting rule, the weather join, and the forecast horizon.

Put the scans in transactions.parquet and weather forecasts by depot in weather.parquet. Save this request as forecast.json:

{
  "input": {
    "source": {"uri": "inline://transactions"},
    "has_gaps": true,
    "columns": {
      "occurred_at": {"kind": "time", "frequency": "30min"},
      "depot": "identifier",
      "parcel_count": {
        "kind": "target",
        "aggregate": "sum",
        "impute": {"const": 0}
      }
    },
    "covariates": [{
      "schema": {
        "version": "0.3",
        "source": {"uri": "inline://weather"},
        "columns": {
          "valid_at": {"kind": "time", "frequency": "30min"},
          "depot_id": "identifier",
          "temperature": {"kind": "future", "aggregate": "mean"}
        }
      },
      "on": [{"base": "depot", "attached": "depot_id"}, "time"]
    }]
  },
  "context": "2w",
  "prediction_length": "1d",
  "quantiles": [0.1, 0.5, 0.9]
}

This request groups transactions by depot, sums parcel counts on a 30-minute grid, matches weather by depot and time, and uses two weeks of context to forecast the next day.

Example assumptions:

Then send the files and request a Parquet response:

curl --fail --show-error \
  'https://api.retrocast.com/v1/forecast?model=t0-gamma' \
  -H "Authorization: Bearer ${TFC_API_KEY}" \
  -H 'Accept: application/vnd.apache.parquet' \
  -F 'query=@forecast.json;type=application/json' \
  -F 'transactions=@transactions.parquet' \
  -F 'weather=@weather.parquet' \
  --output forecasts.parquet

Parquet in, Parquet out, in one API call. The system handles aggregation, joins, context slicing, batching, and t0 inference. The response includes identifiers, timestamps, and quantiles, ready for your application to read from forecasts.parquet. The Urs technical report explains how the preparation engine works.

Try it with sample data: the Parquet sources cookbook includes a runnable payload and an in-page example. The response formats recipe shows how to receive Parquet output.

Choose the history and signals for each forecast

The parcel request makes two context choices: how much history t0 sees and which business signals it receives. You can change either in the request. Urs prepares that context and t0 runs inference.

Bring your business signals into the forecast

Parcel scans record what happened. A holiday calendar, a planned depot closure, or a weather forecast provides information about what is coming. You can bring those signals into the forecast even when they live in separate tables or files.

In the example above, weather lives in its own Parquet file. You declare how its depot identifiers match the transaction data and which timestamps to align. Urs handles the joins, aggregation, and time alignment inside the forecast request. Adding a holiday calendar or planned closures follows the same approach: declare the source and how it joins, then reuse that declaration for forecasts and backtests.

Your team can focus on which information matters for the business, while the product prepares it for the model. The covariate cookbook shows how to add these inputs.

Choose how far back the model can see

For the parcel forecast, two weeks show recent levels and weekday patterns. A window of 52 or 104 weeks provides roughly one or two years of history, bringing annual peaks and earlier operating conditions into view. Change "context": "2w" to "context": "104w". The system prepares the longer input window through the same workflow.

Try changing the window and resolution below.

Choose the history that enters inference
Context window
Time bucket
672observations per series · 2 weeks at 30-minute resolution
Cutoff Forecast horizonShown separately, not to scale
The last two weeks are in view. Earlier seasonal patterns are outside this context.
Compare these windows at the same historical cutoffs to see which improves the forecast.
The context window controls how much history enters each request. Counts assume a complete UTC time grid. Compare choices at the same historical cutoffs.

With t0 already pretrained, context engineering moves into the request. You can change the history or add a signal without retraining the model.

To classify support tickets, a team might fine-tune BERT on labeled examples. With an LLM, it can instead supply instructions and examples, as GPT-3 demonstrated. Both start with pretrained models; the difference is whether the application adapts the weights or the inputs.

Where the task-specific information goes

Training adaptation

Shape a model for the task
NLP
  1. Labeled task examples
  2. Fine-tune pretrained BERT
  3. Task modelNew input → task output
Forecasting
  1. Years of historical data
  2. Train a forecasting model
  3. Forecasting modelFixed inference input: recent 2 weeks
  4. Forecast

Inference context

Shape the inputs for this request
NLP
  1. Instructions + examples + retrieved documents
  2. Pretrained LLM
  3. Answer
Forecasting
  1. Selected history + covariates
  2. Pretrained t0
  3. Forecast
Choose the context for each request, within model and runtime limits.
BERT adapts through task-specific fine-tuning; LLMs and t0 can adapt through context supplied at inference. These are common patterns; the two-week forecasting window is illustrative.

Backtest with the same preparation

A longer window or another signal is useful only if it improves the forecast. Explore forecasts and backtests on your own data in Retrocast. To compare context choices through the API, reuse the forecast specification at the same historical cutoffs and time resolution. The system shifts the context windows and runs the backtests. Request a JSON response with metrics, as in the backtesting recipe.

Historical runs require the source versions that were available at each cutoff. A weather forecast issued later, a late parcel scan, or a corrected staffing plan must not enter an earlier backtest. A timestamp filter alone cannot recover those versions. With the appropriate snapshots, the same declared aggregations, joins, and missing-value rules apply in evaluation and production. Our agents can then compare forecast accuracy alongside the time needed to prepare and return each result.

For the parcel job, your team supplies access to the data, defines the forecast, and chooses a destination. The product prepares the inputs, runs forecasts and backtests, and delivers a file or table that your depot planning application can consume. Adopting t0 gives you a route from the accuracy test to that daily workflow.

Get started

  1. Self-serve: Create an account and start calling the API. The Parquet cookbook walks you through your first forecast.

    You can also work with our forecasting agents in Retrocast. An upcoming post will walk through that workflow.

  2. BYOC or special requirements: Talk to us about deployment in your own cloud (BYOC) or the specific needs of your use case.