Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

promptfooconfig.yaml 1009 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: Loading test cases from separate YAML configuration files
  3. prompts:
  4. - file://prompt*.txt
  5. providers:
  6. - openai:gpt-4.1-mini
  7. # The defaultTest configuration is applied to every test case in this config.
  8. defaultTest:
  9. vars:
  10. system_message: file://system_prompt.txt
  11. # Loads & runs all test cases matching these filepaths
  12. tests:
  13. # You can supply an exact filepath
  14. - file://tests/tests2.yaml
  15. # Or a glob (wildcard)
  16. - file://tests/*
  17. # Mix and match with actual test cases
  18. - vars:
  19. topic: the internet
  20. content_type: witty tweets
  21. # Use the file:// prefix to load entire files as vars
  22. - vars:
  23. topic: file://vars/var_topic.yaml
  24. content_type: file://vars/var_content_type.yaml
  25. # You can also use the file:// prefix to load assertions
  26. - vars:
  27. topic: fruit loops
  28. content_type: Youtube intro
  29. assert:
  30. - type: javascript
  31. value: file://asserts/assert.js
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...