Why promptfoo CSV test cases let domain experts edit evals
Engineers own the promptfoo config, but the correct answers usually sit with product managers, support leads and domain experts. A CSV or XLSX test source lets those experts edit rows directly, while engineers keep the config, the provider settings and the eval runs. This split fits when the test set changes often and the people who sign off on expected answers do not write code. Typical cases include a compliance team reviewing refusal wording or a support team adding new customer questions each sprint. Before adopting it, agree who owns each column, who approves a row change, and whether a spreadsheet edit goes through the same review as a config change.
The fit weakens as cases get more complex. A flat row maps one input to one expected result. If a case needs logic that varies per row, such as assertions that depend on other columns, the spreadsheet becomes a second place where engineers must debug behavior from a grid of cells. Multi-turn cases, where a conversation has several user and assistant turns, are also hard to express in single cells and are often easier to maintain in YAML or JavaScript. Confirm the current input format for multi-turn cases in the promptfoo documentation before you decide, because the supported formats change between releases.
Treat keep secrets out of spreadsheet cells as a rule from day one. API keys, customer identifiers and production credentials pasted into a shared file end up in version history, email attachments and every exported copy. Reference credentials through environment variables in the config, and limit personal data in the test set to synthetic or approved examples. promptfoo is MIT licensed, and its promptfoo introduction states that evals run on your machine and talk directly with the LLM. The spreadsheet can therefore stay in a repository or shared location you control, but confirm with your security team which storage locations the review process allows.
Each spreadsheet row crosses several trust boundaries before it is graded
The flow starts with a domain expert editing the test sheet in its spreadsheet store, then saving or exporting it as CSV. The file is committed to a git repository, where a second person reviews the change before it merges. The promptfoo config on the runner machine points at the merged file. promptfoo sends each row's variables to the model provider under test, then grades the response with that row's assertions. Results return to the CLI or web UI. Check each boundary: who can edit the sheet, what the review covers, which credentials the runner holds, and what leaves the machine when a row is sent.
Sheet edits move through a git review before promptfoo runs each row.
Which spreadsheet source fits your team
This table compares three ways to hold promptfoo test cases that product or domain experts may edit: a CSV file in the repository, an Excel workbook exported to CSV before each run, and a shared source such as Google Sheets or SharePoint. Read each column as one option and each row as one decision factor. The main takeaway is that the repository option gives the clearest review history, while shared sources are the easiest for experts to edit and need the most careful access setup.
| Factor | Local CSV in the repository | XLSX exported to CSV before each run | Shared source |
|---|---|---|---|
| Who edits | Engineers, and experts who can use git and pull requests | Domain experts in Excel, with an export step run by a developer or script | Anyone with sheet or site permission, without repository access |
| Where the data lives | CSV file in the repository, versioned with the promptfoo config | Workbook kept outside the repository, exported to CSV before each run | Google Sheets or SharePoint, outside the repository |
| When it fits | Small suites where changes go through pull requests | Experts already work in Excel and a documented export step is acceptable | Several editors need live access without git, as covered in the sibling topics on Google Sheets and SharePoint |
| Access control | Set by repository permissions and branch protection | Set by the file share or workbook owner, separate from repository rules | Set by the sheet or site sharing model, so confirm settings with your administrator |
| Review history | Every change appears in git history and can be diffed in pull requests | Workbook versions depend on the file store, and the CSV is versioned only if you commit it | Depends on the platform's revision history, so confirm retention and who can view it |
| Git friction | Experts must learn git or rely on someone who does | Low for experts, but CSVs can drift from the workbook if the export is skipped | Low for editors, but the run needs a credential that can read the source |
promptfoo CSV column conventions for variables and expected values
Treat the header row as the contract between your spreadsheet and your promptfoo config. Each column that holds an input becomes a prompt variable, so a header such as question has to match the {{question}} placeholder in your prompt, including letter case. Expected-value columns are read differently from plain input columns, and promptfoo uses reserved column names and an exact syntax to decide which cells feed assertions. Before publishing, confirm those reserved names and their syntax against the current promptfoo documentation for the version you run, and do not rely on older blog posts or memory, since conventions may change between releases. Keep one spreadsheet per test suite so a reviewer can see every variable and expected-value column on one page.
Save every CSV as UTF-8 and check the encoding in your editor before the first run, because a legacy encoding or a byte order mark can corrupt the first header name or non-English prompt text. Wrap any cell that contains a comma, a double quote or a line break in double quotes, and double any quote character inside the cell, which is the standard CSV rule most spreadsheet exports follow. Spreadsheet files store numbers and true/false values as text, so confirm how promptfoo passes those cells to assertions in your version, and test one row with a numeric answer and one with a boolean answer. Empty cells need an explicit rule too: confirm in the documentation whether a blank cell arrives as an empty string or is treated as missing, then run one row with each column left blank to see what happens.
Which assertions can live in spreadsheet cells
Spreadsheet columns work well for checks an editor can read and judge without code. Checks that depend on a model, a threshold or an engineering decision belong in the YAML config, where engineers can review them. The five cards below set that boundary for each kind of assertion.
Simple value and text checks
Exact matches, required phrases and forbidden words compare the output with a value already in the same row. Editors can own these checks because the expected value sits next to the input and the result is easy to read. The trade-off is that small wording changes can fail a correct answer, so confirm the assertion column syntax in the promptfoo docs, including how case and whitespace are handled, before adding any example.
Pattern-based checks
Pattern checks look for a shape in the output, such as a date format, an identifier, a JSON structure or a banned term. They need no model call, so they add no model cost per run. The trade-off is that a pattern can fail good answers or pass bad ones when it is too tight or too loose. An engineer should review every pattern before editors rely on it as a gate for a release.
Rubric checks need a grader
Rubric checks ask a second model to judge the answer against a written standard, such as tone, policy wording or whether the answer stays within the supplied context. The rubric text can sit in a column, but the grading provider lives in YAML, along with its credentials and model choice. Each judged row adds a model call to every run, so ask engineering which grader the team approved before editors write rubrics.
Thresholds and scoring
Per-row scores, weights and the pass threshold decide whether a run passes. Editors can propose a score for a case, but the threshold gates releases, so it is a team decision that belongs in config under version control, where its history stays visible. A threshold changed in a shared spreadsheet can move a release gate without code review. Ask who owns that number and where changes are approved.
Settings that stay in config
Model selection, provider endpoints, environment variables, output paths, timeouts and retry behavior change how the whole suite runs. Keep these out of the spreadsheet even when a column could hold them, because one edited cell can change every test at once. Ask engineering to review changes to these settings through the same process used for code.
Setting up promptfoo CSV test cases step by step
This sequence takes a spreadsheet from an idea to a versioned test source that promptfoo can run. Each step ends with a check, so a broken header, a bad path or a grading rule surfaces while the set is still small. The result is a CSV, a config that reads it, and a named owner for every column.
Confirm Node.js and install promptfoo
An engineer checks the Node.js version on the machine or CI image that will run evals. The promptfoo npm release 0.124.1, published on 8 October 2026, requires Node.js 22.22.0 or newer, so confirm that first. Open the promptfoo package page on npm to find the current version, then install it in the project that holds the config. Check:
node --versionreports 22.22.0 or higher andpromptfoo --versionprints a version without errors.Create the template sheet with agreed headers
Product and domain experts meet with engineering to agree on the header row before any cases are written. Each header is either a variable the prompt uses or an expected value an assertion will read, so name them in plain words and keep them stable once the team starts using them. Add two or three sample rows, one typical case and one edge case, then export the sheet as CSV in UTF-8. Check: the exported file opens in a plain text editor with the agreed headers on the first line, and it has no merged cells, blank headers or title rows above the table.
Reference the CSV from the config
Engineering points the
testsentry in the config at the CSV, using afile://path relative to the config file. A relative path lets the same config work on a laptop and in CI, so avoid absolute paths that only exist on one machine. Runpromptfoo evalonce against the sample rows. Check: the run loads the expected number of test cases, and it reports no parse errors about missing or misnamed columns.Run one row to confirm rendering
Limit the run to a single row using the row or test filter option, which you can confirm with
promptfoo eval --help. Read the rendered prompt in the output and compare it with the CSV row, so each variable lands in the place the prompt expects. Then read which assertions ran and what each one graded. Check: every placeholder in the prompt is replaced with the row's value, no raw placeholder text remains, and each assertion result matches what a reviewer expected for that row.Confirm a deliberately wrong row fails
Add one control row whose expected answer the current output cannot meet, such as a required phrase the model is unlikely to produce. Label it in a notes column so reviewers know it is a control. Run that row alone. The row must fail its assertion. If it passes, the assertion is too loose or reads the wrong column, and the set should not be used for regression testing until the check is fixed. Check: the control row shows a failed assertion with a visible reason in the output.
Record an owner for each column
Write down who owns each column: the person who edits the values, the person who approves the expected answers, and the engineer who maintains any assertion that reads the column. Keep this in a short table in the repository, such as a README beside the CSV, so reviewers can find the owner during a change. Check: every header in the template appears in the table with a named editor and a named approver, and each listed person has confirmed their role.
Commit the CSV and config together
Commit the CSV, the config and the ownership table in one change, so the test set and the config that reads it always move together. If experts work in Excel, keep the XLSX as their editing copy, export it to CSV before each commit, and agree on who does the export and when. Check: a fresh clone on a machine with Node.js 22.22.0 or newer runs the eval, loads the same number of test cases, and shows the same pass or fail outcome on the control row.
Keeping promptfoo CSV test files in version control
Keep the CSV in Git as the source of truth, and treat any XLSX file as an editing copy. A CSV is plain text with one test case per line, so a pull request shows each changed prompt, variable or expected value as readable text that a reviewer can check line by line. An XLSX file is a compressed archive of XML parts, so Git reports only that a binary changed and reviewers cannot see what moved. The most common conflict comes from two editors changing adjacent rows. Git treats overlapping or neighboring line changes as a conflict, and resolving it means reading both sides and merging the rows by hand. Assign each team a set of rows or a separate file per feature area so that conflicts stay rare.
Make every spreadsheet change a branch and a pull request, including small edits from domain experts. Expected values deserve the same scrutiny as code. A change to an expected-value column or an assertion threshold can move scores across the whole suite, so the reviewer should ask whether the new answer is actually correct, not only whether the file is well formed. Add a CODEOWNERS file that assigns the test directory to the domain owners, and require their approval before merge. Confirm with your Git platform whether path-based required reviews are available on your plan and whether they apply to repository administrators.
Run an XLSX to CSV export in a pre-commit hook so the file that gets committed is always the one the runner reads. The hook should use a fixed sheet name, a fixed header row, UTF-8 encoding, and no formula-only cells, since a CSV reader will not recalculate them. If the export changes a file that was already staged, the hook should stop the commit so the author can review the result. Before relying on the hook, run promptfoo against the exported file once and confirm that the row count and variable names match the sheet. Hooks run only on machines where they are installed, so run the same export check in CI as well.
Keeping sensitive data out of spreadsheet test cases
Spreadsheet test cases often collect more data than the test needs, and the people editing them often sit outside the engineering team. The five cards cover where that data can leak: git history, shared drive permissions, workbook features, model providers and results servers. Each card names one control to set before the first run.
Customer data in git history
Teams often paste production records into a CSV so a test runs, then commit the file. Git history keeps every row, even after the file is later edited or deleted. For Managing promptfoo test cases in CSV and Excel files, keep the repository to synthetic or redacted rows, and load identifiable records from a controlled location at run time. Scan commits for personal data and secrets in pre-commit hooks or CI, and check the history of any existing file before merging.
Who can edit expected answers
A shared drive usually grants access to the whole workbook, so anyone with edit rights can change the input prompt or the expected answer a test checks. Changing an expected value silently moves the pass line. Separate the people who write inputs from the people who approve expected answers, restrict edit rights per sheet where your platform supports it, and require a named reviewer for every change to an expected column. Confirm link-sharing and external guest settings too.
Formulas and macros in XLSX
An XLSX file can carry formulas, macros, external links and hidden sheets, and a cell that displays a value may be a formula pulling from another workbook. Treat the workbook as executable content. Paste values only into the test source, remove macros and external links, unhide and review every sheet, and export a plain CSV for runs. Cells starting with =, +, - or @ can also be read as formulas when the CSV is reopened in a spreadsheet program.
Prompts sent to model providers
Promptfoo runs on your machine, but each eval still calls the model provider you configure, and every variable from a test row goes into the prompt. A local run does not keep test data inside your network. Before loading customer or patient records as variables, confirm the provider's data handling terms, retention and processing region for that data class, or point the run at a model endpoint you host and control.
Promptfoo introductionResults on a shared server
Eval results hold prompts, outputs and the variables from each row, so a results server stores the same sensitive data. The self-hosting docs state that the server uses a local SQLite database that cannot be shared across replicas, and that it has no RBAC, no built-in authentication or SSO, and is not recommended for production use. Do not upload customer rows to a shared instance without an access layer you run. Place it behind your authenticating proxy on a restricted network, or share redacted exports.
Self-hosting docsWhat spreadsheet-driven promptfoo testing costs and what it needs from you
Does loading promptfoo test cases from CSV or Excel cost anything?
Using CSV or spreadsheet sources in promptfoo carries no license fee for the open-source tool. promptfoo is licensed under the MIT license, and the free Community edition includes all LLM evaluation features, all model providers and integrations, and red teaming with 10k probes per month, with community support. Confirm on the promptfoo pricing page that your edition covers the features you plan to use, and check how XLSX files are handled in the version you install. Your recurring costs are then the model API calls made during each run, the hosting for the machine that runs evals, and the people who maintain the sheets. Enterprise adds team sharing and SSO at custom pricing, so it is a separate decision covered below.
What drives the setup effort for promptfoo test sheets?
The main drivers are the number of sources, the sign-off rules around them and the complexity of the assertions. Each source needs its own config entry, column convention and parse check, so more sheets mean more setup. Sign-off rules add work when a domain expert must approve changes before they merge, because that requires a review step in git or in a shared workflow. Assertions vary the most:
- Equality and contains checks map directly from columns and are quick to set up.
- Rubric or LLM-graded assertions need prompt design, calibration against known good and bad answers, and a plan for regrading when the grader changes.
- Assertions that depend on structured output or retrieved context need the application's output shape documented first.
Ask each partner to quote every driver separately in the written scope.
How long does promptfoo test sheet setup take?
The duration depends on the written scope, so no general figure applies. A scope with one sheet, simple checks and one reviewer differs widely from one covering several sources, sign-off workflows and rubric-based grading. For a fixed-scope engagement, the scope, deliverables and timeline are agreed in writing before work starts, so the timeline should be tied to named sources, assertion types and review steps. To estimate your own effort, list each source, each assertion type and each reviewer, then count the columns and approval steps for each. Compare any proposed timeline against the same list so the plans can be checked item by item.
What must our team provide for promptfoo test sheets?
Your team supplies three things. Domain expert time is needed to write expected values, review edge cases and approve changes to the sheets, and it recurs as the product changes. A git owner manages the repository, branch rules, review requirements and the link between sheets and config files, so every change stays traceable. A Node.js runtime must be available on each machine or CI runner that executes evals, because promptfoo 0.124.1 requires Node.js 22.22.0 or newer. Also name one person who answers questions about the sheets during the build and after handover.
Can our internal team manage promptfoo test sheets without a partner?
Yes, an internal team can do it alone if the first scope stays small and the skills are present. You need someone comfortable with Node.js and the command line, a git owner, and a domain expert who will own the expected values. Most internal teams find the hard parts are the column convention decisions, the assertion calibration and wiring the suite into a pipeline, because those choices shape every later edit. A practical route is a pilot with one sheet and a few assertion types, then expansion source by source. Bring in a partner when the scope grows across teams or when sign-off and security reviews need documented evidence.
When should we consider Enterprise team sharing or a self-hosted server?
Consider Enterprise when several teams need shared results, teams-based access control, SSO, custom roles or centralized monitoring. The On-Premise option runs the Enterprise functionality on your own infrastructure with complete data isolation and a dedicated deployment engineer, priced on request. For the self-hosted open-source server, note its limits: it stores data in a local SQLite database that cannot be shared across replicas, has no RBAC, horizontal scaling, built-in authentication or SSO, and is not recommended for production use. A single-team pilot can use it, but shared production use needs an architecture decision before rollout.
How is a DeployOpen engagement scoped and quoted in writing?
Most DeployOpen engagements are fixed-scope, with the scope, deliverables and timelines agreed in writing before work starts. DeployOpen does not publish a price list, so a quote follows from the written scope. To compare proposals, ask each provider to list the sources to load, the sign-off workflow, the assertion types, the CI or runner integration, the handover documentation and what your team must provide. Ongoing support, upgrades and continuous testing are available as retainers, which recur separately from the one-time setup. Ask whether the scope includes working sessions for your domain experts, so they can maintain the sheets after handover.
Limits to confirm before you commit to spreadsheets
Spreadsheets are easy for product and domain experts to edit, but several behaviors depend on your tooling, file formats and team setup. Confirm each item below in your own environment before you move the test suite into XLSX or CSV. Each card names who should confirm it.
XLSX support and export format
Confirm whether the promptfoo version you pin reads XLSX files directly or needs the sheet saved as CSV first. If export is required, write the export steps into the repository, including the sheet tab and encoding options, so editors produce the same file every time. Formula cells need a separate check: an export may write the formula text, the last calculated value or an empty value, so paste values into any column promptfoo reads. Ask the eval engineer to run one exported file and compare the loaded rows with the sheet.
Multi-line prompt cells
A prompt that spans several lines needs its line breaks stored inside one cell, and the CSV export must quote that cell correctly so the parser keeps the breaks. A lost or doubled line break changes the prompt the model receives, so the eval measures a different task without any warning. Ask a domain expert to write a three-line prompt in a test row, export the file and compare the loaded prompt with the intended text. The eval engineer should keep that row as a fixture so later sheet edits cannot silently break it.
Character encoding under team locale
Spreadsheet applications save CSV files in encodings that depend on the operating system, the regional settings and the export option chosen. A file saved in one encoding can show accented letters, currency symbols or non-Latin scripts as garbled characters when promptfoo reads it. Confirm which encoding promptfoo expects, then ask the platform engineer and one editor per locale to export a row with non-ASCII text and check it end to end. Do this before translated cases enter the suite.
Row counts and run time
Each row becomes a test case, and every test case runs once for each prompt and provider in the configuration, so run time grows with the product of those counts. Measure a full run on a copy of the sheet, using the model endpoint your pipeline will call, then project that timing to the largest sheet you expect. The platform engineer should confirm the job timeout on build agents and the caching and concurrency settings before anyone treats the sheet as the source of truth.
Node.js version on build agents
The promptfoo release published on 8 October 2026 (0.124.1) requires Node.js 22.22.0 or newer. Build agents that run spreadsheet-based evals must meet that floor, and so must any laptop where editors run the CLI to check their changes. Ask the build agent administrator to confirm the installed Node.js version on every runner image, and pin the required version in the repository so an outdated image fails early. Recheck the promptfoo on npm page before each upgrade, because the minimum may change.
Shared editor access and SSO
Decide who can edit the sheet and who can approve changes before the file leaves one maintainer's hands. Existing file permissions on a shared drive may cover a small team with one approval path. Teams-based access control and SSO are listed as Enterprise features, and the self-hosted app has no built-in authentication or SSO, so a larger or audited group may need Enterprise. Ask your identity team whether drive permissions satisfy your access review, and ask promptfoo pricing which edition includes the controls you need.
How DeployOpen scopes and supports spreadsheet-driven test suites
DeployOpen treats the spreadsheet as part of the test system: we agree which columns hold variables, expected values and assertions before any test file is written. The work is scoped in writing and built into a promptfoo suite that domain experts can edit and engineers can review in version control. Ongoing support is available as a retainer.
How we scope
- The written scope lists which spreadsheets, sheets and tabs become test sources, and who edits each one.
- Column conventions for variables, expected values and assertions are agreed with your product and domain owners before build starts.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before any work begins.
How we build
- Build the CSV or XLSX sources and the promptfoo config that reads them, with clearly named variable and assertion columns.
- Run sample rows end to end and confirm each failure traces back to a specific spreadsheet row.
- Add a validation step that flags missing values, duplicate IDs and malformed assertion text before a run starts.
How we hand over
- Deliver source files in version control with an editor guide covering column meanings and allowed values.
- Document how spreadsheet changes flow into a run, including who merges edits and how a bad edit is reverted.
- Walk your team through the suite so engineers can add rows and assertions without rebuilding the config.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Retainer work can cover new sheets, changed column conventions and promptfoo version upgrades in your environment.
- Confirm with your team which parts of the spreadsheet contain sensitive data before deciding where the files are stored.

