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 4.5 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
  1. description: 'Cohere benchmark'
  2. providers:
  3. - id: cohere:command-r-plus
  4. config:
  5. temperature: 0
  6. - id: openai:gpt-4o
  7. config:
  8. temperature: 0
  9. - id: anthropic:messages:claude-3-5-sonnet-20240620
  10. config:
  11. temperature: 0
  12. prompts:
  13. - |
  14. Extract the 3 most important clauses from this contract,
  15. and explain each one in plain English:
  16. {{contract}}
  17. tests:
  18. - vars:
  19. contract: |
  20. Seller agrees to convey the property located at 123 Main St
  21. to Buyer for a total purchase price of $500,000. Closing to
  22. occur on or before June 30, 2023. Sale is contingent upon
  23. Buyer obtaining financing and the property appraising for
  24. at least the purchase price. Seller to provide a clear
  25. title free of any liens or encumbrances...
  26. assert:
  27. - type: llm-rubric
  28. value: |
  29. The summary should cover:
  30. - The purchase price of $500,000
  31. - The closing deadline of June 30, 2023
  32. - The financing and appraisal contingencies
  33. - Seller's responsibility to provide clear title
  34. - type: javascript
  35. value: output.length < 500
  36. - vars:
  37. contract: |
  38. The tenant agrees to pay a monthly rent of $2,000 for the apartment at 456 Elm Street, starting from July 1, 2023. The lease term is 12 months. The tenant is responsible for utilities. The landlord must approve any subletting in writing.
  39. assert:
  40. - type: llm-rubric
  41. value: |
  42. Summary should include:
  43. - Monthly rent amount of $2,000
  44. - Lease start date of July 1, 2023, and term of 12 months
  45. - Tenant's responsibility for utilities
  46. - Requirement for written approval for subletting
  47. - vars:
  48. contract: |
  49. This agreement between ABC Corp and XYZ Inc. for software development services shall commence on August 15, 2023, and continue for a period of 18 months. ABC Corp will pay XYZ Inc. a total of $150,000, payable in monthly installments of $8,333.33. Either party may terminate the agreement with 30 days' written notice. XYZ Inc. agrees to deliver the software product in three phases, with specific milestones outlined in Exhibit A.
  50. assert:
  51. - type: llm-rubric
  52. value: |
  53. Summary should cover:
  54. - The agreement's start date of August 15, 2023, and duration of 18 months
  55. - Payment terms of $150,000 total, in monthly installments of $8,333.33
  56. - Termination clause requiring 30 days' written notice
  57. - Delivery of software in three phases with milestones in Exhibit A
  58. - vars:
  59. contract: |
  60. In the event of a dispute arising under this contract, both parties agree to first seek resolution through mediation before pursuing any legal action. The prevailing party in any litigation will be entitled to recover reasonable attorney fees and costs. This contract is governed by the laws of the State of New York.
  61. assert:
  62. - type: llm-rubric
  63. value: |
  64. Summary should highlight:
  65. - Agreement to seek mediation before legal action
  66. - Prevailing party's right to recover attorney fees
  67. - Governing law of the State of New York
  68. - vars:
  69. contract: |
  70. The consultant agrees to provide marketing services to the client for a project fee of $25,000. The fee is non-refundable and payable upon signing of this agreement. The consultant will deliver a comprehensive marketing plan within 45 days of the agreement date. The client has the right to request up to two revisions of the marketing plan.
  71. assert:
  72. - type: llm-rubric
  73. value: |
  74. Summary should include:
  75. - Project fee of $25,000, non-refundable and payable upon signing
  76. - Delivery of a marketing plan within 45 days
  77. - Client's right to request up to two revisions
  78. - vars:
  79. contract: |
  80. The seller agrees to deliver 100 units of Product X to the buyer by no later than September 30, 2023. The buyer agrees to pay $50 per unit, for a total purchase price of $5,000. Payment is due within 30 days of delivery. If the seller fails to deliver the products on time, the buyer is entitled to a 5% discount on the total purchase price.
  81. assert:
  82. - type: llm-rubric
  83. value: |
  84. Summary should cover:
  85. - Delivery of 100 units of Product X by September 30, 2023
  86. - Purchase price of $50 per unit, totaling $5,000
  87. - Payment due within 30 days of delivery
  88. - 5% discount entitlement for late delivery
Tip!

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

Comments

Loading...