Skip to main content

Pipelines

A pipeline in CET is a visual graph of nodes that defines how context is assembled and sent to an LLM. Each node handles one piece of the context window.

Node Types

Token Budget Bar

Always visible at the top of the canvas. Color-coded breakdown:
  • 🔵 Blue — System Prompt
  • 🟢 Green — RAG chunks
  • 🟡 Yellow — Chat History
  • 🔴 Red — Over budget
Total Budget = Model Context Window − Max Output Tokens

Pipeline Execution Steps

When you run a pipeline, CET:
  1. Loads the pipeline config from Supabase
  2. Runs vector search (pgvector) for the RAG node
  3. Compresses / truncates chat history per strategy
  4. Allocates the token budget per block
  5. Deduplicates and relevance-filters retrieved chunks
  6. Builds the final messages array
  7. Calls the LLM via LiteLLM (SSE stream)
  8. Logs the run — tokens, cost, latency — to pipeline_runs

Pipeline Config JSON

Saving & Versioning

  • Save creates a new immutable version — never overwrites
  • View version history from the pipeline toolbar
  • Export pipeline config as JSON
  • Duplicate to branch off a new experiment