Skip to main content
The pipeline.run() method executes a pipeline you’ve created in Reducto Studio. Pipelines bundle parse, extract, split, and edit operations into a single reusable workflow. You configure the pipeline in Studio, deploy it to get a pipeline_id, then call it from your code.

Basic Usage


Method Signature

Parameters


Creating Pipelines

Pipelines are created and configured in Reducto Studio:
  1. Go to Studio and create a new pipeline
  2. Add and configure steps (Parse, Extract, Split, Edit)
  3. Test with sample documents
  4. Click Deploy and select Pipeline
  5. Copy the generated pipeline_id
See Pipeline Basics for detailed instructions.

Response Structure

The response structure depends on what steps your pipeline includes:

Parse Results

Extract Results

For Parse + Extract pipelines, extract is a single object:
For Parse + Split + Extract pipelines, extract is a list (one per section):

Multi-Document Pipelines

Pass multiple file IDs to process related documents together:
Multi-document pipelines parse each document separately but run extraction across combined content.
Multi-document pipelines require a pipeline without Split. Split is not supported with multiple input documents.

Error Handling


Complete Example


Best Practices

Create Pipelines in Studio

Use Studio to configure and test pipelines before deploying to production.

Version Your Pipelines

Use version names when deploying to track configuration changes.

Next Steps