Basic repository to demonstrate how to set up Magnitude test cases.
- Clone repo:
git clone https://github.com/magnitudedev/magnitude-demo-repo.git
- Add LLM keys to .env file
Please follow the Configure LLMs section in the main Magnitude repo.
- Install deps
npm i
- Start local server (in a separate terminal)
npm run dev
- Run Magnitude against the local server
npx magnitude
See magnitude.yaml for an example of how to run your Magnitude test suite with GitHub Actions.