From ba1aa52bd844cd3190142ffe1f48d2eb64b775fc Mon Sep 17 00:00:00 2001 From: VenkataKrishna Reddy Avula Date: Wed, 2 Apr 2025 14:31:50 +0000 Subject: [PATCH] Merged in hotfix/formatting_issue_fixes (pull request #462) Hotfix/formatting issue fixes to Main * fixed CONTRACT_AMENDMENT_NUM prompt * updated AUTO_RENEWAL_TERM prompt * updated CONTRACT_AMENDMENT_NUM prompt Approved-by: Katon Minhas --- fieldExtraction/src/prompts/investment_prompts.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fieldExtraction/src/prompts/investment_prompts.json b/fieldExtraction/src/prompts/investment_prompts.json index 4561749..d1dcb74 100644 --- a/fieldExtraction/src/prompts/investment_prompts.json +++ b/fieldExtraction/src/prompts/investment_prompts.json @@ -198,7 +198,7 @@ "field_name": "CONTRACT_AMENDMENT_NUM", "relationship": "one_to_one", "field_type": "full_context", - "prompt": "Extract the amendment number if this document is an amendment to a contract. Follow these guidelines:\n1. Look for phrases like 'Amendment No. X', 'X Amendment', 'Amendment X to the Agreement', 'Xth Amendment' in the document title, preamble, or header sections.\n2. Return only the numeric value (e.g., for 'Amendment No. 3' return '3').\n3. If the amendment number is written as a word (e.g., 'First Amendment'), convert it to a number (e.g., '1').\n4. If the amendment number is an alphanumeric value, return the whole value (e.g., for '2A' return '2A').\n5. If the amendment number uses Roman numerals (e.g., 'Amendment IV'), convert it to a number (e.g., '4').\n6. If the amendment number includes decimal points (e.g., 'Amendment 2.1'), return the full numeric value (e.g., '2.1').\n7. If multiple amendment numbers appear, return the one most clearly associated with the current document.\n8. If the document is an amendment but the number cannot be determined, return 'UNKNOWN'.\n9. If the document is not an amendment, return 'N/A'." + "prompt": "Extract the amendment number if this document is an amendment to a contract. Follow these guidelines:\n1. Look for phrases like 'Amendment No. X', 'X Amendment', 'Amendment X to the Agreement', 'Xth Amendment' in the document title, preamble, or header sections.\n2. Return only the numeric value (e.g., for 'Amendment No. 3' return '3').\n3. If the amendment number is written as a word (e.g., 'First Amendment'), convert it to a number (e.g., '1').\n4. If the amendment number is an alphanumeric value, return the whole value (e.g., for '2A' return '2A').\n5. If the amendment number uses Roman numerals (e.g., 'Amendment IV'), convert it to a number (e.g., '4').\n6. If the amendment number includes decimal points (e.g., 'Amendment 2.1'), return the full numeric value (e.g., '2.1').\n7. If multiple amendment numbers appear, return the one most clearly associated with the current document.\n8. If the document is an amendment but the number cannot be determined, return 'UNKNOWN'.\n9. If the document is not an amendment, return 'N/A'.\n10. If the Amendment number contains any leading zeroes(e.g. '001'), Drop all leading zeros (e.g. '1').\n11. If the document is an amendment but the number cannot be determined, return '1'." }, { "field_name": "CLIENT_NAME", @@ -299,7 +299,7 @@ "field_name": "AUTO_RENEWAL_TERM", "relationship": "one_to_one", "field_type": "smart_chunked", - "prompt": "If contract automatically renews, then what is the length of the renewal term? This is related to the term and termination agreement section of the contract. This should be a one or two word statement, typically around renewal, automatic renewal, or auto-renewal. Only return the length of time for the renewal, do not provide any context.", + "prompt": "If the contract automatically renews, what is the length of the renewal term? This pertains to the term and termination section of the contract. The response should be a numerical representation of the renewal period with no punctuation. Acceptable formats are '1 year' or '12 months' (both representing the same duration). 'Year to year' and 'year' should be interpreted as '1 year'. Only return the length of time for the renewal with no additional context.", "keywords" : ["Renew", "renew", "Auto renew", "auto renew", "automatically renew", "evergreen", "Evergreen"], "methodology" : "or", "case_sensitive" : "True"