From 93d3fa93e210cfdc3dd163546650d4ed5caeb1a9 Mon Sep 17 00:00:00 2001 From: Mayank Date: Thu, 11 Dec 2025 15:00:28 +0000 Subject: [PATCH] stoploss fix --- fieldExtraction/src/investment/prompt_calls.py | 1 + fieldExtraction/src/prompts/prompt_templates.py | 1 + 2 files changed, 2 insertions(+) diff --git a/fieldExtraction/src/investment/prompt_calls.py b/fieldExtraction/src/investment/prompt_calls.py index 0531111..665a681 100644 --- a/fieldExtraction/src/investment/prompt_calls.py +++ b/fieldExtraction/src/investment/prompt_calls.py @@ -209,6 +209,7 @@ def prompt_carveout_check( instruction=prompt_templates.CARVEOUT_CHECK_INSTRUCTION(), usage_label="CARVEOUT_CHECK", ) + logging.debug(f"Carveout/ special case check for {filename}: {llm_answer_raw}") carveout_answer = string_utils.extract_text_from_delimiters( llm_answer_raw, Delimiter.PIPE diff --git a/fieldExtraction/src/prompts/prompt_templates.py b/fieldExtraction/src/prompts/prompt_templates.py index ac40d1a..9aa2678 100644 --- a/fieldExtraction/src/prompts/prompt_templates.py +++ b/fieldExtraction/src/prompts/prompt_templates.py @@ -996,6 +996,7 @@ VALID entries - return YES: - "Lesser of" or "greater of" statements with clear and specific rates - Capitation rates (PMPM, PMPY, per member costs) - Flat rates per service or episode +- These Special cases: OUTLIER, STOP_LOSS, SEQUESTRATION, DISCOUNT, PREMIUM, RATE_ESCALATOR, FACILITY_ADJUSTMENT INVALID entries - return NO unless there is VALID language as well: - 'Empty' Reimbursements - have the same structure as a valid reimbursement but doesn't actually reference any specific rate or fee schedule (e.g. "Covered Services will be paid at the rates stated in the next section")