Skip to contents

Processes a column in a data frame using a language model.

Usage

llm_structure(df, col_name, prompt, model = "gpt-4o-mini")

Arguments

df

A data frame containing the input data.

col_name

A character string specifying the column name to process.

prompt

A character string containing the prompt for the language model.

model

A character string specifying the language model to use (e.g., "gpt-4o-mini").

Value

A data frame with an additional column named <col_name>_llm containing the language model's output.