Add Column to Evaluation Pipeline
Evaluations
Add Column to Evaluation Pipeline
POST
Add Column to Evaluation Pipeline
This endpoint adds evaluation steps (columns) to an existing evaluation pipeline. Columns execute sequentially from left to right, with each column able to reference outputs from previous columns.Documentation Index
Fetch the complete documentation index at: https://docs.promptlayer.com/llms.txt
Use this file to discover all available pages before exploring further.
Important Notes
- Single Column Per Request: This endpoint only allows adding one column at a time. To add multiple columns, make separate API calls for each.
- Column Order Matters: Columns execute left to right. A column can only reference columns to its left.
- Unique Names Required: Each column name must be unique within the pipeline.
- Dataset Columns Protected: You cannot overwrite columns that come from the dataset.
Scoring
By default, only the last column in a pipeline is used for score calculation. To include multiple columns in the final score:- Set
is_part_of_score: trueon each column you want to include in the score - Columns must produce boolean or numeric values to be scored
- When multiple columns are marked for scoring, the final score is the average of all included columns
Column Types and Configuration
For the complete list of supported column types and their detailed configuration options, see the Node & Column Types documentation.Batch Adding Columns
Since columns must be added one at a time, here’s a pattern for adding multiple columns:Column Reference Syntax
When configuring columns that reference other columns:- Dataset columns: Use exact column name from dataset (e.g.,
"question") - Previous columns: Use the name you assigned (e.g.,
"AI Response") - Variable columns: Reference by their name
Error Handling
The endpoint validates:- Column type is valid
- Column name is unique within the pipeline
- Configuration matches the column type schema
- Referenced columns exist (for dependent columns)
- User has permission to modify the pipeline
400: Invalid configuration or duplicate column name403: Cannot overwrite dataset columns or lacking permissions404: Report not found or not accessible
Authorizations
Body
application/json
The ID of the evaluation pipeline to add this column to.
Required range:
x >= 1The type of evaluation or transformation this column performs. Must be one of the supported column types.
Available options:
ABSOLUTE_NUMERIC_DISTANCE, AI_DATA_EXTRACTION, ASSERT_VALID, CONVERSATION_SIMULATOR, COALESCE, CODE_EXECUTION, COMBINE_COLUMNS, COMPARE, CONTAINS, COSINE_SIMILARITY, COUNT, ENDPOINT, MCP, HUMAN, JSON_PATH, LLM_ASSERTION, MATH_OPERATOR, MIN_MAX, PARSE_VALUE, APPLY_DIFF, PROMPT_TEMPLATE, REGEX, REGEX_EXTRACTION, VARIABLE, XML_PATH, WORKFLOW, CODING_AGENT Display name for this column. Must be unique within the pipeline. This name is used to reference the column in subsequent steps.
Required string length:
1 - 255Column-specific configuration. The schema varies based on column_type. See documentation for each type's requirements.
Optional position for the column. If not specified, the column is added at the end. Cannot overwrite dataset columns.
Required range:
x >= 0
