Prompt Chain

Test prompt configurations with inline YAML examples

Run prompt evaluation tests using YAML configurations with inline or CSV test cases for rapid validation.

Works with promptfoo

77
Spark score
out of 100
Updated 21 days ago
Version 0.121.18

Add to Favorites

Why it matters

Validate and test AI prompt configurations using a simple YAML-based testing framework that allows developers to quickly set up and run test suites with inline or CSV-based test cases.

Outcomes

What it gets done

01

Initialize test projects with example configurations

02

Define test cases inline within YAML configuration files

03

Run evaluation suites against prompt configurations

04

Switch between inline and CSV-based test inputs

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/pfoo-simple-test | bash

Overview

Simple Test

A promptfoo example showing YAML configuration with inline tests and CSV test input options. Use when learning promptfoo basics and understanding configuration structure with inline or CSV-based tests.

What it does

Simple Test is a promptfoo example configuration that demonstrates how to set up and run prompt evaluation tests using YAML with inline test definitions. It provides a working template for testing AI prompts with the flexibility to switch between inline YAML tests and external CSV test files.

When to use - and when NOT to

Use Simple Test when you're learning promptfoo's testing capabilities and need a minimal working example to understand the basic configuration structure. Use it as a starting point before building more complex evaluation workflows.

This is a learning example that demonstrates basic configuration structure with inline tests and CSV test input alternatives.

Inputs and outputs

You provide a YAML configuration file with inline test definitions or reference an external CSV file containing test cases. The configuration specifies the prompts to evaluate and the test scenarios to run against them.

You receive test execution results from promptfoo's evaluation engine, showing how your prompts perform against the defined test cases.

How to use it

Initialize the example in your local environment:

npx promptfoo@latest init --example simple-test
cd simple-test

Run the test suite with the default inline YAML tests:

promptfoo eval

Alternatively, switch to CSV-based test input by editing the configuration to set tests: tests.csv, then run:

promptfoo eval --tests tests.csv

Who it's for

Simple Test is designed for those who are new to promptfoo and want to understand the fundamentals of prompt testing. It provides an entry point for learning the basic configuration structure.

Source README

simple-test (Simple Test)

You can run this example with:

npx promptfoo@latest init --example simple-test
cd simple-test

Usage

This example shows a YAML configuration with inline tests.

Run the test suite with:

promptfoo eval

Note that you can edit the configuration to use a CSV test input instead. Set
tests: tests.csv and try running it again, or run:

promptfoo eval --tests tests.csv

FAQ

Common questions

Discussion

Questions & comments ยท 0

Sign In Sign in to leave a comment.