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

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

Comments

Loading...