HumanSignal / HumanSignal/label-studio

[Feature Request] Support for Chained/Sequential Pre-labeling Models

Open
#7,724 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

For example, in document analysis workflows:

Model 1 (OCR): Extract text from images → outputs text regions with bounding boxes
Model 2 (Text Classification): Classify extracted text → outputs text categories (title, content, contact info, etc.)
Model 3 (NER/Sentiment): Further process classified text → outputs entities or sentiment labels
Currently, we have to either:

Combine all models into a single ML backend (complex and hard to maintain)
Run models separately and manually combine results (inefficient)
Use external preprocessing (loses the benefits of Label Studio's pre-labeling workflow)

**Describe the solution you'd like**
Native Pipeline Support
Add native support for model chaining in Label Studio with configuration like:
```yaml
ml_backends:
- name: "ocr_model"
url: "http://localhost:9090"
output_to: ["text_classification_model"]

- name: "text_classification_model"
url: "http://localhost:9091"
input_from: ["ocr_model"]
output_to: ["sentiment_model"]

- name: "sentiment_model"
url: "http://localhost:9092"
input_from: ["text_classification_model"]
```

**Describe alternatives you've considered**

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.