AI training data & features
Keep training data, model inputs and evals in one schema.
Read live model inputs in one query and export consented Parquet shards to object storage for your training jobs. Test new checkpoints against golden sets before rollout.
Read the models overview- Replaces
- Redis row caches and sync jobs
- Airflow / Spark dataset ETL
- Custom Parquet shard manifests
- Standalone eval and registry DB
Online features
One query reads a model’s live inputs.
Read linked records, 90-day counts and active model slots straight from your live tables in one statement. Primary and replica reads skip separate row caches and sync jobs.
Model servingselect Claim { id, amount_cents, tier := .claimant.tier, risk_limit_cents := .claimant.risk_limit_cents, claims_90_days := count(( select .claimant.<claimant[is Claim] filter .created > datetime_of_statement() - <duration>'2160 hours' )), was_sent_to_review := exists ( select .claimant.<claimant[is Claim].<claim[is Prediction] filter .verdict = 'review' ), model := assert_single((select Slot filter .name = 'claims-risk')).serving.version, shadow := assert_single((select Slot filter .name = 'claims-risk')).shadow.version,}filter .id = <uuid>$claimTraining consent
Training consent lives on the type.
Check .workspace.allows_training in an access policy on your training records. Service keys read only consented rows, and a workspace opt-out drops those rows from the next export.
type PreferencePair { required workspace: Workspace; required prompt: str; required chosen: str; required rejected: str; access policy service_reads_consenting allow select using (global role ?= 'service' and .workspace.allows_training);}Regression gates
Compare candidate models against golden sets.
Store evaluation cases and run results as typed records. One query compares a candidate checkpoint against the serving model and lists every regressed case before rollout.
Evaluations and shadow scoringwith mine := (select EvalResult filter .model = <str>$candidate), theirs := (select EvalResult filter .model = <str>$serving),select { total := count(mine), passed := count(mine filter .passed), serving_passed := count(theirs filter .passed), mean_ms := (math::mean(mine.latency_ms) if count(mine) > 0 else 0.0), regressions := ( select mine { name := .eval_case.name, verdict, expected := .eval_case.expected } filter not .passed and .eval_case in (select theirs filter .passed).eval_case ),}Shadow scoring
Shadow-score live traffic in one commit.
Save the served prediction, store the input snapshot and queue an ext::napalm::Job in one transaction. The background job scores the shadow version against the same inputs.
with made := (insert Prediction { claim := <Claim><uuid>$claim, model := <str>$model, status := PredictionStatus.Completed, features := <json>$features, score := <float64>$score, verdict := <str>$verdict, latency_ms := <int32>$latency_ms, }), shadowed := ( for version in {<optional str>$shadow} union ( insert ext::napalm::Job { query := 'shadowScore', variables := <json>(prediction := <str>made.id, model := version), } ) ),select made { id };Training pulls from the edge
Your GPU fleet downloads shards at $0.04 / GB.
Your training jobs pull dataset shards and checkpoints over signed edge URLs. Every month includes 500 GB of downloads.
$0.04 / GBdownload bandwidth for shards and checkpoints