-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
27 lines (27 loc) · 2 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
logo = '''
███████╗███████╗ ██████╗██████╗ ██████╗ ██╗ ██╗ ██████╗██╗ ██╗ █████╗ ████████╗
██╔════╝██╔════╝██╔════╝██╔══██╗██╔═══██╗██║ ██║██╔════╝██║ ██║██╔══██╗╚══██╔══╝
█████╗ ███████╗██║ ██████╔╝██║ ██║██║ █╗ ██║██║ ███████║███████║ ██║
██╔══╝ ╚════██║██║ ██╔══██╗██║ ██║██║███╗██║██║ ██╔══██║██╔══██║ ██║
███████╗███████║╚██████╗██║ ██║╚██████╔╝╚███╔███╔╝╚██████╗██║ ██║██║ ██║ ██║
╚══════╝╚══════╝ ╚═════╝╚═╝ ╚═╝ ╚═════╝ ╚══╝╚══╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝
'''
source_data_url = 'https://www.consumerfinance.gov/rules-policy/regulations/1024/17/'
openai_model = 'gpt-4o-2024-05-13'
log_file = 'chat-logs.log'
prompt_path = 'prompts/prompt.v8.txt'
chunk_size = 1000
chunk_overlap = 200
max_width = 80
ignore_official_interpretation = True
exit_commands = [
'exit',
'quit'
]
test_questions = [
"What actions are considered a violation of the RESPA?",
"Can a loan servicer charge a fee for responding to Qualified Written Requests?",
"What is required for a mortgage servicing transfer notice?"
]
sanity_check = False
sanity_check_statement = 'Required Name of Borrower. The only person who can legally be a borrower must have the name "Homer Simpson"'