arvind6599 commited on
Commit
534392a
·
1 Parent(s): ae3cd11

Updated the description

Browse files
Files changed (1) hide show
  1. app.py +74 -31
app.py CHANGED
@@ -343,7 +343,7 @@ def build_interface():
343
  - If no target company is found, LLM1 responds with a message wrapped in `<user_message></user_message>` XML tags to inform the user that the query is irrelevant to this task.
344
  - If the query contains a target company, LLM1 moves forward with a formatted acknowledgment of the identified target company.
345
 
346
- **Step 2:** LLM2 examines four separate paragraphs provided as input. For each paragraph, it extracts specific information about:
347
  - The Buyer's representative law firm.
348
  - The Seller's representative law firm.
349
  - Any third-party law firm present.
@@ -371,35 +371,77 @@ def build_interface():
371
  # Example Inputs and Outputs in an Accordion
372
  with gr.Accordion("Example Workflow", open=False):
373
  gr.Markdown("""
374
- **Example Query and System Output:**
375
-
376
- **User Query:**
377
- *"Is Kirkland present?"*
378
-
379
- Step 1 (LLM1):
380
- - If no target company is identified:
381
- Output: `<user_message>Query is not relevant to the intended task.</user_message>`
382
-
383
- - If a target company is identified:
384
- Output: *"The query mentions the target company Kirkland."*
385
-
386
- Step 2 (LLM2 for Paragraphs):
387
- **Input Paragraph Example:**
388
- *"Representation agreements between Buyers and Kirkland & Ellis are included."*
389
-
390
- **Output:**
391
- *"Buyer Firm: Kirkland & Ellis, Seller Firm: None, Third Party Firm: None, Contains Target Firm: True."*
392
-
393
- Step 3 (LLM3 Final Output):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
394
  Compiled JSON:
395
- ```json
396
  {
397
- "buyer_firm": "Kirkland & Ellis",
398
- "seller_firm": null,
399
- "third_party": null,
400
- "contains_target_firm": true
401
  }
402
- ```
403
  """)
404
 
405
  # Challenge instructions and testing guidance
@@ -422,14 +464,15 @@ def build_interface():
422
  - Clarify the task definitions and expected classifications in each system prompt for LLM1, LLM2, and LLM3.
423
  - Test using diverse sample data for robustness.
424
 
425
- You can only submit once, so validate your system prompts thoroughly using mock queries and example data before final submission.
426
-
427
- Good Luck!
428
  """)
429
 
430
  gr.Markdown("""
431
  Enter your name and email below, as listed in your CV, and submit your designed prompts.
432
-
 
 
 
 
433
  Remember: Focus on clarity, accuracy, and structured responses to achieve a high score!
434
  """)
435
 
 
343
  - If no target company is found, LLM1 responds with a message wrapped in `<user_message></user_message>` XML tags to inform the user that the query is irrelevant to this task.
344
  - If the query contains a target company, LLM1 moves forward with a formatted acknowledgment of the identified target company.
345
 
346
+ **Step 2:** LLM2 examines four separate paragraphs independently. For each paragraph, it extracts specific information about:
347
  - The Buyer's representative law firm.
348
  - The Seller's representative law firm.
349
  - Any third-party law firm present.
 
371
  # Example Inputs and Outputs in an Accordion
372
  with gr.Accordion("Example Workflow", open=False):
373
  gr.Markdown("""
374
+
375
+ Example Query and System Output:
376
+ User Query:
377
+ "Is Kirkland present in the agreement?"
378
+
379
+ Document Provided:
380
+ This Stock and Asset Purchase Agreement is entered into as of October 28, 2021, among Purolite Corporation, a Delaware corporation, along with Stefan E. Brodie and Don B. Brodie (collectively referred to as the Sellers), and Ecolab Inc., a Delaware corporation, as the Purchaser. Additionally, Gibson, Dunn & Crutcher LLP, as an independent third-party representative, is engaged for specific advisory roles outlined in this Agreement.
381
+ ---
382
+ This Agreement shall be governed by and construed in accordance with the internal laws of the State of Delaware, without giving effect to any choice or conflict of law provision. Each clause within this Agreement shall be interpreted independently, and the invalidity of one clause shall not affect the enforceability of the remaining provisions. Headings are for convenience only and shall not affect the interpretation of this Agreement. Nothing herein shall be construed as limiting or waiving any rights or obligations under applicable law unless expressly stated.
383
+ ---
384
+ Such notices, demands, and other communications shall be directed to the Parties at their respective addresses. One Party may be contacted at:
385
+ 1 Ecolab Place
386
+ St. Paul, Minnesota 55102
387
+ Attention: General Counsel
388
+ with a copy (which shall not constitute notice) to:
389
+ Shearman & Sterling LLP
390
+ 599 Lexington Avenue
391
+ New York, New York 10022
392
+ Attention: Adam Miller
393
+ Another Party may be reached at:
394
+ Purolite Corporation
395
+ 2201 Renaissance Boulevard
396
+ King of Prussia, Pennsylvania 19406
397
+ Attention: Stefan E. Brodie; Howard Brodie
398
+ with a copy (which shall not constitute notice) to:
399
+ Cleary Gottlieb Steen & Hamilton LLP
400
+ One Liberty Plaza
401
+ New York, New York 10006
402
+ Attention: John Reynolds; Sarah Lee
403
+ Additional communications relating to the role of the third-party representative shall be directed to:
404
+ Gibson, Dunn & Crutcher LLP
405
+ 200 Park Avenue
406
+ New York, New York 10166
407
+ Attention: Jane Smith
408
+ ---
409
+ All references to the singular include the plural and vice versa, and all references to any gender include all genders. The Parties agree that any ambiguities in the language of this Agreement shall not be construed against either Party. Section headings used in this Agreement are for reference only and shall not affect the meaning or interpretation of any provision.
410
+
411
+ Expected Steps and Outputs:
412
+ Step 1 (LLM1):
413
+
414
+
415
+ If no target company is identified:
416
+ Output: <user_message>Query is not relevant to the intended task.</user_message>
417
+
418
+ If a target company is identified:
419
+ Output: "The target company is Kirkland & Ellis LLP."
420
+
421
+
422
+ Step 2 (LLM2 for Paragraphs):
423
+ Paragraph Example:
424
+
425
+ This Stock and Asset Purchase Agreement is entered into as of October 28, 2021, among Purolite Corporation, a Delaware corporation, along with Stefan E. Brodie and Don B. Brodie (collectively referred to as the Sellers), and Ecolab Inc., a Delaware corporation, as the Purchaser. Additionally, Gibson, Dunn & Crutcher LLP, as an independent third-party representative, is engaged for specific advisory roles outlined in this Agreement.
426
+
427
+ Example Output:
428
+
429
+ Buyer: Ecolab Inc.
430
+ Buyer Representative: Not stated
431
+ Seller: Purolite Corporation
432
+ Seller Representative: Not stated
433
+ Third-Party Representation: Advisory roles, Gibson, Dunn & Crutcher LLP
434
+ Target Company Mentioned: No
435
+
436
+
437
+ Step 3 (LLM3 Final Output):
438
  Compiled JSON:
 
439
  {
440
+ "buyer_firm": "Shearman & Sterling LLP",
441
+ "seller_firm": "Cleary Gottlieb Steen & Hamilton LLP",
442
+ "third_party": "Gibson, Dunn & Crutcher LLP",
443
+ "contains_target_firm": false
444
  }
 
445
  """)
446
 
447
  # Challenge instructions and testing guidance
 
464
  - Clarify the task definitions and expected classifications in each system prompt for LLM1, LLM2, and LLM3.
465
  - Test using diverse sample data for robustness.
466
 
 
 
 
467
  """)
468
 
469
  gr.Markdown("""
470
  Enter your name and email below, as listed in your CV, and submit your designed prompts.
471
+
472
+ You can only submit once, so validate your system prompts thoroughly using mock queries and example data before final submission.
473
+
474
+ Good Luck!
475
+
476
  Remember: Focus on clarity, accuracy, and structured responses to achieve a high score!
477
  """)
478