Commit Graph

1614 Commits

Author SHA1 Message Date
Alex Galarce 485859e954 Merged in bugfix/chroma-too-many-files (pull request #679)
Bugfix/chroma too many files

* Add emergency cleanup and monitoring for vectorstore cache

* Refactor vectorstore handling and enhance file descriptor monitoring in field_context

* Refactor vectorstore cleanup logic to ensure safe reference counting and improve error handling

* Enhance monitoring and cleanup mechanisms to prevent file descriptor leaks in smart chunking functions

* Add garbage collection to safe_process_file for improved memory management

* Refactor docstring in safe_process_file to clarify error handling and resource cleanup details

* isort

* Enable Chroma reset functionality for improved resource management and logging


Approved-by: Katon Minhas
2025-08-25 20:56:04 +00:00
Alex Galarce 7ca723037a Merged in bugfix/too-many-files (pull request #677)
Bugfix/too many files

* Implement caching for field data loading to optimize performance and prevent "too many open files" errors

* Documentation

* isort

* fix breaking test to clear cache and ensure mock data is actually being used

* Merge remote-tracking branch 'origin/main' into bugfix/too-many-files

* Implement thread-safe vectorstore caching and cleanup in field context extraction

* Refactor imports in smart_chunking_funcs.py for clarity and organization

* Update module docstring in smart_chunking_funcs.py

* Fix mypy errors

* Fix variable naming and error handling in run_smart_chunked_fields function

* Reorganize imports and enhance module documentation for clarity

* Add logging for error handling in field_context function


Approved-by: Katon Minhas
2025-08-25 14:43:36 +00:00
VenkataKrishna Reddy Avula 3b2f3a7789 Merged in bugfix/outlier_maximum_fix (pull request #678)
outlier maximum fix to main

* outlier maximum prompt updated


Approved-by: Katon Minhas
2025-08-22 13:54:36 +00:00
Alex Galarce 04aa447831 Merged in feature/remove-costlog (pull request #675)
Remove cost logging functionality and related tests

* Remove cost logging functionality and related tests

* Remove cost log entry test and related CSV writer mock

* Merged main into feature/remove-costlog


Approved-by: Katon Minhas
2025-08-21 17:45:18 +00:00
VenkataKrishna Reddy Avula 9a3a93ce7c Merged in bugfix/outlier_fixes (pull request #673)
bugfix/outlier_fixes to main

* simplified outlier prompts

* Merged main into bugfix/outlier_fixes

* Merged main into bugfix/outlier_fixes


Approved-by: Alex Galarce
Approved-by: Katon Minhas
2025-08-21 17:36:39 +00:00
Alex Galarce 7038a92d10 Merged in bugfix/medicare-advantage-duals (pull request #674)
Bugfix/medicare advantage duals

* Add logging for debugging in crosswalk utilities and mapping functions

* Add debug logging for crosswalk processing and mapping in get_crosswalk_fields

* Add logging for dual LOB check prompts and responses in update_lob_for_duals

* Enhance dual LOB check logic to ensure PROGRAM and PRODUCT fields are empty before proceeding

* Update dual LOB check to use AARETE_DERIVED fields for validation

* Refactor logging in fill_na_mapping and get_crosswalk_fields for clarity and conciseness

* Remove debug logging from get_lob_relationship for cleaner output

* Remove debug logging from apply_crosswalk for cleaner execution


Approved-by: Katon Minhas
2025-08-21 15:19:53 +00:00
Alex Galarce bccd451f50 Merged in bugfix/global_lesser_of_overpulling (pull request #672)
Bugfix/global lesser of overpulling

* Update global reimbursement constraint prompt for clarity and examples

* Refine global reimbursement constraint prompt for clarity and specificity


Approved-by: Katon Minhas
2025-08-19 21:54:01 +00:00
Alex Galarce 9340520d9a Merged in feature/alex-duals-issues (pull request #671)
Dynamic primary loosen prompts

* Add logging for dynamic primary prompt and Claude's response

* Update prompts to allow for synonyms and equivalent terms in product and program fields

* Refactor get_crosswalk_fields to handle 'N/A' values and improve base field tracking

* Refactor get_crosswalk_fields to remove unnecessary base field processing

* put back JUST_MAPPED

* Fix N/A handling in get_crosswalk_fields to trim whitespace before comparison

* Merge remote-tracking branch 'origin/main' into feature/alex-duals-issues

* Merge remote-tracking branch 'origin/main' into feature/alex-duals-issues

* Fix N/A handling in get_crosswalk_fields to compare without stripping whitespace (in case of `None`)


Approved-by: Katon Minhas
2025-08-19 20:52:57 +00:00
Katon Minhas 672815ac77 Merged in feature/lob-relationship (pull request #670)
Feature/lob relationship

* split program and product relationship fields

* Add to columns

* Split program product in fill_na


Approved-by: Alex Galarce
2025-08-19 19:53:47 +00:00
Katon Minhas f6cefc62e3 Merged in bugfix/dynamic-primary-issues (pull request #669)
Bugfix/dynamic primary issues

* add LOB_RELATIONSHIP prompt

* Add test script

* Integrate prompt

* Update one-to-one passing rules

* Merged main into bugfix/dynamic-primary-issues

* Remove promt

* replace quotes


Approved-by: Alex Galarce
2025-08-19 16:55:09 +00:00
Alex Galarce b9edfed44b Merged in bugfix/carveout-cd-issues (pull request #667)
Refine descriptions for BASE_COVERED_SERVICES and PAYMENT_CARVEOUT in valid_carveouts.json

* Refine descriptions for BASE_COVERED_SERVICES and PAYMENT_CARVEOUT in valid_carveouts.json

* Merge remote-tracking branch 'origin/main' into bugfix/carveout-cd-issues


Approved-by: Katon Minhas
2025-08-18 19:30:54 +00:00
Katon Minhas 26e314e4e2 Merged in bugfix/prov-info (pull request #666)
Update prompt

* Update prompt

* Remove test

* Remove print


Approved-by: Alex Galarce
2025-08-18 13:08:02 +00:00
Katon Minhas 8c99f5d073 Merged in bugfix/dynamic-primary-issues (pull request #664)
Bugfix/dynamic primary issues

* format and restructure

* checkpoint

* Merge branch 'main' into bugfix/dynamic-primary-issues

* Update constants attributes to base class

* Revert "Update constants attributes to base class"

This reverts commit 936b1e41f2e2d445e69e840b69af08eac6661120.

* Fix mapping

* E2E test

* remove prints

* Merge branch 'main' into bugfix/dynamic-primary-issues

* Black

* Update any dynamic

* Prompt update - more leniency

* Remove prints

* Merged main into bugfix/dynamic-primary-issues

* update crosswalk

* Merged main into bugfix/dynamic-primary-issues


Approved-by: Alex Galarce
2025-08-14 16:46:28 +00:00
Alex Galarce 105b5b107e Merged in bugfix/lesser-of (pull request #665)
Bugfix/lesser of

* Refine SPLIT_REIMBURSEMENTS_PROMPT to enhance clarity and preserve payment limiters in output

* Add debug logging for LLM invocation and response in split_compound_reimbursement_llm

* Add debug logging for reimbursement validation prompts and responses

* Refine SPLIT_REIMBURSEMENTS_PROMPT to clearly indicate payment limiters in split components

* Refine SPLIT_REIMBURSEMENTS_PROMPT to clarify payment limiters and their application in split methodologies

* Refine SPLIT_REIMBURSEMENTS_PROMPT to clarify handling of conditional splits and preserve original service context

* fix brackets

* Merge remote-tracking branch 'origin/main' into bugfix/lesser-of

* Remove unused SERVICE_METHODOLOGY_BREAKOUT function

* Update compound indicators to refine phrasing and ensure consistency


Approved-by: Katon Minhas
2025-08-14 16:16:26 +00:00
VenkataKrishna Reddy Avula 4576ffbb91 Merged in feature/outlier_fields (pull request #663)
Feature/outlier fields to Main

* modified existing outlier prompts and definition

* Merged main into feature/outlier_fields

* updated prompts

* updated prompts

* Merged main into feature/outlier_fields

* updated outlier definition

* added outlier terms to dynamic funcs

* added allow na for outlier terms

* added outlier breakout

* Merged main into feature/outlier_fields

* added 2 stage breakout

* error fix

* Merged main into feature/outlier_fields

* removed comments

* fixed reimb outlier cases

* Merge remote-tracking branch 'origin/main' into feature/outlier_fields


Approved-by: Katon Minhas
2025-08-13 21:58:10 +00:00
VenkataKrishna Reddy Avula 6c6ac91386 Merged in feature/outlier_fields (pull request #655)
Feature/outlier fields to Main

* modified existing outlier prompts and definition

* Merged main into feature/outlier_fields

* updated prompts

* updated prompts

* Merged main into feature/outlier_fields

* updated outlier definition

* added outlier terms to dynamic funcs

* added allow na for outlier terms

* added outlier breakout

* Merged main into feature/outlier_fields

* added 2 stage breakout

* error fix

* Merged main into feature/outlier_fields

* removed comments


Approved-by: Katon Minhas
2025-08-13 16:20:03 +00:00
Alex Galarce b2a0dc4b60 Merged in bugfix/uom (pull request #661)
Bugfix/uom

* Add "Per Procedure" to valid unit of measure list

* Enhance unit of measure prompt for clarity and specificity in reimbursement methodologies

* Refine unit of measure prompt to ensure defaulting to 'Per Unit' regardless of procedure codes for flat rate methodologies

* Merge remote-tracking branch 'origin/main' into bugfix/uom

* Merged main into bugfix/uom

* Enhance logic for setting UNIT_OF_MEASURE to 'Per Unit' for Flat Rate reimbursement, handling all edge cases including NaN and empty strings.

* Enhance is_empty function to handle additional empty value cases for pd.Series and strings

* Enhance test cases for is_empty function to cover additional whitespace and null-like values

* Merge branch 'bugfix/uom' of https://bitbucket.org/aarete/doczy.ai into bugfix/uom

* Enhance type checking for is_empty function with overloads for str, list, and pd.Series

* Overload fix

* Merged main into bugfix/uom


Approved-by: Katon Minhas
2025-08-13 14:51:46 +00:00
Katon Minhas 7f5e8125e4 Test 2025-08-12 21:56:36 -07:00
Katon Minhas 294ea587df Merged in feature/remove-ffs (pull request #662)
remove ffs

* remove ffs


Approved-by: Alex Galarce
2025-08-12 21:24:13 +00:00
Katon Minhas 5d49d4c44b Merged in bugfix/dynamic-primary-issues (pull request #660)
Bugfix/dynamic primary issues

* Update get prompt for direct valid value setting

* prep for merge

* Merge branch 'main' into bugfix/dynamic-primary-issues

* Remove test

* Update unit tests with real constants object

* Ready for review

* direct replace {valid_values}


Approved-by: Alex Galarce
2025-08-12 17:57:09 +00:00
Alex Galarce e56d629b1a Merged in bugfix/carveout-cd (pull request #659)
Bugfix/carveout cd

* Update field class - change Null criteria

* Add default

* Enhance documentation for get_special_cases function with detailed processing flow and architecture decisions

* Enhance get_special_cases and run_trigger_cap_breakout functions with detailed docstrings for clarity on processing methodologies

* Update constants passing

* Fix questions

* Update fs and mb questions"

* pass constanst correctly for dynamic

* Merge branch 'feature/trigger_cap_breakout' into bugfix/dynamic-primary-issues

* update constants

* only add questions if present

* ensure answer is a valid special_case

* Set carveout indicator for two-stage process; prepped set_carveout_indicators and run_methodology_breakout_with_carveout_indicators to replace process_carveout_or_special_case

* Fix unit tests

* Remove test file

* Refactor carveout handling: streamline indicator setting and enhance methodology breakout integration

* Refactor get_carveout_and_special_fields: ensure methodology breakout runs regardless of carveout/special case configs; streamline handling of indicators and questions

* Remove deprecated process_carveout_or_special_case function

* Merge remote-tracking branch 'origin/bugfix/dynamic-primary-issues' into bugfix/carveout-cd

* Add tests for carveout indicator setting and special cases processing

* Add tests for unrecognized carveout handling and legacy stop-loss processing

* Refactor special case configurations: streamline STOP_LOSS handling and update test cases for methodology prompt templates

* Refactor special case handling: improve argument formatting in get_special_cases and run_methodology_breakout_with_carveout_indicators functions

* Add test for run_methodology_breakout_with_carveout_indicators function

* Merge remote-tracking branch 'origin/main' into bugfix/carveout-cd


Approved-by: Katon Minhas
2025-08-12 16:40:33 +00:00
Katon Minhas 46be909642 Merged in bugfix/dynamic-primary-issues (pull request #657)
Bugfix/dynamic primary issues

* Refactor TRIGGER_CAP special case configuration to utilize only trigger cap questions for two-stage processing

* Refactor get_special_cases to improve handling of N/A responses and merge methodology results with special case results

* Fix field type in get_special_cases for fee schedule breakout configuration

* Create fieldset.py - refactor

* Fix placeholders

* string concatenate new questions

* Update trigger cap questions output format

* Update TRIGGER_CAP_THRESHOLD_AMT prompt for clarity and specificity in reimbursement methodology

* Update constants class

* Update Field class

* Resolve constants passing

* Update field class - change Null criteria

* Add default

* Enhance documentation for get_special_cases function with detailed processing flow and architecture decisions

* Enhance get_special_cases and run_trigger_cap_breakout functions with detailed docstrings for clarity on processing methodologies

* Update constants passing

* Fix questions

* Update fs and mb questions"

* pass constanst correctly for dynamic

* Merge branch 'feature/trigger_cap_breakout' into bugfix/dynamic-primary-issues

* update constants

* only add questions if present

* ensure answer is a valid special_case

* Fix unit tests

* Remove test file


Approved-by: Alex Galarce
2025-08-11 20:47:52 +00:00
Mayank Aamseek 479e18b13f Merged in bugfix/one-to-one-issues (pull request #651)
one-to-one issue fixes

* handle preceding 0 in TIN

* merged with main

* preceding 0 issue fixed

* print statements removed

* test ipynb removed

* one-to-one fixes

* one-to-one fixes

* Merge branch 'main' into bugfix/one-to-one-issues

* update poetry lock


Approved-by: Katon Minhas
2025-08-07 16:59:22 +00:00
Alex Galarce 85d69237db Merged in hotfix/fix-constants (pull request #654)
Hotfix/fix constants

* Update TRIGGER_CAP methodology prompt and adjust special case configuration

* Refactor synonym, valid carveouts, and valid special mappings to include metadata structure

*  remove TRIGGER_CAP_BREAKOUT function

* special_case_configs.py edited online with Bitbucket

Approved-by: Katon Minhas
2025-08-06 22:47:47 +00:00
VenkataKrishna Reddy Avula 0d774acf7a Merged in bugfix/reimb_dates (pull request #649)
Bugfix/reimb dates to Main

* added reimb dates split

* Merged main into bugfix/reimb_dates

* prompt changes

* added to postprocessing

* fixed key issues

* modified split function

* removed print statements

* Merge branch 'main' into bugfix/reimb_dates

* update import

* moved split date upstream

* moved split dates to one to n funcs

* Merged main into bugfix/reimb_dates


Approved-by: Katon Minhas
2025-08-06 19:38:34 +00:00
Katon Minhas a3df2f3e15 Merged in feature/remove-nte (pull request #653)
Feature/remove nte

* Revert prompts

* Remove qa_qc tests

* Remove valid lines

* Update crosswalk path

* remove extra argument from split compound reimbursement

* model aliasing

* Haiku alias

* remove erroneous import

* Merge branch 'refactor/update-claude-models' into bugfix/aug-5-issue-fixes

* Convert all matching codes to strings

* Exit if service is empty

* Merged main into bugfix/aug-5-issue-fixes

* global lesser of fix

* Merge branch 'main' into feature/remove-nte

* Remove NTE


Approved-by: Alex Galarce
2025-08-06 17:18:12 +00:00
Katon Minhas c55e8a30cd Merged in bugfix/aug-5-issue-fixes (pull request #652)
Bugfix/aug 5 issue fixes

* Revert prompts

* Remove qa_qc tests

* Remove valid lines

* Update crosswalk path

* remove extra argument from split compound reimbursement

* model aliasing

* Haiku alias

* remove erroneous import

* Merge branch 'refactor/update-claude-models' into bugfix/aug-5-issue-fixes

* Convert all matching codes to strings

* Exit if service is empty

* Merged main into bugfix/aug-5-issue-fixes

* global lesser of fix


Approved-by: Alex Galarce
2025-08-06 16:47:45 +00:00
Katon Minhas 73e43f1c65 Merged in refactor/update-claude-models (pull request #650)
Refactor/update claude models

* Revert prompts

* Remove qa_qc tests

* Remove valid lines

* model aliasing

* Haiku alias

* remove erroneous import


Approved-by: Alex Galarce
2025-08-06 15:06:49 +00:00
Katon Minhas c4e519894b Merged in refactor/one-time-io (pull request #648)
Refactor/one time io

* Delete client work

* Streamline imports

* Fix list class

* Update tests

* Clear code funcs test

* Fix unit tests

* Single read code funcs

* Single-read model

* Single-load embeddings

* Successful E2E test

* update unit tests

* Update importsg

* Reload poetry.lock

* remove old exhibit header function

* Remove aarete_derived generic function

* remove align and format tables

* Remove strings to dict

* references

* Clear code

* Move preprocessing_funcs

* remove keywords

* refactor postprocessing_funcs

* Pass unit test - remove qa_qc directory

* Black and isort

* remove print


Approved-by: Alex Galarce
2025-08-05 20:46:19 +00:00
Katon Minhas c223e7fe50 Merged in refactor/add-embeddings (pull request #647)
Update embeddings

* Update embeddings

* Merged main into refactor/add-embeddings


Approved-by: Alex Galarce
2025-08-04 19:09:28 +00:00
Alex Galarce 42624fe2a9 Merged in feature/enhanced-error-logging (pull request #646)
Re-add enhanced error handling

* Enhance error handling in safe_process_file to log detailed error information

* Refactor error logging in safe_process_file for clarity and consistency


Approved-by: Katon Minhas
2025-08-04 18:17:35 +00:00
Katon Minhas 1c15489370 Merged in feature/rename-proc-cd (pull request #645)
rename columns function

* rename columns function

* update columns


Approved-by: Alex Galarce
2025-08-04 16:10:26 +00:00
Katon Minhas c2d5db19d4 Merged in feature/doczy-codes (pull request #619)
Feature/doczy codes

* Ignore service and procedure generic terms

* UPdate PT/OT/ST codes

* Standardize stop-loss

* UPdate for multiple identical values

* Modify code funcs

* Run highest match Implicit Level first

* Fix implicit code bug

* Add PT individually to special case

* change revenue code conditions

* Merge branch 'main' into feature/doczy-codes

* Merged main into feature/doczy-codes

* Update main

* Relocate create_code_embeddings back to scripts

* Remove investment code_funcs (use codes.code_funcs now)

* Add docstrings

* stop-loss

* Update unit tests

* Remove test

* Remove reimb_dates

* fix dtypes

* Remove prints

* update prompt

* Update code breakout unit test

* Merge branch 'main' into feature/doczy-codes

* Merge branch 'main' into feature/doczy-codes


Approved-by: Alex Galarce
2025-08-01 22:36:01 +00:00
VenkataKrishna Reddy Avula 84a09002fa Merged in feature/contract_level_rate_escalator (pull request #644)
Feature/contract level rate escalator to Main

* added rate escalator fields to dynamic one to one fields

* added rate escalator breakout

* update prompts and fixed errors

* fixed pipeline error

* removed exhibit level rate escalator

* removed rate escalator parameter from reimb level fxn

* removed print statement

* updated contract level rate escalator

* Merged main into feature/contract_level_rate_escalator

* Clean up

* Cleanup

* in place combine fields


Approved-by: Alex Galarce
Approved-by: Katon Minhas
2025-08-01 22:14:00 +00:00
Mayank Aamseek 82515e276a Merged in bugfix/reimb_method (pull request #643)
method fix

* method fix

* removed invalid reimb methods

* update VALIDATE_RIMBURSEMENTS_PROMPT

* update validate_reimbursements_for_llm to use sonnet_latest for LLM invocation


Approved-by: Katon Minhas
2025-08-01 17:45:53 +00:00
Mayank Aamseek 0f80c1f16d Merged in bugfix/carveout_ind (pull request #635)
fixed non-default cases

* fixed non-default cases

* prompt fix

* prompt fix

* Merge branch 'main' into bugfix/carveout_ind

* prompt fix

* Merged main into bugfix/carveout_ind

* Merge branch 'main' into bugfix/carveout_ind

* prompt fix

* Merged main into bugfix/carveout_ind

* update Default term definition

* Merged main into bugfix/carveout_ind


Approved-by: Alex Galarce
2025-07-31 21:51:44 +00:00
Alex Galarce db4daa3f55 Merged in feature/additions-fixes (pull request #642)
propagate addition information to other side(s) of "lesser of"

* propagate addition information to other side(s) of "lesser of"


Approved-by: Katon Minhas
2025-07-31 21:25:52 +00:00
Mayank Aamseek 8087693b08 Merged in bugfix/unit_of_measure (pull request #641)
Bugfix/unit of measure

* unit of measure prompt updated

* handled null unit of measure for flat rate cases

* Merged main into bugfix/unit_of_measure


Approved-by: Alex Galarce
2025-07-31 17:04:33 +00:00
Mayank Aamseek 0f1159c872 Merged in bugfix/exhibit_header (pull request #640)
Bugfix/exhibit header

* prompt changes

* prompt changes

* test titles

* title fix

* removed print statemnts

* removed python notebook

* Merged main into bugfix/exhibit_header


Approved-by: Alex Galarce
2025-07-31 14:18:36 +00:00
Alex Galarce 9efcdb419b Merged in feature/five-new-phase-3-issues (pull request #639)
Feature/five new phase 3 issues

* refactor: update prompt for 'not to exceed' limitation to clarify monetary payment analysis

* rework LESSER_OF_IND prompt


Approved-by: Katon Minhas
2025-07-30 21:54:49 +00:00
Katon Minhas 1560e7f91d Merged in refactor/rename-procedure-cd (pull request #638)
CPT4_PROC_CD --> PROCEDURE_CD

* CPT4_PROC_CD --> PROCEDURE_CD


Approved-by: Alex Galarce
2025-07-30 15:04:20 +00:00
Alex Galarce 9c5de94472 Merged in feature/improved-error-out-logging (pull request #637)
Feature/improved error out logging

* Improve error logging in file processing and JSON parsing

* Enhance JSON parsing error handling for CSV compatibility

* black formatting

* isort

* Merge remote-tracking branch 'origin/main' into feature/improved-error-out-logging


Approved-by: Katon Minhas
2025-07-29 22:05:51 +00:00
Alex Galarce d4ba73dca5 Merged in feature/claude4-duplicate-and-missing-rows (pull request #636)
Feature/claude4 duplicate and missing rows

* Enhance crosswalk functionality with flatten_to_strings helper and improve value handling in apply_crosswalk

* Improve apply_crosswalk function to return original value as fallback when no mapping is found

* Enhance apply_crosswalk function to handle empty values and improve defensive programming tests

* Enhance reimbursement method prompt to include charge master limitations and improve mapping rules

* Merge remote-tracking branch 'origin/main' into feature/claude4-duplicate-and-missing-rows

* Refine CHECK_REDUNDANT_LESSER prompt for clarity and detail in evaluating redundancy of exhibit constraints

* Enable logging of LLM response for redundancy check in is_exhibit_lesser_of_redundant function

* Merge remote-tracking branch 'origin/main' into feature/claude4-duplicate-and-missing-rows

* rework prompt for exhibit-wide lesser of

* Refine reimbursement methodology guidelines by clarifying invalid entries and examples for risk-sharing

* Enhance exhibit linking logic to treat pages with substantial tables as separate exhibits and update function signature to include text_dict.


Approved-by: Katon Minhas
2025-07-29 21:26:00 +00:00
Mayank Aamseek 62d881fc2a Merged in bugfix/reimb_method_issues (pull request #627)
Bugfix/reimb method issues

* updated trigger_cap definition

* updated trigger_cap definition_new

* updated triggerbase threshold prompt

* updated Trigger Cap Def

* Merge branch 'main' into bugfix/special_case_fixes

* Merge branch 'main' into bugfix/special_case_fixes

* prompt changes

* Merge branch 'main' into bugfix/unit_of_measure

* post processing and prompts updated

* print statements removed

* print statements removed

* prompt updated

* prompt changes

* merged with main

* Merge branch 'main' into bugfix/reimb_method_issues

* updated reimb_method prompt and post processing

* merged with main

* bugfix for reimb_method

* Merged main into bugfix/reimb_method_issues

* Merge branch 'main' into bugfix/reimb_method_issues


Approved-by: Katon Minhas
2025-07-28 13:12:38 +00:00
Katon Minhas 38b7b5891f Merged in feature/update-universal-json (pull request #634)
Feature/update universal json

* update string utils

* Add flatten to string

* update comments and docstrings


Approved-by: Alex Galarce
2025-07-25 16:51:46 +00:00
VenkataKrishna Reddy Avula aee1e6f665 Merged in bugfix/trigger_cap_fixes (pull request #631)
Trigger_Cap+Special_Case_Fixes to Main

* updated trigger_cap_definition

* src/prompts/investment_prompts.py

* updated trigger base threshold prompt

* updated special case check prompt

* Merged main into bugfix/trigger_cap_fixes


Approved-by: Alex Galarce
2025-07-25 15:01:09 +00:00
Mayank Aamseek 6693c388c1 Merged in bugfix/special_case_fixes (pull request #633)
Bugfix/special case fixes

* notebook with fix added

* fixed additions case


Approved-by: Alex Galarce
2025-07-25 14:15:41 +00:00
Alex Galarce b9fce2077e Merged in hotfix/defensive-crosswalk (pull request #632)
Hotfix/defensive crosswalk handling

* Enhance crosswalk functionality with flatten_to_strings helper and improve value handling in apply_crosswalk

* Improve apply_crosswalk function to return original value as fallback when no mapping is found

* Enhance apply_crosswalk function to handle empty values and improve defensive programming tests

* move flatten_to_strings helper function to string_utils


Approved-by: Katon Minhas
2025-07-25 14:10:06 +00:00
VenkataKrishna Reddy Avula 080c83234c Merged in bugfix/mcs_issue_fixes (pull request #630)
Bugfix/mcs issue fixes to main

* updated trigger_cap definition

* updated NTE prompt

* Merged main into bugfix/mcs_issue_fixes

* reverted NTE prompt


Approved-by: Katon Minhas
2025-07-23 13:58:03 +00:00
Katon Minhas bc49532cb8 Merged in bugfix/claim-type-issues (pull request #629)
Bugfix/claim type issues

* Testing

* Prompt updates, move to one-to-one

* Remove print statement

* Remove test

* Add allow_na

* Update llm_utils

* Update passing to one-to-one

* Remove prints

* Merged main into bugfix/claim-type-issues

* remove print


Approved-by: Alex Galarce
2025-07-22 21:46:18 +00:00