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 serving
dbschema/queries/scoreClaim.edgeql
select 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>$claim

Parquet shards

Parquet shards and checkpoints are typed files.

Extend ext::files::File on DatasetShard and Checkpoint and enforce a Parquet format check. Your export script streams shards to object storage, and your training code reads the verified files.

dbschema/queries/registerShard.edgeql
select (insert DatasetShard {  file_name := <str>$name,  file_size := <int64>$size,  version := <str>$version,  number := <int64>$number,  row_count := <int64>$row_count,  sha256 := <str>$sha256,  reach := <optional str>$reach,}) { id, file_upload }
Model registry and checkpoints

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 scoring
dbschema/queries/compareModels.edgeql
with  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.

dbschema/queries/recordPrediction.edgeql
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 };
Evaluations and shadow scoring

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

Pricing