Learn R Programming

sdcMicro (version 5.8.0)

build_llm_prompt: Build LLM Prompt for Variable Role Classification

Description

Constructs a prompt for the LLM using metadata and optional codebook and data-sharing context.

Usage

build_llm_prompt(meta, policy, codebook = NULL)

Value

A character string prompt.

Arguments

meta

A data.frame with variable metadata (name, class, cardinality).

policy

One of `"open"`, `"restricted"`, or `"confidential"`.

codebook

Optional path to a CSV, TSV, YAML, JSON, TXT, or PDF file describing variable definitions.

Author

Matthias Templ