-
Notifications
You must be signed in to change notification settings - Fork 78
/
system.yaml
263 lines (226 loc) · 9.35 KB
/
system.yaml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
env: prod
database:
url: ${DATABASE_URL:"mongodb://localhost:27017/conversations"}
test_db: ${TEST_DB:"test_conversations"}
app:
server_url: ${APP_SERVER_URL:"http://localhost:8000"}
frontend_url: ${FRONTEND_URL:"http://localhost:3000"}
enable_sso_only: ${ENABLE_SSO_ONLY:false}
user:
reset_password_request_limit: ${RESET_PASSWORD_REQUEST_LIMIT:3}
reset_password_cooldown_period: ${RESET_PASSWORD_COOLDOWN_PERIOD:120}
validate_trusted_device: ${VALIDATE_TRUSTED_DEVICE:false}
login_limit: ${LOGIN_LIMIT:3}
login_cooldown_period: ${LOGIN_COOLDOWN_PERIOD:120}
storage:
assets:
root_dir: ${BOT_ASSETS_ROOT_DIRECTORY:"application"}
bucket: ${BOT_ASSETS_BUCKET:"ui-bucket"}
allowed_extensions: ${BOT_ASSETS_ALLOWED_EXTENSIONS:[".png",".jpeg",".jpg"]}
security:
secret_key: ${SECRET_KEY:"b9d01861392757c66daaf1f214268e2739a5baac935071d06e2ea71a66dc5bcd"}
algorithm: "HS256"
token_expire: ${TOKEN_EXPIRE:10080}
refresh_token_expire: ${REFRESH_TOKEN_EXPIRE:11520}
fernet_key: ${FERNET_KEY:"gH8F9M-3GTxT1z-XyvJXZlCfxfbMuFr2HgXDHl7Xkuw="}
integrations_per_user: ${INTEGRATIONS_PER_USER:2}
validate_recaptcha: ${VALIDATE_RECAPTCHA:false}
recaptcha_secret: ${RECAPTCHA_SECRET}
recaptcha_url: https://www.google.com/recaptcha/api/siteverify
unmasked_char_strategy: ${SECRET_UNMASKED_CHAR_STRATEGY:"from_right"}
unmasked_char_count: ${SECRET_UNMASKED_CHAR_COUNT:2}
sso:
google:
enable: ${GOOGLE_SSO_ENABLE:false}
client_id: ${GOOGLE_CLIENT_ID:"asdfghjklqwe-qwertyuiopasdfghjklzxcvbnm.apps.googleusercontent.com"}
client_secret: ${GOOGLE_CLIENT_SECRET:"qwertyu-qwertyuiopasdfghjkl" }
facebook:
enable: ${FACEBOOK_SSO_ENABLE:false}
client_id: ${FACEBOOK_CLIENT_ID:"1234567890adsfg"}
client_secret: ${FACEBOOK_CLIENT_SECRET:"asdfghjklqwertyuiopzxcvbnmpoiu" }
linkedin:
enable: ${LINKEDIN_SSO_ENABLE:false}
client_id: ${LINKEDIN_CLIENT_ID:"asdfghjklzxcvb"}
client_secret: ${LINKEDIN_CLIENT_SECRET:"qwertyuiopasdf" }
redirect_url: ${REDIRECT_URL:"http://localhost:8080/callback/"}
augmentation:
paraphrase_url: ${PARAPHRASE_URL:"http://localhost:8000/paraphrases"}
question_generation_url: ${QUESTION_GENERATION_URL:"http://localhost:8000/questions"}
paraphrase_gpt_url: ${PARAPHRASE_GPT_URL:"http://localhost:8000/paraphrases/gpt"}
model:
cache_size: ${CHAT_SERVER_CACHE_SIZE:100}
retention: ${MODEL_RETENTION_COUNT:4}
train:
limit_per_day: ${TRAINING_LIMIT_PER_DAY:5}
default_model_training_config_path: ${DEFAULT_MODEL_TRAINING_CONFIG_PATH:"./template/config/kairon-default.yml"}
test:
limit_per_day: ${TESTING_LIMIT_PER_DAY:5}
dataset_threshold: ${TEST_DATA_THRESHOLD:10}
dataset_percentage: ${TEST_DATA_PERCENTAGE:10}
augmentation_similarity_threshold: ${TEST_DATA_AUGMENTATION_SIMILARITY_THRESHOLD:0.70}
data_importer:
limit_per_day: ${IMPORTING_LIMIT_PER_DAY:5}
content_importer:
limit_per_day: ${CONTENT_IMPORTING_LIMIT_PER_DAY:5}
agent:
url: ${AGENT_URL}
config_properties:
epoch_max_limit: ${EPOCH_MAX_LIMIT:200}
pipeline:
custom:
- kairon.shared.nlu.classifier.openai.OpenAIClassifier
- kairon.shared.nlu.featurizer.openai.OpenAIFeaturizer
action:
url: ${ACTION_SERVER_URL:"http://localhost:5055/webhook"}
request_timeout: ${ACTION_SERVER_REQUEST_TIMEOUT:1}
web_search:
trigger_task: ${WEB_SEARCH_TRIGGER_TASK:false}
url: ${WEB_SEARCH_URL}
lock_store:
type: ${LOCK_STORE_TYPE:"redis"}
url: ${LOCK_STORE_HOST}
port: ${LOCK_STORE_PORT}
password: ${LOCK_STORE_PASSWORD}
db: ${LOCK_STORE_DB}
data_generation:
limit_per_day: ${TRAIN_LIMIT_PER_DAY:3}
kairon_url: ${KAIRON_URL}
nudge:
server_url: ${NUDGE_SERVER_URL}
apm:
enable: ${ENABLE_APM:false}
service_name: ${APM_APPLICATION_NAME:"Kairon"}
env_type: ${KAIRON_ENV_TYPE:"development"}
history_server:
url: ${KAIRON_HISTORY_SERVER_URL:"http://localhost:8083/"}
token: ${KAIRON_HISTORY_SERVER_TOKEN:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtleSI6ImI5ZDAxODYxMzkyNzU3YzY2ZGFhZjFmMjE0MjY4ZTI3MzlhNWJhYWM5MzUwNzFkMDZlMmVhNzFhNjZkYzViY2QifQ.eyJzdWIiOiJrYWlyb24uZGlnaXRlLmNvbSIsIm5hbWUiOiJrYWlyb24iLCJpYXQiOjE1MTYyMzkwMjJ9.3SOONqzoeX1tnMnUH5BVaOtZ7mElgwxyD1xpPvTQTrs"}
deletion:
event_url: ${HISTORY_DELETION_EVENT_URL}
archive_db: ${ARCHIVE_DB:"conversations_archive"}
notifications:
enable: ${ENABLE_NOTIFICATIONS:false}
server_endpoint: ${PUSH_SERVER_ENDPOINT:"http://localhost:8800/events/"}
events:
server_url: ${EVENT_SERVER_ENDPOINT:"http://localhost:5056"}
executor:
type: ${EVENTS_EXECUTOR_TYPE}
region: ${EVENTS_EXECUTOR_REGION}
timeout: ${EVENTS_EXECUTOR_TIMEOUT_MINUTES:60}
queue:
type: ${EVENTS_QUEUE_TYPE:"mongo"}
url: ${EVENTS_QUEUE_URL:"mongodb://localhost:27017/events"}
name: ${EVENTS_DB_NAME:"kairon_events"}
task_definition:
model_training: ${MODEL_TRAINING_TASK_DEFINITION}
model_testing: ${MODEL_TESTING_TASK_DEFINITION}
data_importer: ${TRAINING_DATA_IMPORTER_TASK_DEFINITION}
delete_history: ${DELETE_HISTORY_TASK_DEFINITION}
multilingual: ${MULTILINGUAL_TASK_DEFINITION}
data_generator: ${DATA_GENERATION_TASK_DEFINITION}
message_broadcast: ${MESSAGE_BROADCAST_TASK_DEFINITION}
web_search: ${WEB_SEARCH_TASK_DEFINITION}
pyscript_evaluator: ${PYSCRIPT_TASK_DEFINITION}
scheduler_evaluator: ${SCHEDULER_TASK_DEFINITION}
content_importer: ${DOC_CONTENT_IMPORTER_TASK_DEFINITION}
email_channel_read_mails: ${MAIL_CHANNEL_READ_TASK_DEFINITION}
scheduler:
collection: ${EVENT_SCHEDULER_COLLECTION:"kscheduler"}
type: ${EVENT_SCHEDULER_TYPE:"kscheduler"}
min_trigger_interval: ${MIN_SCHDULER_TRIGGER_INTERVAL:86340}
audit_logs:
retention: ${AUDIT_LOGS_RETENTION_PERIOD:365}
attributes:
- account
- bot
evaluator:
url: ${EXPRESSION_EVALUATOR_ENDPOINT:"http://192.168.100.109:8085/evaluate"}
pyscript:
trigger_task: ${PYSCRIPT_TRIGGER_TASK:false}
url: ${PYSCRIPT_EVALUATOR_ENDPOINT:"http://localhost:8087/evaluate"}
multilingual:
enable: ${ENABLE_MULTILINGUAL_BOTS:false}
project_id: ${MULTILINGUAL_TRANSLATOR_PROJECT_ID}
limit_per_day: ${TRANSLATION_LIMIT:2}
service_account_creds:
type: ${SERVICE_ACCOUNT_TYPE}
private_key_id: ${SERVICE_ACCOUNT_PRIVATE_KEY_ID}
private_key: ${SERVICE_ACCOUNT_PRIVATE_KEY}
client_email: ${SERVICE_ACCOUNT_CLIENT_EMAIL}
client_id: ${SERVICE_ACCOUNT_CLIENT_ID}
auth_uri: ${SERVICE_ACCOUNT_AUTH_URL:"https://accounts.google.com/o/oauth2/auth"}
token_uri: ${SERVICE_ACCOUNT_TOKEN_URL:"https://oauth2.googleapis.com/token"}
auth_provider_x509_cert_url: ${SERVICE_ACCOUNT_AUTH_PROVIDER_CERT_URL:"https://www.googleapis.com/oauth2/v1/certs"}
client_x509_cert_url: ${SERVICE_ACCOUNT_CLIENT_CERT_URL}
tracker:
type: ${TRACKER_TYPE:"static"}
url: ${TRACKER_URL:"mongodb://localhost:27017/rasa"}
collection: ${TRACKER_COLLECTION:"conversations"}
authentication:
token: ${AUTH_TOKEN:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtleSI6ImI5ZDAxODYxMzkyNzU3YzY2ZGFhZjFmMjE0MjY4ZTI3MzlhNWJhYWM5MzUwNzFkMDZlMmVhNzFhNjZkYzViY2QifQ.eyJzdWIiOiJrYWlyb24uZGlnaXRlLmNvbSIsIm5hbWUiOiJrYWlyb24iLCJpYXQiOjE1MTYyMzkwMjJ9.3SOONqzoeX1tnMnUH5BVaOtZ7mElgwxyD1xpPvTQTrs"}
plugins:
location:
enable: ${ENABLE_LOCATION_PLUGIN}
token: ${LOCATION_PLUGIN_TOKEN}
gpt:
url: "https://api.openai.com/v1/completions"
temperature: 0.7
model: "text-davinci-003"
idp:
enable: ${IDP_ENABLED:false}
server_url: ${KEYCLOAK_SERVER_URL}
admin_username: ${ADMIN_USERNAME}
admin_password: ${ADMIN_PASSWORD}
callback_frontend_url: ${CALLBACK_FRONTEND_URL}
type: ${IDP_TYPE:idp}
cors:
origin: ${ALLOWED_ORIGIN:["*"]}
channels:
360dialog:
partner_id: ${360_DIALOG_PARTNER_ID}
partner_username: ${360_DIALOG_PARTNER_USERNAME}
partner_password: ${360DIALOG_PARTNER_PASSWORD}
error_codes: ${ERROR_CODES:[131021,131052]}
instagram:
static_comment_reply: ${INSTA_STATIC_COMMENT_REPLY:Thanks for reaching us, please check your inbox}
llm:
faq: ${LLM_FAQ_TYPE:GPT3_FAQ_EMBED}
key: ${TEMPLATE_LLM_KEY}
url: ${LLM_SERVER_URL:http://localhost}
request_timeout: ${LLM_REQUEST_TIMEOUT:30}
vector:
db: ${VECTOR_DB:http://localhost:6333}
key: ${VECTOR_DB_KEY}
verify:
email:
enable: ${VERIFY_EMAIl_ENABLE:false}
type: ${VERIFY_EMAIl_TYPE:quickemail}
key: ${VERIFY_EMAIL_KEY}
actors:
default_timeout: ${ACTORS_DEFAULT_TIMEOUT:10}
support_mail: ${KAIRON_SUPPORT_MAIL:"[email protected]"}
properties:
bot:
enable_onboarding: ${ENABLE_ONBOARDING:true}
core:
components:
- kairon.shared.nlu.featurizer.lm_featurizer.LanguageModelFeaturizer
- kairon.nlu.LLMClassifier
policies:
- kairon.shared.rule_policy.RulePolicy
deprecated-components:
- SpacyNLP
- SpacyTokenizer
- SpacyEntityExtractor
- SpacyFeaturizer
live_agent:
enable: true
url: ${LIVE_AGENT_SERVER_URL:"http://localhost:8000/api/v1"}
live_agent_socket_url: ${LIVE_AGENT_SOCKET_URL:"ws://localhost:8000/ws/client"}
auth_token: ${LIVE_AGENT_AUTH_TOKEN:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoia2Fpcm9uIn0.EJXuG2n8dy72h9J-8SoIBToVmnB4gpXDGKg_Smcz-C8"}
async_callback_action:
url: ${ASYNC_CALLBACK_ACTION_SERVER_URL:"http://localhost:5059/callback"}
short_secret:
aes_key: ${ASYNC_CALLBACK_AES_KEY:"3b1fbd562a0b5a29cc9a1b29b2c2d17a8a62b0d94f7637f1088e07fa1dbdcd14"}
aes_iv: ${ASYNC_CALLBACK_AES_IV:"2f7b56a2c3e4d5f681d8ab92bc9d8f47"}
pyscript:
trigger_task: ${CALLBACK_PYSCRIPT_TRIGGER_TASK:false}