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.
Fit feature transforms
to the serving runtime
Same feature order + scaling
Loads the selected artifact
or Parquet files
Slice history + signals
Run inference
or Parquet files
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.
Related tables + snapshots
Local files or object storage
Aggregation + time alignment
Missing policy + context slicingPrepared history + supported covariates
Return Parquet or write through the configured database integration
Ready for downstream queries
Ready for downstream jobs
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:
- Each scan has
parcel_count = 1. Zero filling assumes a complete transaction feed where no rows really means no parcels. - Timestamps are in UTC.
- The weather source covers both the history and forecast horizon with information available at the forecast cutoff.
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.
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.
Training adaptation
- Labeled task examples
- Fine-tune pretrained BERT
- Task modelNew input → task output
- Years of historical data
- Train a forecasting model
- Forecasting modelFixed inference input: recent 2 weeks
- Forecast
Inference context
- Instructions + examples + retrieved documents
- Pretrained LLM
- Answer
- Selected history + covariates
- Pretrained t0
- Forecast
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
-
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.
-
BYOC or special requirements: Talk to us about deployment in your own cloud (BYOC) or the specific needs of your use case.