Skip to main content

Datalier by Concave AI - data infrastructure for AI model training

Project description

Datalier — by Concave AI

Data infrastructure for AI model training. One SDK — raw data in, quality-assured training data out.

Installation

pip install datalier

Quick Start

from datalier import DatalierClient

client = DatalierClient(
    api_key="sk_concave_...",
    base_url="https://api.theconcaveai.com",  # or http://localhost:8000 for local
)

# Upload a dataset
dataset = client.upload("training_pairs.jsonl", dataset_type="rlhf")
print(f"Uploaded: {dataset.id}{dataset.row_count} rows")

# Transform (validate, deduplicate, detect PII)
result = client.transform(dataset.id, steps=["validate", "dedup", "pii_scan"])
print(f"PII found: {result['pii_detection']['total_pii_found']}")

# Label with RLAIF (AI handles 80-90%, humans review edge cases)
result = client.label(dataset.id, dataset_type="rlhf", min_kappa=0.70)
print(f"Auto-labeled: {result['ai_labeled']}/{result['total_tasks']}")

# Check quality metrics
quality = client.get_quality(dataset.id)
print(f"Kappa: {quality.kappa} | Gold Accuracy: {quality.gold_accuracy}")

# Approve and version
client.approve(dataset.id)
version = client.snapshot(dataset.id)
print(f"Snapshot: {version['version']} — hash: {version['snapshot_hash'][:8]}...")

# Export as DPO format for training
download_url = client.export(dataset.id, fmt="dpo", version="v1.0")

# Monitor model performance (Layer 5)
model = client.register_model("my_model_v1", trained_on_dataset_id=dataset.id, trained_on_version="v1.0")
client.submit_metrics(model["model_id"], accuracy=0.89, f1=0.85)
drift = client.get_drift(model["model_id"])

Platform Layers

Layer Function SDK Methods
1 - Ingest Upload from any source upload(), list_datasets(), get_dataset()
2 - Prepare Validate, dedup, PII scan transform(), get_profile(), get_pii_report(), redact()
3 - Label RLAIF + human review label(), get_quality(), approve()
4 - Version Snapshots + lineage snapshot(), list_versions(), get_lineage(), rollback(), export()
5 - Observe Monitor + re-label loop register_model(), submit_metrics(), get_drift(), trigger_relabel()

Using with Local Dev Server

client = DatalierClient(
    api_key="your-jwt-token",
    base_url="http://localhost:8000",
)

Links

License

MIT — Concave AI 2026

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datalier-0.1.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datalier-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file datalier-0.1.0.tar.gz.

File metadata

  • Download URL: datalier-0.1.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for datalier-0.1.0.tar.gz
Algorithm Hash digest
SHA256 057fe12c939c06be5308c47f73ce8ed3a03e7c6504d02c4bf000ea8d5900b351
MD5 d4e204d1d1cdea99640fa59104038d3f
BLAKE2b-256 53380c2748e277e1d0457de645fdb1923ec32936d3586aecd8ac784eb28f009c

See more details on using hashes here.

File details

Details for the file datalier-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: datalier-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for datalier-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df2469a2059a59a6a050ec4dd6d1530742918210ee87c65d4204938334761f18
MD5 84178130aeabdc9ab9479b43955fcaa9
BLAKE2b-256 75a96d4a482289112bcfbe26e0def2fd13ddaa33a5fc983bcc51570aea81c95c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page