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 2.5 KB

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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: Dynamic prompt generation using JavaScript functions
  3. prompts:
  4. - 'You are an angry pirate. Be concise and stay in character. Tell me about {{topic}}'
  5. - id: 'You are an angry pirate. Be concise and stay in character. Tell me about {{topic}}'
  6. label: text
  7. - id: file://prompt.txt
  8. label: prompt_txt
  9. - file://prompt.txt
  10. - id: '*.txt'
  11. label: prompt_glob
  12. - '*.txt'
  13. - 'file://*.txt'
  14. - id: file://prompt.yaml
  15. label: prompt_yaml
  16. - file://prompt.yaml
  17. - id: file://subfolder/prompt.json
  18. label: prompt_json
  19. - file://subfolder/prompt.json
  20. - file://subfolder/*.json
  21. - id: file://prompt.md
  22. label: markdown prompt
  23. - id: file://prompt.j2
  24. label: jinja2 template
  25. - id: file://prompt.jsonl
  26. label: prompt_jsonl
  27. - file://prompt.jsonl
  28. - id: file://prompt_chat.js
  29. label: prompt_chat (js)
  30. - file://prompt_chat.js
  31. - id: file://prompt_chat.ts
  32. label: prompt_chat (ts)
  33. - file://prompt_chat.ts
  34. - id: file://prompt_string.js
  35. label: prompt_string
  36. - file://prompt_string.js
  37. - id: file://prompt_multiple.js:prompt2
  38. label: prompt_multiple with prompt2
  39. - file://prompt_multiple.js:prompt2
  40. - id: file://prompt_esm.mjs
  41. label: prompt_esm
  42. - file://prompt_esm.mjs
  43. - id: file://prompt_python.py
  44. label: prompt_python
  45. - file://prompt_python.py
  46. - id: file://prompt_python.py:prompt1
  47. label: prompt_python with prompt1
  48. - file://prompt_python.py:prompt1
  49. - id: file://prompt_python.py:Prompt.prompt
  50. label: prompt_python_class
  51. - file://prompt_python.py:Prompt.prompt_with_cot
  52. - id: file://prompt_config.js:promptWithConfig
  53. label: JS Prompt with Dynamic Config
  54. - id: file://prompt_config.py:prompt_with_config
  55. label: Python Prompt with Dynamic Config
  56. - id: file://prompts.csv
  57. label: CSV prompts
  58. providers:
  59. # Use the echo provider only to see rendered prompts without LLM calls
  60. - echo
  61. # - id: anthropic:claude-3-7-sonnet-20250219
  62. # label: Claude 3.7 Sonnet
  63. # - id: openai:gpt-4.1-mini
  64. # label: GPT-4o Mini
  65. # config below is overridden by prompt functions with config
  66. # config:
  67. # temperature: 0.0 # Default temperature, will be overridden by prompt function
  68. # max_tokens: 50 # Default max_tokens, will be overridden by prompt function
  69. tests:
  70. - vars:
  71. topic: the weather
  72. - vars:
  73. topic: bob dylan
  74. - vars:
  75. topic: the Roman Empire
  76. - vars:
  77. topic: file://another_topic.txt
Tip!

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

Comments

Loading...