Skip to main content

Pipeline Examples

This directory contains real-world examples demonstrating constellation-lang patterns and best practices.

Examples by Category

Text Processing

Data Processing

ML Pipelines

Running Examples

Quick Start

The easiest way to run these examples is with the VSCode extension. Copy the code, paste into a .cst file, and press Ctrl+Shift+R.

In VSCode

  1. Copy the code block to a .cst file
  2. Press Ctrl+Shift+R to run
  3. Enter inputs when prompted

Via HTTP API

curl -X POST http://localhost:8080/run \
-H "Content-Type: application/json" \
-d '{
"source": "<paste source code here>",
"inputs": { ... }
}'

Prerequisites

Server Required

Both the VSCode extension and HTTP API methods require a running Constellation server.

Make sure the server is running:

make server

Example Complexity Guide

ExampleDifficultyConcepts Covered
Text CleaningBeginnerBasic functions, chaining
Data StatisticsBeginnerList functions, multiple outputs
Content AnalysisIntermediateRecord types, field access
List ProcessingIntermediateHigher-order functions, lambdas
Batch EnrichmentIntermediateCandidates, merge, projection
Scoring PipelineAdvancedConditionals, type algebra, custom types
Learning Path

Start with the Beginner examples (Text Cleaning, Data Statistics) to understand the basics, then progress to Intermediate patterns (List Processing, Batch Enrichment) before tackling the Advanced Scoring Pipeline.

Next Steps

After working through these examples: