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 702 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: Array-based multi-language translation testing
  3. prompts:
  4. - file://prompts.txt
  5. providers:
  6. - openai:gpt-4.1-mini
  7. - openai:gpt-4.1
  8. - anthropic:claude-sonnet-4-20250514
  9. tests:
  10. - vars:
  11. language:
  12. - French
  13. - German
  14. - Spanish
  15. - Italian
  16. - Portuguese
  17. input:
  18. - 'Hello world'
  19. - 'Good morning'
  20. - 'How are you?'
  21. - 'Thank you very much'
  22. - 'See you later'
  23. assert:
  24. - type: llm-rubric
  25. value: 'Is this a correct translation of "{{input}}" into {{language}}? Score 1-5 where 5 is perfect.'
  26. threshold: 0.7
Tip!

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

Comments

Loading...