dream

Форк
0
/
pipeline_conf.json 
441 строка · 18.9 Кб
1
{
2
    "connectors": {
3
        "sentseg": {
4
            "protocol": "http",
5
            "timeout": 1.5,
6
            "url": "http://sentseg:8011/sentseg"
7
        },
8
        "ner": {
9
            "protocol": "http",
10
            "timeout": 1.5,
11
            "url": "http://ner:8021/ner"
12
        }
13
    },
14
    "services": {
15
        "last_chance_service": {
16
            "connector": {
17
                "protocol": "python",
18
                "class_name": "PredefinedTextConnector",
19
                "response_text": "Sorry, something went wrong inside. Please tell me, what did you say.",
20
                "annotations": {
21
                    "sentseg": {
22
                        "punct_sent": "Sorry, something went wrong inside. Please tell me, what did you say.",
23
                        "segments": [
24
                            "Sorry, something went wrong inside.",
25
                            "Please tell me, what did you say."
26
                        ]
27
                    },
28
                    "ner": [
29
                        []
30
                    ]
31
                }
32
            },
33
            "state_manager_method": "add_bot_utterance_last_chance",
34
            "tags": [
35
                "last_chance"
36
            ],
37
            "is_enabled": true,
38
            "source": {
39
                "component": "components/vCZorqdcCVBI.yml",
40
                "service": "services/agent_services/service_configs/dream_kg"
41
            }
42
        },
43
        "timeout_service": {
44
            "connector": {
45
                "protocol": "python",
46
                "class_name": "PredefinedTextConnector",
47
                "response_text": "Sorry, I need to think more on that. Let's talk about something else.",
48
                "annotations": {
49
                    "sentseg": {
50
                        "punct_sent": "Sorry, I need to think more on that. Let's talk about something else.",
51
                        "segments": [
52
                            "Sorry, I need to think more on that.",
53
                            "Let's talk about something else."
54
                        ]
55
                    },
56
                    "ner": [
57
                        []
58
                    ]
59
                }
60
            },
61
            "state_manager_method": "add_bot_utterance_last_chance",
62
            "tags": [
63
                "timeout"
64
            ],
65
            "is_enabled": true,
66
            "source": {
67
                "component": "components/vCZorqdcCVBI.yml",
68
                "service": "services/agent_services/service_configs/dream_kg"
69
            }
70
        },
71
        "annotators": {
72
            "sentseg": {
73
                "connector": {
74
                    "protocol": "http",
75
                    "timeout": 1.5,
76
                    "url": "http://sentseg:8011/sentseg"
77
                },
78
                "dialog_formatter": "state_formatters.dp_formatters:preproc_last_human_utt_dialog",
79
                "response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
80
                "previous_services": [],
81
                "state_manager_method": "add_annotation",
82
                "is_enabled": true,
83
                "source": {
84
                    "component": "components/gM4fEjvVqLlSRRRkQfds2g.yml",
85
                    "service": "annotators/SentSeg/service_configs/sentseg"
86
                }
87
            },
88
            "ner": {
89
                "connector": {
90
                    "protocol": "http",
91
                    "timeout": 1.5,
92
                    "url": "http://ner:8021/ner"
93
                },
94
                "dialog_formatter": "state_formatters.dp_formatters:ner_formatter_dialog",
95
                "response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
96
                "previous_services": [
97
                    "annotators.sentseg"
98
                ],
99
                "state_manager_method": "add_annotation",
100
                "is_enabled": true,
101
                "source": {
102
                    "component": "components/3RDNPBdybjBlSQZqcc7nGQ.yml",
103
                    "service": "annotators/NER_deeppavlov/service_configs/ner"
104
                }
105
            },
106
            "entity_detection": {
107
                "connector": {
108
                    "protocol": "http",
109
                    "timeout": 1.0,
110
                    "url": "http://entity-detection:8103/respond"
111
                },
112
                "dialog_formatter": "state_formatters.dp_formatters:entity_detection_formatter_dialog",
113
                "response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
114
                "previous_services": [
115
                    "annotators.sentseg"
116
                ],
117
                "state_manager_method": "add_annotation",
118
                "is_enabled": true,
119
                "source": {
120
                    "component": "components/05PqJXVd7gV7DqslN5z3A.yml",
121
                    "service": "annotators/entity_detection/service_configs/entity-detection"
122
                }
123
            },
124
            "entity_linking": {
125
                "connector": {
126
                    "protocol": "http",
127
                    "timeout": 1.0,
128
                    "url": "http://entity-linking:8075/model"
129
                },
130
                "dialog_formatter": "state_formatters.dp_formatters:el_formatter_dialog",
131
                "response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
132
                "previous_services": [
133
                    "annotators.ner",
134
                    "annotators.entity_detection"
135
                ],
136
                "state_manager_method": "add_annotation",
137
                "is_enabled": true,
138
                "source": {
139
                    "component": "components/M1sE6hOm20EGBWBdr0vIOw.yml",
140
                    "service": "annotators/entity_linking/service_configs/entity-linking"
141
                }
142
            },
143
            "property_extraction": {
144
                "connector": {
145
                    "protocol": "http",
146
                    "url": "http://property-extraction:8136/respond"
147
                },
148
                "dialog_formatter": "state_formatters.dp_formatters:property_extraction_formatter_dialog",
149
                "response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
150
                "previous_services": [
151
                    "annotators.ner",
152
                    "annotators.entity_linking"
153
                ],
154
                "state_manager_method": "add_annotation",
155
                "is_enabled": true,
156
                "source": {
157
                    "component": "components/wM5Hf4GVelUr2s8vrTBtaS.yml",
158
                    "service": "annotators/property_extraction/service_configs/property-extraction"
159
                }
160
            },
161
            "custom_entity_linking": {
162
                "connector": {
163
                    "protocol": "http",
164
                    "timeout": 2.0,
165
                    "url": "http://custom-entity-linking:8153/model"
166
                },
167
                "dialog_formatter": "state_formatters.dp_formatters:custom_el_formatter_dialog",
168
                "response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
169
                "previous_services": [
170
                    "annotators.ner",
171
                    "annotators.entity_detection",
172
                    "annotators.property_extraction"
173
                ],
174
                "state_manager_method": "add_annotation",
175
                "is_enabled": true,
176
                "source": {
177
                    "component": "components/7v330b9odypuiugqeiuqij.yml",
178
                    "service": "annotators/custom_entity_linking/service_configs/custom-entity-linking"
179
                }
180
            },
181
            "combined_classification": {
182
                "connector": {
183
                    "protocol": "http",
184
                    "timeout": 3.0,
185
                    "url": "http://combined-classification:8087/model"
186
                },
187
                "dialog_formatter": "state_formatters.dp_formatters:preproc_last_human_utt_dialog_w_hist",
188
                "response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
189
                "previous_services": [],
190
                "state_manager_method": "add_annotation",
191
                "is_enabled": true,
192
                "source": {
193
                    "component": "components/PbLNvh4hrvs47rPaf2bfYQ.yml",
194
                    "service": "annotators/combined_classification/service_configs/combined-classification"
195
                }
196
            }
197
        },
198
        "response_annotators": {
199
            "sentseg": {
200
                "connector": {
201
                    "protocol": "http",
202
                    "timeout": 1.5,
203
                    "url": "http://sentseg:8011/sentseg"
204
                },
205
                "dialog_formatter": "state_formatters.dp_formatters:last_bot_utt_dialog",
206
                "response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
207
                "previous_services": [
208
                    "response_annotator_selectors"
209
                ],
210
                "state_manager_method": "add_annotation_prev_bot_utt",
211
                "is_enabled": true,
212
                "source": {
213
                    "component": "components/1Q9QXih1U2zhCpVm9zxdsA.yml",
214
                    "service": "annotators/SentSeg/service_configs/sentseg"
215
                }
216
            },
217
            "ner": {
218
                "connector": {
219
                    "protocol": "http",
220
                    "timeout": 1.5,
221
                    "url": "http://ner:8021/ner"
222
                },
223
                "dialog_formatter": "state_formatters.dp_formatters:ner_formatter_last_bot_dialog",
224
                "response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
225
                "previous_services": [
226
                    "response_annotator_selectors",
227
                    "response_annotators.sentseg"
228
                ],
229
                "state_manager_method": "add_annotation_prev_bot_utt",
230
                "is_enabled": true,
231
                "source": {
232
                    "component": "components/3RDNPBdybjBlSQZqcc7nGQ.yml",
233
                    "service": "annotators/NER_deeppavlov/service_configs/ner"
234
                }
235
            }
236
        },
237
        "response_annotator_selectors": {
238
            "connector": {
239
                "protocol": "python",
240
                "class_name": "skill_selectors.post_annotator_selector.connector:PostAnnotatorSelectorConnector",
241
                "annotator_names": [
242
                    "sentseg",
243
                    "ner"
244
                ]
245
            },
246
            "response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
247
            "tags": [
248
                "selector"
249
            ],
250
            "is_enabled": true,
251
            "source": {
252
                "component": "components/LXrJDIf43gwNmPMNXG5Eg.yml",
253
                "service": "services/response_annotator_selectors/service_configs/agent"
254
            }
255
        },
256
        "candidate_annotators": {
257
            "sentence_ranker": {
258
                "connector": {
259
                    "protocol": "http",
260
                    "timeout": 1.0,
261
                    "url": "http://sentence-ranker:8128/respond"
262
                },
263
                "dialog_formatter": "state_formatters.dp_formatters:sentence_ranker_formatter",
264
                "response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
265
                "previous_services": [
266
                    "skills"
267
                ],
268
                "state_manager_method": "add_hypothesis_annotation_batch",
269
                "is_enabled": true,
270
                "source": {
271
                    "component": "components/XGwmAHtAOu0NDqqG3QCJw.yml",
272
                    "service": "services/sentence_ranker/service_configs/sentence-ranker"
273
                }
274
            },
275
            "entity_detection": {
276
                "connector": {
277
                    "protocol": "http",
278
                    "timeout": 2.0,
279
                    "url": "http://entity-detection:8103/respond_batch"
280
                },
281
                "dialog_formatter": "state_formatters.dp_formatters:hypotheses_list",
282
                "response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
283
                "previous_services": [
284
                    "skills"
285
                ],
286
                "state_manager_method": "add_hypothesis_annotation_batch",
287
                "is_enabled": true,
288
                "source": {
289
                    "component": "components/05PqJXVd7gV7DqslN5z3A.yml",
290
                    "service": "annotators/entity_detection/service_configs/entity-detection"
291
                }
292
            },
293
            "combined_classification": {
294
                "connector": {
295
                    "protocol": "http",
296
                    "timeout": 2.0,
297
                    "url": "http://combined-classification:8087/batch_model"
298
                },
299
                "dialog_formatter": "state_formatters.dp_formatters:hypothesis_histories_list",
300
                "response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
301
                "previous_services": [
302
                    "skills"
303
                ],
304
                "state_manager_method": "add_hypothesis_annotation_batch",
305
                "is_enabled": true,
306
                "source": {
307
                    "component": "components/PbLNvh4hrvs47rPaf2bfYQ.yml",
308
                    "service": "annotators/combined_classification/service_configs/combined-classification"
309
                }
310
            },
311
            "user_knowledge_memorizer": {
312
                "connector": {
313
                    "protocol": "http",
314
                    "timeout": 2.0,
315
                    "url": "http://user-knowledge-memorizer:8020/respond"
316
                },
317
                "dialog_formatter": "state_formatters.dp_formatters:last_human_annotated_utterance",
318
                "response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
319
                "previous_services": [
320
                    "annotators.property_extraction",
321
                    "annotators.custom_entity_linking"
322
                ],
323
                "state_manager_method": "add_annotation",
324
                "is_enabled": true,
325
                "source": {
326
                    "component": "components/GevC8fAKjHFtY48HoDyXf8.yml",
327
                    "service": "annotators/user_knowledge_memorizer/service_configs/user-knowledge-memorizer"
328
                }
329
            }
330
        },
331
        "skill_selectors": {
332
            "rule_based_selector": {
333
                "connector": {
334
                    "protocol": "python",
335
                    "class_name": "skill_selectors.rule_based_selector.connector:RuleBasedSkillSelectorConnector"
336
                },
337
                "dialog_formatter": "state_formatters.dp_formatters:base_skill_selector_formatter_dialog",
338
                "response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
339
                "previous_services": [
340
                    "annotators"
341
                ],
342
                "tags": [
343
                    "selector"
344
                ],
345
                "is_enabled": true,
346
                "source": {
347
                    "component": "components/xSwFvtAUdvtQosvzpb7oMg.yml",
348
                    "service": "skill_selectors/rule_based_selector/service_configs/agent"
349
                }
350
            }
351
        },
352
        "skills": {
353
            "dummy_skill": {
354
                "connector": {
355
                    "protocol": "python",
356
                    "class_name": "skills.dummy_skill.connector:DummySkillConnector"
357
                },
358
                "dialog_formatter": "state_formatters.dp_formatters:utt_sentrewrite_modified_last_dialog",
359
                "response_formatter": "state_formatters.dp_formatters:skill_with_attributes_formatter_service",
360
                "previous_services": [
361
                    "skill_selectors"
362
                ],
363
                "state_manager_method": "add_hypothesis",
364
                "is_enabled": true,
365
                "source": {
366
                    "component": "components/uYkoK0vRp4bbIg9akI1yw.yml",
367
                    "service": "skills/dummy_skill/service_configs/agent"
368
                }
369
            },
370
            "dff_user_kg_skill": {
371
                "connector": {
372
                    "protocol": "http",
373
                    "timeout": 2.0,
374
                    "url": "http://dff-user-kg-skill:8028/respond"
375
                },
376
                "dialog_formatter": "state_formatters.dp_formatters:dff_user_kg_skill_formatter",
377
                "response_formatter": "state_formatters.dp_formatters:skill_with_attributes_formatter_service",
378
                "previous_services": [
379
                    "skill_selectors"
380
                ],
381
                "state_manager_method": "add_hypothesis",
382
                "is_enabled": true,
383
                "source": {
384
                    "component": "components/pmXHLkbPWpFqq37vtWCuS.yml",
385
                    "service": "skills/dff_user_kg_skill/service_configs/dff-user-kg-skill"
386
                }
387
            },
388
            "dff_travel_italy_skill": {
389
                "connector": {
390
                    "protocol": "http",
391
                    "timeout": 2.0,
392
                    "url": "http://dff-travel-italy-skill:8025/respond"
393
                },
394
                "dialog_formatter": "state_formatters.dp_formatters:dff_travel_italy_skill_formatter",
395
                "response_formatter": "state_formatters.dp_formatters:skill_with_attributes_formatter_service",
396
                "previous_services": [
397
                    "skill_selectors"
398
                ],
399
                "state_manager_method": "add_hypothesis",
400
                "is_enabled": true,
401
                "source": {
402
                    "component": "components/FahT3rhiav1Bg2Q17wvE.yml",
403
                    "service": "skills/dff_travel_italy_skill/service_configs/dff-travel-italy-skill"
404
                }
405
            }
406
        },
407
        "response_selectors": {
408
            "response_selector": {
409
                "connector": {
410
                    "protocol": "http",
411
                    "timeout": 1.0,
412
                    "url": "http://ranking-based-response-selector:8002/respond"
413
                },
414
                "dialog_formatter": "state_formatters.dp_formatters:cropped_dialog",
415
                "response_formatter": "state_formatters.dp_formatters:base_response_selector_formatter_service",
416
                "previous_services": [
417
                    "candidate_annotators"
418
                ],
419
                "tags": [
420
                    "selector"
421
                ],
422
                "state_manager_method": "add_bot_utterance",
423
                "is_enabled": true,
424
                "source": {
425
                    "component": "components/YJzc7NwGrLmKp6gfZJh7X1.yml",
426
                    "service": "response_selectors/ranking_based_response_selector/service_configs/ranking-based-response-selector"
427
                }
428
            }
429
        }
430
    },
431
    "metadata": {
432
        "display_name": "Dream KG",
433
        "author": "DeepPavlov",
434
        "description": "Distribution that utilizes Knowledge Graph",
435
        "version": "0.1.0",
436
        "date_created": "2022-12-12T12:12:00",
437
        "ram_usage": "50 GB",
438
        "gpu_usage": "50 GB",
439
        "disk_usage": "50 GB"
440
    }
441
}

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.