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.with-asserts.yaml 2.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
  1. description: 'RAG - End to end test with comparison'
  2. prompts:
  3. - '{{question}}'
  4. providers:
  5. - id: file://retrieve.py
  6. label: RAG retrieval small
  7. config:
  8. topK: 5
  9. - id: file://retrieve.py
  10. label: RAG retrieval big
  11. config:
  12. topK: 10
  13. tests:
  14. - vars:
  15. question: How has Apple's total net sales changed over time?
  16. assert:
  17. - type: contains
  18. value: '82,959 million'
  19. - type: contains
  20. value: '117,154 million'
  21. - vars:
  22. question: What are the major factors contributing to the change in Apple's gross margin in the most recent 10-Q compared to the previous quarters?
  23. assert:
  24. - type: llm-rubric
  25. value: 'cites weakness in foreign currencies relative to the U.S. dollar'
  26. - vars:
  27. question: Has there been any significant change in Apple's operating expenses over the reported quarters? If so, what are the key drivers for this change?
  28. assert:
  29. - type: contains
  30. value: 'net sales'
  31. - vars:
  32. question: How has Apple's revenue from iPhone sales fluctuated across quarters?
  33. assert:
  34. - type: icontains-all
  35. value:
  36. - '2023'
  37. - '2022'
  38. - '2021'
  39. - vars:
  40. question: Can any trends be identified in Apple's Services segment revenue over the reported periods?
  41. assert:
  42. - type: icontains
  43. value: services
  44. - vars:
  45. question: What is the impact of foreign exchange rates on Apple's financial performance? List this out separately for each reported period.
  46. assert:
  47. - type: llm-rubric
  48. value: 'includes specific commentary on foreign exchange'
  49. - vars:
  50. question: Are there any notable changes in Apple's liquidity position or cash flows as reported in these 10-Qs?
  51. assert:
  52. - type: llm-rubric
  53. value: 'no notable changes'
  54. - vars:
  55. question: Examine how Intel's effective tax rate in the most recent 10-Q compares with the tax-related discussions in the notes section.
  56. assert:
  57. - type: contains
  58. value: '696.2%'
  59. - vars:
  60. question: In Amazon's latest 10-Q, how does the revenue distribution across its diverse business segments like e-commerce, AWS, and others compare to the costs incurred in these segments?
Tip!

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

Comments

Loading...