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. - id: file://prompt.json
  4. label: multi-turn-conversation
  5. providers:
  6. - openai:gpt-4o-mini
  7. # Set up the system message for all tests
  8. defaultTest:
  9. vars:
  10. system_message: You are a helpful assistant
  11. # Test out conversations with multiple turns
  12. tests:
  13. # First conversation about Facebook
  14. - vars:
  15. question: Who founded Facebook?
  16. metadata:
  17. conversationId: facebook_thread
  18. - vars:
  19. question: Where does he live?
  20. metadata:
  21. conversationId: facebook_thread
  22. - vars:
  23. question: Which state is that in?
  24. metadata:
  25. conversationId: facebook_thread
  26. # Second conversation about weather (runs independently)
  27. - vars:
  28. question: What's the weather like in San Francisco?
  29. metadata:
  30. conversationId: weather_thread
  31. - vars:
  32. question: Do I need an umbrella today?
  33. metadata:
  34. conversationId: weather_thread
  35. # Third conversation about food (runs independently)
  36. - vars:
  37. question: Whats a good recipe for pasta?
  38. metadata:
  39. conversationId: food_thread
  40. - vars:
  41. question: How long should I cook it?
  42. metadata:
  43. conversationId: food_thread
Tip!

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

Comments

Loading...