ciyidogan commited on
Commit
5e2cb7e
·
verified ·
1 Parent(s): a941238

Update service_config.json

Browse files
Files changed (1) hide show
  1. service_config.json +51 -15
service_config.json CHANGED
@@ -14,7 +14,7 @@
14
  },
15
  "apis": {
16
  "currency_api": {
17
- "url": "https://37d7-176-88-34-20.ngrok-free.app/doviz",
18
  "method": "POST",
19
  "headers": [
20
  { "key": "Authorization", "value": "Bearer {auth_tokens.currency_api.token}" }
@@ -25,10 +25,10 @@
25
  "timeout": 5,
26
  "retry_count": 1,
27
  "auth": {
28
- "auth_endpoint": "https://37d7-176-88-34-20.ngrok-free.app/auth",
29
  "auth_body": { "username": "user", "password": "pass" },
30
  "auth_token_path": "token",
31
- "auth_refresh_endpoint": "https://37d7-176-88-34-20.ngrok-free.app/refresh",
32
  "refresh_body": { "refresh_token": "{auth_tokens.currency_api.token}" }
33
  },
34
  "response_parser": {
@@ -38,7 +38,7 @@
38
  "reply_template": "{variables.currency} kuru şu an {rate} TL."
39
  },
40
  "traffic_api": {
41
- "url": "https://37d7-176-88-34-20.ngrok-free.app/yol",
42
  "method": "POST",
43
  "headers": [
44
  { "key": "Authorization", "value": "Bearer {auth_tokens.traffic_api.token}" }
@@ -50,10 +50,10 @@
50
  "timeout": 5,
51
  "retry_count": 1,
52
  "auth": {
53
- "auth_endpoint": "https://37d7-176-88-34-20.ngrok-free.app/auth",
54
  "auth_body": { "username": "user", "password": "pass" },
55
  "auth_token_path": "token",
56
- "auth_refresh_endpoint": "https://37d7-176-88-34-20.ngrok-free.app/refresh",
57
  "refresh_body": { "refresh_token": "{auth_tokens.traffic_api.token}" }
58
  },
59
  "response_parser": {
@@ -63,7 +63,7 @@
63
  "reply_template": "{from_location} ile {to_location} arasındaki trafik durumu: {status}"
64
  },
65
  "weather_api": {
66
- "url": "https://37d7-176-88-34-20.ngrok-free.app/hava",
67
  "method": "POST",
68
  "headers": [
69
  { "key": "Authorization", "value": "Bearer {auth_tokens.weather_api.token}" }
@@ -74,10 +74,10 @@
74
  "timeout": 5,
75
  "retry_count": 1,
76
  "auth": {
77
- "auth_endpoint": "https://37d7-176-88-34-20.ngrok-free.app/auth",
78
  "auth_body": { "username": "user", "password": "pass" },
79
  "auth_token_path": "token",
80
- "auth_refresh_endpoint": "https://37d7-176-88-34-20.ngrok-free.app/refresh",
81
  "refresh_body": { "refresh_token": "{auth_tokens.weather_api.token}" }
82
  },
83
  "response_parser": {
@@ -99,18 +99,31 @@
99
  "intent_confidence_treshold": 0.5,
100
  "llm_confidence_treshold": 0.2,
101
  "train_confidence_treshold": 0.7,
 
 
102
  "fallback_answers": [
103
  "Bu konuda maalesef bilgim yok.",
104
  "Ne demek istediğinizi tam anlayamadım.",
105
  "Bu soruya şu an yanıt veremiyorum."
106
- ],
107
- "intent_model_path": "/data/projects/project1/intent/trained_model",
108
- "intent_model_id": "dbmdz/bert-base-turkish-cased"
109
  },
110
  "intents": [
111
  {
112
  "name": "doviz-kuru-intent",
113
- "examples": ["dolar kuru nedir?", "euro ne kadar?", "TL kaç dolar?"],
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  "variables": ["currency:{dolar} kuru nedir?", "{currency} kuru nedir?"],
115
  "variable_formats": {
116
  "currency": "currency_format"
@@ -119,7 +132,18 @@
119
  },
120
  {
121
  "name": "yol-durumu-intent",
122
- "examples": ["Ankara'dan İstanbul'a yol durumu nasıl?", "Ankara'dan İzmir'e trafik var mı?"],
 
 
 
 
 
 
 
 
 
 
 
123
  "variables": ["from_location:{Ankara} to {to_location}:{İstanbul} yol durumu", "Ankara'dan {to_location}:{İzmir} yol durumu"],
124
  "variable_formats": {
125
  "from_location": "city_format",
@@ -129,7 +153,19 @@
129
  },
130
  {
131
  "name": "hava-durumu-intent",
132
- "examples": ["İstanbul'da hava nasıl?", "Ankara hava durumu", "İzmir yağmurlu mu?"],
 
 
 
 
 
 
 
 
 
 
 
 
133
  "variables": ["city:{İstanbul} hava durumu", "{city}:{Ankara} hava nasıl?"],
134
  "variable_formats": {
135
  "city": "city_format"
 
14
  },
15
  "apis": {
16
  "currency_api": {
17
+ "url": "http://localhost:5678/doviz",
18
  "method": "POST",
19
  "headers": [
20
  { "key": "Authorization", "value": "Bearer {auth_tokens.currency_api.token}" }
 
25
  "timeout": 5,
26
  "retry_count": 1,
27
  "auth": {
28
+ "auth_endpoint": "http://localhost:5678/auth",
29
  "auth_body": { "username": "user", "password": "pass" },
30
  "auth_token_path": "token",
31
+ "auth_refresh_endpoint": "http://localhost:5678/refresh",
32
  "refresh_body": { "refresh_token": "{auth_tokens.currency_api.token}" }
33
  },
34
  "response_parser": {
 
38
  "reply_template": "{variables.currency} kuru şu an {rate} TL."
39
  },
40
  "traffic_api": {
41
+ "url": "http://localhost:5678/yol",
42
  "method": "POST",
43
  "headers": [
44
  { "key": "Authorization", "value": "Bearer {auth_tokens.traffic_api.token}" }
 
50
  "timeout": 5,
51
  "retry_count": 1,
52
  "auth": {
53
+ "auth_endpoint": "http://localhost:5678/auth",
54
  "auth_body": { "username": "user", "password": "pass" },
55
  "auth_token_path": "token",
56
+ "auth_refresh_endpoint": "http://localhost:5678/refresh",
57
  "refresh_body": { "refresh_token": "{auth_tokens.traffic_api.token}" }
58
  },
59
  "response_parser": {
 
63
  "reply_template": "{from_location} ile {to_location} arasındaki trafik durumu: {status}"
64
  },
65
  "weather_api": {
66
+ "url": "http://localhost:5678/hava",
67
  "method": "POST",
68
  "headers": [
69
  { "key": "Authorization", "value": "Bearer {auth_tokens.weather_api.token}" }
 
74
  "timeout": 5,
75
  "retry_count": 1,
76
  "auth": {
77
+ "auth_endpoint": "http://localhost:5678/auth",
78
  "auth_body": { "username": "user", "password": "pass" },
79
  "auth_token_path": "token",
80
+ "auth_refresh_endpoint": "http://localhost:5678/refresh",
81
  "refresh_body": { "refresh_token": "{auth_tokens.weather_api.token}" }
82
  },
83
  "response_parser": {
 
99
  "intent_confidence_treshold": 0.5,
100
  "llm_confidence_treshold": 0.2,
101
  "train_confidence_treshold": 0.7,
102
+ "intent_model_path": "/data/projects/project1/intent/trained_model",
103
+ "intent_model_id": "dbmdz/bert-base-turkish-cased",
104
  "fallback_answers": [
105
  "Bu konuda maalesef bilgim yok.",
106
  "Ne demek istediğinizi tam anlayamadım.",
107
  "Bu soruya şu an yanıt veremiyorum."
108
+ ]
 
 
109
  },
110
  "intents": [
111
  {
112
  "name": "doviz-kuru-intent",
113
+ "examples": [
114
+ "dolar kuru nedir?",
115
+ "euro kuru ne kadar?",
116
+ "1 dolar kaç TL?",
117
+ "TL dolara karşı değeri?",
118
+ "euro TL oranı nedir?",
119
+ "dolar fiyatı ne?",
120
+ "bugün dolar ne kadar?",
121
+ "bugünkü euro kuru?",
122
+ "doların bugünkü değeri?",
123
+ "euro fiyatı kaç TL?",
124
+ "şu an dolar kuru?",
125
+ "şu an euro kuru?"
126
+ ],
127
  "variables": ["currency:{dolar} kuru nedir?", "{currency} kuru nedir?"],
128
  "variable_formats": {
129
  "currency": "currency_format"
 
132
  },
133
  {
134
  "name": "yol-durumu-intent",
135
+ "examples": [
136
+ "Ankara'dan İstanbul'a yol durumu nasıl?",
137
+ "Ankara'dan İzmir'e trafik var mı?",
138
+ "İstanbul trafiği nasıl?",
139
+ "Ankara İstanbul arası trafik açık mı?",
140
+ "İzmir yol durumu?",
141
+ "Bugün İstanbul trafiği yoğun mu?",
142
+ "Ankara'dan çıkışta yol durumu?",
143
+ "İzmir girişinde trafik var mı?",
144
+ "Ankara İstanbul arası trafik bilgisi?",
145
+ "İstanbul'da trafik nasıl?"
146
+ ],
147
  "variables": ["from_location:{Ankara} to {to_location}:{İstanbul} yol durumu", "Ankara'dan {to_location}:{İzmir} yol durumu"],
148
  "variable_formats": {
149
  "from_location": "city_format",
 
153
  },
154
  {
155
  "name": "hava-durumu-intent",
156
+ "examples": [
157
+ "İstanbul'da hava nasıl?",
158
+ "Ankara hava durumu nedir?",
159
+ "İzmir bugün yağmurlu mu?",
160
+ "Bugünkü hava nasıl?",
161
+ "Yarın hava nasıl olacak?",
162
+ "İstanbul güneşli mi?",
163
+ "Ankara'da yağmur var mı?",
164
+ "İzmir hava raporu?",
165
+ "Bugünkü hava tahmini?",
166
+ "Yarın yağmur bekleniyor mu?",
167
+ "İstanbul'da rüzgar var mı?"
168
+ ],
169
  "variables": ["city:{İstanbul} hava durumu", "{city}:{Ankara} hava nasıl?"],
170
  "variable_formats": {
171
  "city": "city_format"