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.4 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. prompts:
  3. - file://prompts.txt
  4. providers:
  5. - openai:chat:gpt-4o
  6. defaultTest:
  7. assert:
  8. - type: llm-rubric
  9. value: Do not mention that you are an AI or chat assistant
  10. - type: javascript
  11. # Shorter is better
  12. value: Math.max(0, Math.min(1, 1 - (output.length - 100) / 900));
  13. tests:
  14. - vars:
  15. name: Bob
  16. question: Can you help me find a specific product on your website?
  17. - vars:
  18. name: Jane
  19. question: Do you have any promotions or discounts currently available?
  20. - vars:
  21. name: Ben
  22. question: Can you check the availability of a product at a specific store location?
  23. - vars:
  24. name: Dave
  25. question: What are your shipping and return policies?
  26. - vars:
  27. name: Jim
  28. question: Can you provide more information about the product specifications or features?
  29. - vars:
  30. name: Alice
  31. question: Can you recommend products that are similar to what I've been looking at?
  32. - vars:
  33. name: Sophie
  34. question: Do you have any recommendations for products that are currently popular or trending?
  35. - vars:
  36. name: Jessie
  37. question: How can I track my order after it has been shipped?
  38. - vars:
  39. name: Kim
  40. question: What payment methods do you accept?
  41. - vars:
  42. name: Emily
  43. question: Can you help me with a problem I'm having with my account or order?
Tip!

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

Comments

Loading...