With Prompts.txt File
# Using an External prompts.txt File with PromptFoo
The main [Quickstart Guide (README)](./README.md) shows how to run PromptFoo using prompts written directly inside the `promptfooconfig.yaml` file. That's great for quick tests or small projects.
But if you have **lots of prompts**, or want to **easily swap them in and out**, it's better to store them in a separate file like `prompts.txt`.
This guide shows how to do that.
---
## 🧾 Why Use an External prompts.txt File?
- Keeps your config file clean
- Easier to manage many prompts without editing YAML
- You can reuse or substitute different prompt files for different evaluations
---
## 📁 Folder Structurewhen to use it
Community prompt sourced from the open-source GitHub repo ashleysally00/promptfoo-quickstart-guide (no explicit license). A "With Prompts.txt File" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
roleplaycommunitygeneral
source
ashleysally00/promptfoo-quickstart-guide · no explicit license