2024-10-07 20:27:07 -07:00
version : v0.1
2024-10-03 18:21:27 -07:00
listener :
address : 127.0 .0 .1
port : 8080 #If you configure port 443, you'll need to update the listener with tls_certificates
message_format : huggingface
system_prompt : |
2024-10-07 20:27:07 -07:00
You are an insurance assistant that just offers guidance related to car, boat, rental and home insurnace only. Please be pricese and summarize based on the context provided.
2024-10-03 18:21:27 -07:00
llm_providers :
2024-10-07 20:27:07 -07:00
- name : OpenAI
provider : openai
2024-10-30 17:54:51 -07:00
access_key : $OPENAI_API_KEY
2024-10-03 18:21:27 -07:00
model : gpt-4o
default : true
# Arch creates a round-robin load balancing between different endpoints, managed via the cluster subsystem.
endpoints :
app_server :
# value could be ip address or a hostname with port
# this could also be a list of endpoints for load balancing
# for example endpoint: [ ip1:port, ip2:port ]
2024-10-07 20:27:07 -07:00
endpoint : host.docker.internal:18083
2024-10-03 18:21:27 -07:00
# max time to wait for a connection to be established
2024-10-07 20:27:07 -07:00
connect_timeout : 0. 05s
2024-10-03 18:21:27 -07:00
prompt_targets :
- name : policy_qa
endpoint :
name : app_server
path : /policy/qa
2024-12-06 14:37:33 -08:00
http_method : POST
2024-10-07 20:27:07 -07:00
description : Handle general Q/A related to insurance.
2024-10-03 18:21:27 -07:00
default : true
- name : get_policy_coverage
description : Retrieve the coverage details for a given policy type (car, boat, house, motorcycle).
endpoint :
name : app_server
path : /policy/coverage
2024-12-06 14:37:33 -08:00
http_method : POST
2024-10-03 18:21:27 -07:00
parameters :
- name : policy_type
type : str
2024-10-07 20:27:07 -07:00
description : The type of policy, option - car, boat, house, motorcycle.
default : car
2024-10-03 18:21:27 -07:00
required : true
- name : initiate_policy
endpoint :
name : app_server
path : /policy/initiate
2024-12-06 14:37:33 -08:00
http_method : POST
2024-10-07 20:27:07 -07:00
description : Start a policy coverage for car, boat, motorcycle or house.
2024-10-03 18:21:27 -07:00
parameters :
- name : policy_type
type : str
2024-10-07 20:27:07 -07:00
description : The type of policy, option - car, boat, house, motorcycle.
default : car
required : true
- name : deductible
type : float
description : the deductible amount set of the policy
2024-10-03 18:21:27 -07:00
required : true
- name : update_claim
endpoint :
name : app_server
path : /policy/claim
2024-12-06 14:37:33 -08:00
http_method : POST
2024-10-07 20:27:07 -07:00
description : Update the notes on the claim
2024-10-03 18:21:27 -07:00
parameters :
- name : claim_id
2024-10-07 20:27:07 -07:00
type : str
description : the claim number
2024-10-03 18:21:27 -07:00
required : true
2024-10-07 20:27:07 -07:00
- name : notes
2024-10-03 18:21:27 -07:00
type : str
2024-10-07 20:27:07 -07:00
description : notes about the cliam number for your adjustor to see
2024-10-03 18:21:27 -07:00
required : false
- name : update_deductible
endpoint :
name : app_server
path : /policy/deductible
2024-12-06 14:37:33 -08:00
http_method : POST
2024-10-07 20:27:07 -07:00
description : Update the deductible amount for a specific policy coverage.
2024-10-03 18:21:27 -07:00
parameters :
- name : policy_id
2024-10-07 20:27:07 -07:00
type : str
description : The id of the policy
2024-10-03 18:21:27 -07:00
required : true
2024-10-07 20:27:07 -07:00
- name : deductible
2024-10-03 18:21:27 -07:00
type : float
2024-10-07 20:27:07 -07:00
description : the deductible amount set of the policy
required : true
ratelimits :
- model : gpt-4
selector :
key : selector-key
value : selector-value
limit :
tokens : 1
unit : minute