- A Datalab account with an API key (new accounts include $5 in free credits)
- Python 3.10+ installed
- The Datalab SDK:
pip install datalab-python-sdk - Your
DATALAB_API_KEYenvironment variable set
Using Forge
Forge provides a visual pipeline builder where you can:- Start from a template or create a blank pipeline
- Add processors — click to add convert, extract, segment, custom, or fill processors
- Configure each processor — set processing mode, schemas, field data, and options in the configuration panel
- Test with a document — run the pipeline and watch each processor complete in real-time
- Save and version — name your pipeline and publish versions for production use
Using the SDK
Create a Pipeline
Define processors usingPipelineProcessor and create the pipeline:
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 precedingconvert processor (or segment / custom).
Segment Processor
Splits a document into logical sections. Requires a precedingconvert processor.
Custom Processor
Applies use-case-specific customizations to convert output. Requires a precedingconvert 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.