Skip to main content
Before you begin, make sure you have:
  1. A Datalab account with an API key (new accounts include $5 in free credits)
  2. Python 3.10+ installed
  3. The Datalab SDK: pip install datalab-python-sdk
  4. Your DATALAB_API_KEY environment variable set

Using Forge

Forge provides a visual pipeline builder where you can:
  1. Start from a template or create a blank pipeline
  2. Add processors — click to add convert, extract, segment, custom, or fill processors
  3. Configure each processor — set processing mode, schemas, field data, and options in the configuration panel
  4. Test with a document — run the pipeline and watch each processor complete in real-time
  5. Save and version — name your pipeline and publish versions for production use
Edits in Forge auto-save as a draft. Your published versions remain unchanged until you explicitly publish a new version.

Using the SDK

Create a Pipeline

Define processors using PipelineProcessor and create the pipeline:
The pipeline starts as an unsaved draft.

Save the Pipeline

Name and save the pipeline so it appears in your pipeline list:

Update Steps

Update a pipeline’s steps. This creates a draft if the pipeline has a published version:

Using the REST API

Processor Configuration Reference

Convert Processor

Controls how the document is parsed.

Extract Processor

Extracts structured data using a JSON schema. Requires a preceding convert processor (or segment / custom).
Use detailed description fields in your schema to improve extraction accuracy. Tell the model what to look for.

Segment Processor

Splits a document into logical sections. Requires a preceding convert processor.

Custom Processor

Applies use-case-specific customizations to convert output. Requires a preceding convert processor. See Custom Processors for details.

Fill Processor

Fills form fields in a PDF or image. fill is always the only step in a pipeline — it cannot be chained with convert, extract, or segment. Use it to apply versioning and execution tracking to your form-filling workflows.

List and Manage Pipelines

Next Steps

Pipeline Versioning

Manage drafts, publish versions, and pin production deployments.

Run a Pipeline

Execute pipelines with overrides and track results.

Structured Extraction

Deep dive on extraction schemas and confidence scoring.

SDK Reference

Full SDK reference for all pipeline methods.