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
97
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'Cohere benchmark'
  3. providers:
  4. - id: cohere:command-r-plus
  5. config:
  6. temperature: 0
  7. - id: openai:gpt-4o
  8. config:
  9. temperature: 0
  10. - id: anthropic:messages:claude-3-5-sonnet-20241022
  11. config:
  12. temperature: 0
  13. prompts:
  14. - |
  15. Extract the 3 most important clauses from this contract,
  16. and explain each one in plain English:
  17. {{contract}}
  18. tests:
  19. - vars:
  20. contract: |
  21. Seller agrees to convey the property located at 123 Main St
  22. to Buyer for a total purchase price of $500,000. Closing to
  23. occur on or before June 30, 2023. Sale is contingent upon
  24. Buyer obtaining financing and the property appraising for
  25. at least the purchase price. Seller to provide a clear
  26. title free of any liens or encumbrances...
  27. assert:
  28. - type: llm-rubric
  29. value: |
  30. The summary should cover:
  31. - The purchase price of $500,000
  32. - The closing deadline of June 30, 2023
  33. - The financing and appraisal contingencies
  34. - Seller's responsibility to provide clear title
  35. - type: javascript
  36. value: output.length < 500
  37. - vars:
  38. contract: |
  39. 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.
  40. assert:
  41. - type: llm-rubric
  42. value: |
  43. Summary should include:
  44. - Monthly rent amount of $2,000
  45. - Lease start date of July 1, 2023, and term of 12 months
  46. - Tenant's responsibility for utilities
  47. - Requirement for written approval for subletting
  48. - vars:
  49. contract: |
  50. 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.
  51. assert:
  52. - type: llm-rubric
  53. value: |
  54. Summary should cover:
  55. - The agreement's start date of August 15, 2023, and duration of 18 months
  56. - Payment terms of $150,000 total, in monthly installments of $8,333.33
  57. - Termination clause requiring 30 days' written notice
  58. - Delivery of software in three phases with milestones in Exhibit A
  59. - vars:
  60. contract: |
  61. 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.
  62. assert:
  63. - type: llm-rubric
  64. value: |
  65. Summary should highlight:
  66. - Agreement to seek mediation before legal action
  67. - Prevailing party's right to recover attorney fees
  68. - Governing law of the State of New York
  69. - vars:
  70. contract: |
  71. 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.
  72. assert:
  73. - type: llm-rubric
  74. value: |
  75. Summary should include:
  76. - Project fee of $25,000, non-refundable and payable upon signing
  77. - Delivery of a marketing plan within 45 days
  78. - Client's right to request up to two revisions
  79. - vars:
  80. contract: |
  81. 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.
  82. assert:
  83. - type: llm-rubric
  84. value: |
  85. Summary should cover:
  86. - Delivery of 100 units of Product X by September 30, 2023
  87. - Purchase price of $50 per unit, totaling $5,000
  88. - Payment due within 30 days of delivery
  89. - 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...