examples/getting-started/README.md
You can run this example with:
npx promptfoo@latest init --example getting-started
cd getting-started
This is a simple example that demonstrates the basic functionality of promptfoo. It tests two different translation prompts across multiple language models.
export OPENAI_API_KEY=your-key-here
Tip: you can also put this key in a .env file. Be sure not to commit it to git.
promptfoo eval
This example:
The configuration in promptfooconfig.yaml shows:
{{variable_name}}This is the same example shown in the Getting Started guide at https://promptfoo.dev/docs/getting-started