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.2 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: DBRX model benchmarking against Mixtral and GPT-4o-mini
  3. prompts:
  4. - 'Think deeply and answer concisely: {{query}}'
  5. providers:
  6. - id: openrouter:databricks/dbrx-instruct
  7. config:
  8. temperature: 0
  9. - id: openrouter:mistralai/mixtral-8x7b-instruct
  10. config:
  11. temperature: 0
  12. - id: openai:gpt-4.1-mini
  13. config:
  14. temperature: 0
  15. tests:
  16. - vars:
  17. query: 'What is the capital of France?'
  18. assert:
  19. - type: contains
  20. value: 'Paris'
  21. - vars:
  22. query: 'Explain the theory of relativity.'
  23. assert:
  24. - type: contains
  25. value: 'Einstein'
  26. - vars:
  27. query: 'Write a poem about the sea.'
  28. assert:
  29. - type: llm-rubric
  30. value: 'The poem should evoke imagery such as waves or the ocean.'
  31. - vars:
  32. query: 'What are the health benefits of eating apples?'
  33. assert:
  34. - type: contains
  35. value: 'vitamin'
  36. - vars:
  37. query: "Translate 'Hello, how are you?' into Spanish."
  38. assert:
  39. - type: similar
  40. value: 'Hola, ¿cómo estás?'
  41. - vars:
  42. query: 'Output a JSON list of colors'
  43. assert:
  44. - type: is-json
  45. - type: latency
  46. threshold: 5000
Tip!

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

Comments

Loading...