3740588efa
Refactor/daip2-9 code refactor * add missing import * refactor ac_smart_chunking.py * update tests * removed old and unused imports * removed outdated import * forgot to import re * refactor bottom up funcs * remove unused imports from file_processing.py * refactor dict_operations.py * remove unused import from conditional_funcs.py * replace top_down_funcs with one_to_n_funcs and remove top_down_funcs.py * remove duplicate import from one_to_n_funcs.py * refactor all utils.py imports * refactor error handling by removing last code in utils and integrating InvalidDateException into postprocessing_funcs * refactor import in claude_funcs.py to use string_funcs directly and (hopefully) resolve circular import * refactor regex_funcs.py to use postprocessing_funcs for add_hyphen_if_needed calls * refactor hotfix_helper_funcs.py to use postprocessing_funcs for add_hyphen_if_needed calls * refactor postprocess.py to remove unused imports * add numpy import to string_funcs * fix tests after utils refactor * move adhoc from tests to scripts * remove unused imports * remove scripts from mypy checking * isort * Merged main into refactor/daip-2-9-code-refactor Approved-by: Katon Minhas
35 lines
1.2 KiB
Python
35 lines
1.2 KiB
Python
# """
|
|
# Run N iterations of a single prompt, count unique outputs
|
|
# """
|
|
|
|
# import pandas as pd
|
|
|
|
# import prompts
|
|
# import claude_funcs
|
|
# import config
|
|
# import dict_operations
|
|
|
|
|
|
# N = 1
|
|
|
|
# # Paste contract text here
|
|
# text = """The maximum compensation for Covered Services rendered to a Covered Person shall be the "Allowed Amount."
|
|
# The Allowed Amount for Covered Services is the lesser of: (i) Allowable Charges; or (ii) as applicable,
|
|
# (a) 100% of the Payor's Medicaid fee schedule in effect on the date of service,
|
|
# or (b) for those Covered Services included in the Service Categories in Table 1 below,
|
|
# the applicable "Contracted Rate" set forth in Table 1 below. Physical, Occupational and Speech Therapy | 80% of the Medicaid Rate in effect on the date of service.
|
|
# """
|
|
|
|
# # Change prompt below
|
|
# prompt = prompts.BOTTOM_UP_METHODOLOGY_BREAKOUT({'FULL_METHODOLOGY' : text})
|
|
|
|
# all_dicts = []
|
|
# for i in range(N):
|
|
# answer = claude_funcs.invoke_claude(prompt, config.MODEL_ID_CLAUDE35_SONNET, "", 512)
|
|
# answer_dict = dict_operations.secondary_string_to_dict(answer, "")
|
|
# print(answer_dict)
|
|
# all_dicts.append(answer_dict)
|
|
|
|
# # answer_df = pd.DataFrame(all_dicts)
|
|
# # answer_df.to_csv('full_methodology_unit_test.csv')
|