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 1.3 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
  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. scenarios:
  8. - config:
  9. - vars:
  10. language: Spanish
  11. expectedHelloWorld: 'Hola mundo'
  12. expectedGoodMorning: 'Buenos días'
  13. expectedHowAreYou: '¿Cómo estás?'
  14. - vars:
  15. language: French
  16. expectedHelloWorld: 'Bonjour le monde'
  17. expectedGoodMorning: 'Bonjour'
  18. expectedHowAreYou: 'Comment ça va?'
  19. - vars:
  20. language: German
  21. expectedHelloWorld: 'Hallo Welt'
  22. expectedGoodMorning: 'Guten Morgen'
  23. expectedHowAreYou: 'Wie geht es dir?'
  24. tests:
  25. - description: Translated Hello World
  26. vars:
  27. input: 'Hello world'
  28. assert:
  29. - type: similar
  30. value: '{{expectedHelloWorld}}'
  31. threshold: 0.90
  32. - description: Translated Good Morning
  33. vars:
  34. input: 'Good morning'
  35. assert:
  36. - type: similar
  37. value: '{{expectedGoodMorning}}'
  38. threshold: 0.90
  39. - description: Translated How are you?
  40. vars:
  41. input: 'How are you?'
  42. assert:
  43. - type: similar
  44. value: '{{expectedHowAreYou}}'
  45. threshold: 0.90
Tip!

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

Comments

Loading...