- batch prediction scores;
- entity embeddings generated during prediction;
- generated training tables;
- model artifacts for online serving bundles.
Batch prediction outputs
PassOutputConfig to trainer.predict() to write predictions and/or embeddings to a destination connector.
output_types controls which artifacts are written:
If
output_connector is omitted, Kumo produces a local-download output instead of writing to an external destination.
Destination connectors and table names
output_connector is any supported SDK connector that Kumo can write to for your deployment. output_table_name identifies the output location in that connector.
(schema, table) tuple for the destination table.
Metadata columns
Add metadata columns to prediction output withoutput_metadata_fields.
JOB_TIMESTAMP records when the job was run. ANCHOR_TIMESTAMP records the prediction anchor time for temporal prediction tasks; requesting it for a non-temporal prediction task raises an error.
Append versus overwrite
Some connector types support connector-specific write modes. UseBigQueryOutputConfig or SnowflakeConnectorConfig with connector_specific_config.
MetadataField.JOB_TIMESTAMP so downstream consumers can distinguish runs.
Export generated training tables
UseTrainingTableExportConfig when you need to persist the full generated training table for inspection, governance, or downstream reuse.
TrainingTableExportConfig requires output_types={"training_table"}, an output_connector, and an output_table_name. Prediction metadata fields are not supported for training table exports. For BigQuery and Snowflake destinations, you can also use connector_specific_config to set the connector-specific write mode.
Export model artifacts for online serving
export_model() creates a model artifact export job. It bundles the online-serving model directory with embeddings from a batch prediction job and copies the bundle to the output path in ModelOutputConfig.
non_blocking=False to wait for completion immediately.
Monitoring export jobs
export_model(..., non_blocking=True) returns an ArtifactExportJob. Use the same future-style pattern as training and prediction jobs.
result() raises an error.
Production tips
- Keep output table names deterministic so orchestration systems can find the latest run.
- Include run metadata columns when appending to shared prediction tables.
- Use separate output locations for predictions and embeddings if they have different downstream consumers.
- Export model artifacts only after the training and embedding-producing prediction jobs have completed successfully.