From f8f65e28ea4c38794de29c5c9cbbd6f95d9250ed Mon Sep 17 00:00:00 2001 From: VenkataKrishna Reddy Avula Date: Mon, 7 Jul 2025 14:54:28 +0000 Subject: [PATCH] Merged in feature/trigger_cap (pull request #598) Feature/trigger cap to Main * updated trigger cap prompts * updated trigger cap prompts * Merged main into feature/trigger_cap * fixes field names in field order * Merged main into feature/trigger_cap Approved-by: Alex Galarce --- fieldExtraction/src/constants/investment_columns.py | 2 +- fieldExtraction/src/prompts/investment_prompts.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fieldExtraction/src/constants/investment_columns.py b/fieldExtraction/src/constants/investment_columns.py index 41186f2..0615e4f 100644 --- a/fieldExtraction/src/constants/investment_columns.py +++ b/fieldExtraction/src/constants/investment_columns.py @@ -70,8 +70,8 @@ COLUMN_ORDER = [ "REIMB_FEE_RATE", "REIMB_CONVERSION_FACTOR", "NOT_TO_EXCEED_IND", - "TRIGGER_CAP_THRESHOLD_TYPE", "TRIGGER_CAP_THRESHOLD_AMT", + "TRIGGER_BASE_THRESHOLD", "DEFAULT_IND", "ADDITION_DESC", "ADDITION_MAX_PCT_RATE_INC", diff --git a/fieldExtraction/src/prompts/investment_prompts.json b/fieldExtraction/src/prompts/investment_prompts.json index b3b09a6..e8282b1 100644 --- a/fieldExtraction/src/prompts/investment_prompts.json +++ b/fieldExtraction/src/prompts/investment_prompts.json @@ -778,16 +778,16 @@ "prompt": "What is the timeline for rate changes related to additional rates? Provide the exact text from the document." }, { - "field_name": "TRIGGER_CAP_THRESHOLD", + "field_name": "TRIGGER_CAP_THRESHOLD_AMT", "relationship": "one_to_n", "field_type": "trigger_cap", - "prompt": "What is the threshold for the trigger cap? Provide the exact value from the text." + "prompt": "What is the capped amount for the reimbursement? Return the exact dollar value specified in the given reimbursement methodology that serves as the cap for reimbursement. If the value is written in words (e.g., 'ten thousand dollars'), convert it to a numeric value (e.g., '10000'). If the value includes commas (e.g., '10,000'), remove the commas and return only the numeric value (e.g., '10000'). Return only the numeric dollar amount without the dollar sign or any other text. If no trigger cap threshold amount is found, return 'N/A'." }, { "field_name": "TRIGGER_BASE_THRESHOLD", "relationship": "one_to_n", "field_type": "trigger_cap", - "prompt": "What is the base threshold for the trigger? Provide the exact value from the text." + "prompt": "What is the base threshold amount for the trigger cap? Return the exact dollar value specified in the given reimbursement methodology that serves as the threshold for triggering additional reimbursement or exact dollar value that must be exceeded or reached before additional reimbursement terms apply. If the value is written in words (e.g., 'ten thousand dollars'), convert it to a numeric value (e.g., '10000'). If the value includes commas (e.g., '10,000'), remove the commas and return only the numeric value (e.g., '10000'). Return only the numeric dollar amount without the dollar sign or any other text. If no trigger base threshold is found, return 'N/A'." }, { "field_name": "RATE_ESCALATOR_IND",