Setup Guide
Install the tools you need for promptfoo evaluations.
Visual Studio Code (VSCode)
Follow the official installation guide: https://code.visualstudio.com/docs/setup/windows
Important notes:
- Use the User setup (doesn’t require admin rights)
- Setup adds VS Code to your
%PATH%- restart terminal after install - If you have PEDM restrictions, the user setup should work without elevation
Node.js
Node.js is a JavaScript runtime environment and this is needed to run promptfoo on your own computer.
Following the initial part of the VSCode node.js totorial, do the following
Download and install:
- Go to https://nodejs.org/
- Download the LTS version (Long Term Support - more stable)
- Run the installer with default settings
-
Restart your terminal after installation:
In VSCode chooseView > Terminal(Ctrl+` with the backtick character) and open the integrated terminal, nowVerify installation:
node --version npm --version
VSCode Extensions
After installing VSCode, install the YAML extension:
- Open VSCode
- Click Extensions icon (left sidebar, 4 squares)
- Search for “YAML”
- Install YAML by Red Hat (For reference: This is the corresponding webpage extension)
Configure YAML Settings
- Open settings: File → Preferences → Settings (or
Ctrl+,) - Search for “YAML”
- Recommended settings:
- ✅
YAML: Schema Download- Enable (downloads schema for validation) - ✅
YAML: Format- Enable auto-formatting - ✅
YAML: Validate- Enable validation
- ✅
promptfoo
Finally we install promptfoo:
In the VSCode terminal:
npm install -g promptfoo
Probably Optional: Git
To install git see part two of the setup guide.
Next Steps
Proceed to Session 2: Access our LLMs and run promptfoo demo