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 509 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. prompts:
  3. - 'file://prompts.txt'
  4. providers:
  5. - openai:gpt-4o-mini
  6. - openai:gpt-4o
  7. tests:
  8. - vars:
  9. language:
  10. - French
  11. - German
  12. - Spanish
  13. input:
  14. - 'Hello world'
  15. - 'Good morning'
  16. - 'How are you?'
  17. # You can also import vars from file. For example:
  18. # input: 'file://vars/*.txt'
  19. assert:
  20. - type: similar
  21. value: 'Hello world'
  22. threshold: 0.8
Tip!

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

Comments

Loading...