From c40a8f01086b7ab9ba0bc7d5ece282a7b7fac399 Mon Sep 17 00:00:00 2001 From: Katon Minhas Date: Mon, 10 Jun 2024 13:35:37 -0700 Subject: [PATCH] AWP handingling in Methodology prompt --- src/config.py | 12 ++++++------ src/prompts.py | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/config.py b/src/config.py index 6774683..8b211cd 100644 --- a/src/config.py +++ b/src/config.py @@ -8,7 +8,7 @@ from llama_index.llms.bedrock import Bedrock # General Settings TEST = False # True to run test prompt - just for testing model connection VERBOSE = True -CLIENT_NAME = 'Priority Health' +CLIENT_NAME = '' TODAY = datetime.now().strftime("%Y%m%d") # Valid values @@ -30,7 +30,7 @@ UNPROCESSED_RESULTS_NAME = 'combined_results_unprocessed.csv' PROCESSED_RESULTS_NAME = 'combined_results_post_processed.csv' # Multithread Settings -MAX_WORKERS = 20 +MAX_WORKERS = 5 # Prompt Debugging RUN_PRIMARY = True # Always True @@ -45,12 +45,12 @@ RUN_CODES = True FUZZY_MATCH_THRESHOLD = 0.8 # AWS Keys -AWS_ACCESS_KEY_ID="ASIAZTMXAXNXEBLXGWPZ" -AWS_SECRET_ACCESS_KEY="kysOCZMQMY6LhAaG8yOqePxipD7E/xCgQ65PAyru" -AWS_SESSION_TOKEN="IQoJb3JpZ2luX2VjEG4aCXVzLWVhc3QtMiJIMEYCIQDTt+AU18DgfdW0xumQTZD1hiyQcGBidA1w6LbxO2plhwIhAO5H86tzKKhVyVM8TJBjhyNL4VLysGd4A5wXkXb42AXdKowDCPj//////////wEQABoMNjYwMTMxMDY4NzgyIgy5MpnRnarWqYZ+d4Yq4AKKqJCRvzV6qgoUnCtNahiK7oiSHd6TpZghh4g87TVkIRUdzAirtYH86gfzlUfZsBgHRlq2w5DyRlEe88dCuUVoUd8XFRREqO2/DkPEMJzfs87EOc4wu6wu8IJ1BRIl7ALxtVUVgR0sXIpiHhS+0NDF6i/kebau7chpAZiHottOl2VO4h/+rKaAI2HahwzbgY5nuckb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u+J7w48iPLhXWnuN0GXuN7gBc2C1lzPs/aABM2bU3LBlDqGxKGUDVPRHttg8HRNGwIkEr9LieGjheKvcvLQroi6DhTRkKnV6WEQ1wGzN9wCteXSL7DIktSsddnwX3ffvg7G5WhPN0xYc4F78Sw9gan50wmmebiHrc5lP+yQDJ7J6gvo4a3NsxCE5opV/hgJUjPUgJ7tCPZ+bf+kqKJqMNLem7MGOqUBjmMAY7Vvqp4pBdORFWTZkOHcmZ1UsmJmNYrS69btqyYQbwg79sCIaVR/wiJDn9T5v9vziyv0n98XD7dV6UEuyW97EKv/OWwnqZ7zJwHAa4vwJ09zCruIgT4hCctpzDAAfTYtkacb0PRrxa3pjQZy7pXQC0BvliocPY5fvR5f5QOa/mZGwhjUcih9LfvNWj0BsRW65pPcJoy6Wy3G0EgwsH+VW1h5" # File Paths -LOCAL_PATH = 'data/test/' # Replace with local +LOCAL_PATH = 'data/all_txt_updated/' # Replace with local # S3 Settings S3_CLIENT = boto3.client('s3', diff --git a/src/prompts.py b/src/prompts.py index 7b0934f..63dcb93 100644 --- a/src/prompts.py +++ b/src/prompts.py @@ -107,7 +107,7 @@ Methodology: {d['FULL_METHODOLOGY']} Your job is to identify if the reimbursement is based on a Fee Schedule. Read and analyze the Methodology, then populate a JSON dictionary with the following fields (descriptions provided): -REIMBURSEMENT_FEE_SCHEDULE : If the Methodology is based on a Fee Schedule, what is the name of the fee schedule on which it is based? It could be something like Medicaid, Medicare, CMS, DRG, or similar. Do not answer with a complete sentence. If the Methodology is not based on a Fee Schedule, just return 'N/A' +REIMBURSEMENT_FEE_SCHEDULE : If the Methodology is based on a Fee Schedule, what is the name of the fee schedule on which it is based? It could be something like Medicaid, Medicare, CMS, DRG, AWP, ASP, or similar. Do not answer with a complete sentence. If the Methodology is not based on a Fee Schedule, just return 'N/A' REIMBURSEMENT_FEE_SCHEDULE_VERSION : If the Methodology is based on a Fee Schedule, what specific version of the Fee Schedule is it based on. It could be something like 'Current', 'Prevailing', 'at the date of service', a specific year, or similar. If there is no answer, return 'N/A' Only return the dictionary, with no other commentary or explanation. Ensure you abide by proper JSON formatting. @@ -120,7 +120,7 @@ def BOTTOM_UP_METHODOLOGY(d): Your job is to identify what the concise methodology is based on the full methodology. Choose the closest option from the following: -Allowed Amount, Allowable Charges, Fee Schedule, Medicare Fee Schedule, Medicare Allowed Amount, Medicaid Fee Schedule, Medicaid Allowed Amount, Provider's Charges, Billed Charges, IME/DME Amount, MSRP, Per Unit, Per Diem, Per Visit, Per Member, Per Member Per Month, Per Hour, Case Rate +Allowed Amount, Allowable Charges, Fee Schedule, Medicare Fee Schedule, Medicare Allowed Amount, Medicaid Fee Schedule, Medicaid Allowed Amount, Provider's Charges, Billed Charges, IME/DME Amount, Cost to Charge Ratio, MSRP, Per Unit, Per Diem, Per Visit, Per Member, Per Member Per Month, Per Hour, Case Rate For 'Allowed Amount' and 'Fee Schedule', use the more specific answer (Medicare/Medicaid) if applicable. For the 'Per ___' values, note that this list is not necessarily exhaustive. It could be anything like 'Per ___'.