Create a reusable pipeline configuration that can be executed multiple times with different inputs.
Examples
from chonkie.cloud import Pipeline
pipeline = Pipeline(
slug="my-rag-pipeline",
description="Pipeline for RAG processing"
).chunk_with("recursive", chunk_size=512).refine_with("overlap", context_size=64)
# Pipeline is auto-saved on first run
chunks = pipeline.run(text="Your document text here")
Request
Unique identifier for the pipeline. Must contain only lowercase letters, numbers, dashes, and underscores.
Optional description of the pipeline’s purpose.
Array of pipeline step configurations. Must include at least one chunk step.Each step object contains:
type: Step type (process, chunk, or refine)
component: Component name (e.g., recursive, overlap, embeddings)
- Additional parameters specific to the component
Response
Unique identifier for the pipeline.
Organization that owns the pipeline.
Array of pipeline step configurations.
ISO 8601 timestamp of creation.
ISO 8601 timestamp of last update.
Errors
| Status | Description |
|---|
| 409 | Pipeline with this slug already exists |
| 422 | Invalid slug format or missing required fields |