genai-on-vertex-ai/gemini/model_upgrades/document_qna/promptfoo/promptfooconfig.yaml (11 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-lite-001"
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: factuality # LLM based autorater
value: "{{answer}}" # use the variable "answer" from dataset.jsonl as the ground truth label