- Turn text, images, audio, video, and PDFs into structured records.
- Assign labels, label sets, taxonomy paths, and labeled spans.
- Score and rank model outputs for evals and preference data.
- Add a reviewer and an adjudicator when label quality matters.
output_schema.
Agent.run() accepts text and media inputs. Set output_schema to validate the response against a Pydantic model.
Example
Data labeling workflows
Pick the page that matches what you need.Model choice
The cookbooks usegemini-3.5-flash for text, image, audio, video, and PDF examples. A replacement model must support the input modality and structured output used by the recipe.
To run the examples, install the Google provider and set your API key:
Explore
Data extraction
Turn any modality into a typed object, with optional per-field confidence.
Classification
Single-label, multi-label, hierarchical, and span labeling.
LLM as judge
Score outputs against a rubric. The same machinery, used for evals.
Preference data
Rank A vs B for RLHF and DPO datasets.
Multimodal inputs
Feed images, audio, video, and PDFs into any labeler.
Quality pipeline
Two labelers, a reviewer, and an adjudicator with an audit trail.