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 3.0 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'Comparison of Mistral AI Models'
  3. prompts:
  4. - file://./prompt.yaml
  5. providers:
  6. # AKA mistral-tiny-latest
  7. - mistral:open-mistral-nemo
  8. - mistral:mistral-small-latest
  9. - mistral:mistral-medium-latest
  10. - mistral:mistral-large-latest
  11. defaultTest:
  12. assert:
  13. - type: cost
  14. threshold: 0.05
  15. - type: javascript
  16. value: 'output.length >= 100 && output.length <= 500'
  17. tests:
  18. - vars:
  19. concept: 'Explain quantum entanglement to a 10-year-old child.'
  20. assert:
  21. - type: llm-rubric
  22. value: Uses simple analogies or examples
  23. - type: llm-rubric
  24. value: Avoids technical jargon
  25. - type: llm-rubric
  26. value: Maintains scientific accuracy
  27. - vars:
  28. concept: 'Describe how CRISPR gene editing works in terms a high school student would understand.'
  29. assert:
  30. - type: llm-rubric
  31. value: Explains the concept of DNA editing clearly
  32. - type: llm-rubric
  33. value: Uses appropriate metaphors or comparisons
  34. - type: llm-rubric
  35. value: Mentions potential applications or ethical considerations
  36. - vars:
  37. concept: 'Explain the concept of dark matter in the universe to someone with no background in physics.'
  38. assert:
  39. - type: llm-rubric
  40. value: Conveys the mysterious nature of dark matter
  41. - type: llm-rubric
  42. value: Explains why scientists believe it exists
  43. - type: llm-rubric
  44. value: Uses everyday analogies to make the concept relatable
  45. - vars:
  46. concept: 'Describe how machine learning algorithms can identify objects in images to a curious teenager.'
  47. assert:
  48. - type: llm-rubric
  49. value: Explains the concept of pattern recognition
  50. - type: llm-rubric
  51. value: Uses an example or analogy that a teenager can relate to
  52. - type: llm-rubric
  53. value: Mentions the need for large datasets or training
  54. - vars:
  55. concept: 'Explain the greenhouse effect and its role in climate change to a middle school student.'
  56. assert:
  57. - type: llm-rubric
  58. value: Clearly explains the basic mechanism of the greenhouse effect
  59. - type: llm-rubric
  60. value: Connects the greenhouse effect to human activities and climate change
  61. - type: llm-rubric
  62. value: Uses relatable examples or analogies
  63. - type: similar
  64. value: 'The greenhouse effect is like a blanket around Earth that traps heat. Greenhouse gases in the atmosphere, such as carbon dioxide, act like the glass in a greenhouse. They let sunlight in but prevent some of the heat from escaping back into space. This natural process keeps Earth warm enough for life. However, human activities, especially burning fossil fuels, increase the amount of greenhouse gases in the atmosphere. This enhanced greenhouse effect leads to global warming and climate change, causing rising temperatures, changing weather patterns, and other environmental impacts.'
  65. threshold: 0.7
  66. provider: mistral:embedding:mistral-embed
Tip!

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

Comments

Loading...