Skip to main content
Pass columns into evaluate(...) to transform row data before scorers run. On the experiment sheet they show up as computed columns (Prompt Template, JSON Path, and the rest). They use the same types as Tables Column Types. You can also add them from the Columns UI.

Columns at a glance

Column types

Each helper below maps to a ColumnType in Tables Column Types.

Prompt Template

Run a Prompt Registry or inline prompt per row (ColumnType.PROMPT_TEMPLATE). Provide exactly one of template or inline_template.

JSON Path

Extract a value from a JSON column (ColumnType.JSON_PATH).

Coalesce

Return the first non-null value from two or more sources (ColumnType.COALESCE).

Composition

Mirror an upstream column value without re-running upstream logic (ColumnType.COMPOSITION).

Cosine Similarity

Embedding cosine similarity between exactly two source columns (ColumnType.COSINE_SIMILARITY). The example below computes a Similarity column; score that column when you need a pass/fail bar (often custom code).

AI Data Extraction

Extract information from a source column with an LLM query (ColumnType.AI_DATA_EXTRACTION).

For Loop

Iterate a prompt or workflow over a collection or a fixed count (ColumnType.FOR_LOOP). Provide exactly one of iterator_source or max_iterations.

While Loop

Repeat a prompt or workflow until a condition or max iterations (ColumnType.WHILE_LOOP).