genai-on-vertex-ai/gemini/model_upgrades/instruction_following/promptfoo/promptfooconfig.yaml (12 lines of code) (raw):
# yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
providers: # one or more models, with optional temperature and system instructions
- id: "vertex:gemini-1.5-flash"
- id: "vertex:gemini-2.0-flash"
prompts:
- file://prompt_template.txt
tests: # Promptfoo will generate a separate prompt for each record in this dataset based on the prompt template above
- file://dataset.jsonl
defaultTest: # The rules for scoring each model response
assert:
- type: answer-relevance
value: "Evaluate the generated response to ensure it fully adheres to all instructions and constraints specified in the original prompt."
threshold: 0.5