Skip to main content
Back to Components manual

Batch Run

On this page

Purpose

Batch Run sends each row from a DataFrame to a connected language model and returns a DataFrame with one model response per row.

When to use it

  • Classify a column of support tickets.
  • Summarize records imported from a CSV file.
  • Generate a short response for each row in a dataset.

Required setup

Connect a DataFrame and a language model. If you set Column Name, confirm that column exists in the incoming DataFrame.

How to use it

  1. Connect a DataFrame and a language model.
  2. Enter Column Name to send one column to the model, or leave it blank to send each complete row.
  3. Add Instructions when every row needs the same task.
  4. Send LLM Results to a DataFrame-aware component.

Configuration

SettingWhat it controlsRecommended starting point
Language ModelThe model that answers each row. Required. Connect a Language Model output.Connect one model that fits the task.
DataFrameThe rows to process. Required.Connect a DataFrame output.
InstructionsAdds the same instruction to every model call.State the task and the response format.
Column NameChooses the column to process. A blank value sends every field in the row as TOML.Start with one text column.
Output Column NameNames the column that holds model responses. The default is model_response.Keep the default unless a downstream step expects another name.
Enable MetadataAdds a metadata column with per-row processing details.Leave it off until you need diagnostics.

Expected result

The output keeps the original columns and adds the response column and batch_index. Naming a column that is not in the DataFrame produces an error that names the columns available.

Every row goes to the model in one run, and a model failure ends that run without returning rows for the rows that did succeed. Start with a small sample before sending a full dataset to a paid model.

Reference details

Use Parser or Type Convert when the model response needs more structure. Use DataFrame Operations when the batch output needs filtering or reshaping.

Back to Components manual