In this article
A CSV column can create assertions or supply reference data; its role changes what the evaluation checks.
Assign roles to imported columns
A spreadsheet containing questions and answers does not become a well-defined evaluation merely by being saved as CSV. Promptfoo’s test-case documentation gives reserved columns special meanings. In particular, expected-output columns create assertions. An ordinary reference-answer field instead supplies data that a separately configured assertion can use. Decide which behavior is intended before importing a large collection, especially when an existing dataset uses familiar but ambiguous column names.
Read the assertion language
An expected-output cell can specify an assertion type and value. Without a type prefix, the documented default is equality. That differs from semantic agreement with a reference answer. The assertion guide explains the available tests. A natural-language reference sentence can therefore become a strict comparison unexpectedly. Inspect the parsed test and choose a criterion matching the task instead of assuming that the importer infers the intended notion of correctness.
Keep references out of the model input
The configuration overview describes variables used to construct prompts and assertions. Supplying a reference as a variable does not require interpolating it into the evaluated prompt. Audit templates so a field intended only for grading remains unavailable to the answering model. If an experiment intentionally provides a reference, describe that different task explicitly. Otherwise, a good score may reflect accidental answer exposure rather than the capability the dataset was meant to measure.
Validate escaping at each layer
CSV quoting and assertion-string parsing are separate transformations. Commas or quotation marks inside a value may require handling at both layers. A cell that looks right in a spreadsheet can still split a list assertion differently from the author’s intention. Use diagnostic rows containing punctuation and inspect the resulting assertion values. For structured test files, prefer the documented structured assertion representation rather than assuming CSV-specific conventions carry over unchanged.
Reconcile counts before a full run
Check imported row counts, resulting assertion types, reference variables and metadata filters before evaluating every model. Preserve a small fixture demonstrating the intended interpretation. The guides to annotation coordinate integrity and weighted acceptance rules provide related controls. Accept the import when each column’s role and every parsed assertion can be explained from the source record, keeping dataset labels, executable tests and prompt inputs as distinct parts of the measurement contract.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.