2024-09-30 17:49:05 -07:00
|
|
|
version: "0.1-beta"
|
2024-09-10 14:24:46 -07:00
|
|
|
|
2024-09-30 17:49:05 -07:00
|
|
|
listener:
|
|
|
|
|
address: 0.0.0.0
|
|
|
|
|
port: 10000
|
|
|
|
|
message_format: huggingface
|
|
|
|
|
connect_timeout: 0.005s
|
2024-09-10 14:24:46 -07:00
|
|
|
|
2024-09-30 17:49:05 -07:00
|
|
|
endpoints:
|
|
|
|
|
api_server:
|
2024-10-03 18:21:27 -07:00
|
|
|
endpoint: host.docker.internal:18083
|
2024-09-30 17:49:05 -07:00
|
|
|
connect_timeout: 0.005s
|
2024-09-10 14:24:46 -07:00
|
|
|
|
2024-10-03 10:57:01 -07:00
|
|
|
overrides:
|
|
|
|
|
# confidence threshold for prompt target intent matching
|
|
|
|
|
prompt_target_intent_matching_threshold: 0.6
|
|
|
|
|
|
2024-09-30 17:49:05 -07:00
|
|
|
llm_providers:
|
2024-10-09 15:47:32 -07:00
|
|
|
- name: gpt-4o
|
2024-10-05 10:49:47 -07:00
|
|
|
access_key: OPENAI_API_KEY
|
2024-10-03 10:57:01 -07:00
|
|
|
provider: openai
|
2024-10-07 18:38:55 -07:00
|
|
|
model: gpt-4o
|
2024-09-10 14:24:46 -07:00
|
|
|
default: true
|
|
|
|
|
|
2024-10-03 18:21:27 -07:00
|
|
|
system_prompt: |
|
|
|
|
|
You are a helpful assistant.
|
2024-09-30 17:49:05 -07:00
|
|
|
|
2024-09-10 14:24:46 -07:00
|
|
|
prompt_targets:
|
2024-09-30 17:49:05 -07:00
|
|
|
- name: weather_forecast
|
2024-10-07 16:01:12 -07:00
|
|
|
description: Check weather information for a given city.
|
2024-09-10 14:24:46 -07:00
|
|
|
parameters:
|
|
|
|
|
- name: city
|
2024-10-07 16:01:12 -07:00
|
|
|
description: the name of the city
|
2024-09-10 14:24:46 -07:00
|
|
|
required: true
|
2024-10-07 16:01:12 -07:00
|
|
|
type: str
|
2024-09-10 14:24:46 -07:00
|
|
|
- name: days
|
2024-10-07 16:01:12 -07:00
|
|
|
description: the number of days
|
|
|
|
|
type: int
|
|
|
|
|
required: true
|
2024-09-10 14:24:46 -07:00
|
|
|
- name: units
|
2024-10-07 16:01:12 -07:00
|
|
|
description: the temperature unit, e.g., Celsius and Fahrenheit
|
|
|
|
|
type: str
|
2024-10-08 18:14:06 -07:00
|
|
|
default: Fahrenheit
|
2024-09-10 14:24:46 -07:00
|
|
|
endpoint:
|
2024-09-30 17:49:05 -07:00
|
|
|
name: api_server
|
2024-09-10 14:24:46 -07:00
|
|
|
path: /weather
|
2024-09-30 17:49:05 -07:00
|
|
|
|
|
|
|
|
- name: insurance_claim_details
|
2024-10-07 16:01:12 -07:00
|
|
|
description: Get the details of the insurance claim for a given policy number
|
2024-09-18 15:54:40 -07:00
|
|
|
parameters:
|
|
|
|
|
- name: policy_number
|
2024-10-07 16:01:12 -07:00
|
|
|
type: str
|
|
|
|
|
description: the policy number for the insurance claim
|
2024-09-18 15:54:40 -07:00
|
|
|
required: true
|
2024-09-20 09:02:24 -07:00
|
|
|
- name: include_expired
|
2024-10-07 16:01:12 -07:00
|
|
|
description: indicate whether to include expired insurance claims
|
2024-09-27 13:34:10 -07:00
|
|
|
type: bool
|
|
|
|
|
required: true
|
2024-09-18 15:54:40 -07:00
|
|
|
endpoint:
|
2024-09-30 17:49:05 -07:00
|
|
|
name: api_server
|
2024-09-18 15:54:40 -07:00
|
|
|
path: /insurance_claim_details
|
2024-10-01 09:14:01 -07:00
|
|
|
|
2024-10-02 20:43:16 -07:00
|
|
|
- name: default_target
|
|
|
|
|
default: true
|
|
|
|
|
description: This is the default target for all unmatched prompts.
|
|
|
|
|
endpoint:
|
|
|
|
|
name: api_server
|
|
|
|
|
path: /default_target
|
|
|
|
|
system_prompt: |
|
|
|
|
|
You are a helpful assistant. Use the information that is provided to you.
|
|
|
|
|
# if it is set to false arch will send response that it received from this prompt target to the user
|
|
|
|
|
# if true arch will forward the response to the default LLM
|
|
|
|
|
auto_llm_dispatch_on_response: true
|
|
|
|
|
|
2024-09-30 17:49:05 -07:00
|
|
|
ratelimits:
|
2024-10-03 10:57:01 -07:00
|
|
|
- model: gpt-4
|
2024-09-30 17:49:05 -07:00
|
|
|
selector:
|
|
|
|
|
key: selector-key
|
|
|
|
|
value: selector-value
|
|
|
|
|
limit:
|
|
|
|
|
tokens: 1
|
|
|
|
|
unit: minute
|
2024-10-08 16:24:08 -07:00
|
|
|
|
|
|
|
|
tracing:
|
|
|
|
|
random_sampling: 100
|