Skip to main content
Find more data like your model's failures
Describe where your model fails, or show one example, and get more samples like it, without near-duplicates and balanced across labels.

Deploy in Studio

Creates every resource below in your organization, with sample data.

Download the manifest

ai-data-curation.namespace.yaml, the file Studio and the API apply.

Template page

The demo and the use case on mixpeek.com.

At a glance

How the pieces connect

Buckets hold what you upload, collections turn it into searchable documents, and retrievers answer queries over the collections.

Deploy it

1

Get the manifest

2

Validate it

Validate runs every check apply runs and creates nothing. Fix each entry in errors, then run it again.
3

Apply it

Apply creates every resource in one call. wait_for_seed=true also waits until the sample objects are processed, so the first query below has documents to return.
The response lists each resource with its outcome in resources. Apply refuses a resource that already exists and rolls the whole apply back, so to apply the file again over this namespace add ?mode=create_missing, which creates only what is missing.

Run the first query

Look up the namespace id by name, then run failure-discovery. Check status and warnings along with documents: a run that times out still answers 200, with status degraded.

Add your own data

Each object you add to a bucket is processed by every collection that reads it. This adds one object to samples. NAMESPACE_ID is the id from the namespace lookup above.
The object is PENDING until processing finishes, then COMPLETED or FAILED. Buckets and objects covers object states, retries and duplicates.

Retrievers

failure-discovery

Describe a failure in words and get back every sample that looks like it, labeled or not, so one known miss turns into the set of samples like it. Stages: feature_search Searches: samples

similar-to-failure

Pass the URL of an image the model got wrong and get back the samples closest to it. Stages: feature_search Searches: samples

hard-examples

Every sample the model got wrong, most confident first. Stages: sort_attribute Searches: samples

curate

Search for what a dataset should cover, then keep a diverse, balanced pick: near-duplicates dropped and every label represented. Stages: feature_search → mmr → sample Searches: samples

confident-miss-monitor

The alert’s check: is the sample just written one the model got wrong with confidence 0.8 or higher. The run is scoped to that one sample and reads its fields only, so it calls no model. Materialises into confident-miss-indexed. Searches: samples

Collections

Each collection runs one extractor over a bucket, or over another collection’s documents.
multimodal_extractor@v1 over bucket samples. Feeds confident-miss-monitor, confident-miss-indexed, failure-discovery, similar-to-failure, hard-examples, curate.Reads bucket samples with multimodal_extractor v1.Inputs: image ← imageCopied onto each document: label, prediction, confidence, correct, error_category, model_version

Also created

Alerts
  • confident-miss-indexed: Emails the org notifications address (Settings -> Notifications; unset means opted out) when a newly indexed sample is one the model got wrong with confidence 0.8 or higher.
At 10,000 items a month (2 minutes or 10 pages each) and 100,000 queries, this template costs about 18.07 USD a month (1.79 USD per 1,000 items). The namespace’s daily spend budget pauses new batches before you pass it.

The manifest

Every resource above comes from this file. Change it and apply it again with ?mode=upsert to update what exists. Manifests documents each field.
ai-data-curation.namespace.yaml

Hand it to an agent

Paste this prompt into Claude Code, Cursor or another coding agent. To give the agent this whole page instead, use Copy page in the menu at the top of the page, or point it at the page’s Markdown at https://mixpeek.com/docs/templates/ai-data-curation.md.
Prompt