dream
366 строк · 15.9 Кб
1{
2"connectors": {
3"sentseg": {
4"protocol": "http",
5"timeout": 1.5,
6"url": "http://sentseg:8011/sentseg"
7}
8},
9"services": {
10"last_chance_service": {
11"connector": {
12"protocol": "python",
13"class_name": "PredefinedTextConnector",
14"response_text": "Sorry, something went wrong inside. Please tell me, what did you say.",
15"annotations": {
16"sentseg": {
17"punct_sent": "Sorry, something went wrong inside. Please tell me, what did you say.",
18"segments": [
19"Sorry, something went wrong inside.",
20"Please tell me, what did you say."
21]
22},
23"ner": [
24[]
25]
26}
27},
28"state_manager_method": "add_bot_utterance_last_chance",
29"tags": [
30"last_chance"
31],
32"is_enabled": true,
33"source": {
34"component": "components/eOhfdjs72cmkY.yml",
35"service": "services/agent_services/service_configs/dream_emotion"
36}
37},
38"timeout_service": {
39"connector": {
40"protocol": "python",
41"class_name": "PredefinedTextConnector",
42"response_text": "Sorry, I need to think more on that. Let's talk about something else.",
43"annotations": {
44"sentseg": {
45"punct_sent": "Sorry, I need to think more on that. Let's talk about something else.",
46"segments": [
47"Sorry, I need to think more on that.",
48"Let's talk about something else."
49]
50},
51"ner": [
52[]
53]
54}
55},
56"state_manager_method": "add_bot_utterance_last_chance",
57"tags": [
58"timeout"
59],
60"is_enabled": true,
61"source": {
62"component": "components/emkDJShe389jkdoRi.yml",
63"service": "services/agent_services/service_configs/dream_emotion"
64}
65},
66"annotators": {
67"sentseg": {
68"connector": {
69"protocol": "http",
70"timeout": 1.5,
71"url": "http://sentseg:8011/sentseg"
72},
73"dialog_formatter": "state_formatters.dp_formatters:preproc_last_human_utt_dialog",
74"response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
75"previous_services": [],
76"state_manager_method": "add_annotation",
77"is_enabled": true,
78"source": {
79"component": "components/gM4fEjvVqLlSRRRkQfds2g.yml",
80"service": "annotators/SentSeg/service_configs/sentseg"
81}
82},
83"prompt_goals_collector": {
84"connector": {
85"protocol": "http",
86"timeout": 2.0,
87"url": "http://prompt-selector:8135/collect_goals"
88},
89"dialog_formatter": "state_formatters.dp_formatters:prompts_goals_collector_formatter",
90"response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
91"previous_services": [],
92"state_manager_method": "update_attributes",
93"is_enabled": true,
94"source": {
95"component": "components/tK0hTk4TyMj7.yml",
96"service": "annotators/prompt_selector/service_configs/dream_persona_openai_prompted"
97}
98},
99"prompt_selector": {
100"connector": {
101"protocol": "http",
102"timeout": 2.0,
103"url": "http://prompt-selector:8135/respond"
104},
105"dialog_formatter": "state_formatters.dp_formatters:context_formatter_dialog",
106"response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
107"previous_services": [
108"annotators.prompt_goals_collector"
109],
110"state_manager_method": "add_annotation",
111"is_enabled": true,
112"source": {
113"component": "components/tK0hTk4TyMj7.yml",
114"service": "annotators/prompt_selector/service_configs/dream_persona_openai_prompted"
115}
116},
117"combined_classification": {
118"connector": {
119"protocol": "http",
120"timeout": 3.0,
121"url": "http://combined-classification:8087/model"
122},
123"dialog_formatter": "state_formatters.dp_formatters:preproc_last_human_utt_dialog_w_hist",
124"response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
125"previous_services": [],
126"state_manager_method": "add_annotation",
127"is_enabled": true,
128"source": {
129"component": "components/PbLNvh4hrvs47rPaf2bfYQ.yml",
130"service": "annotators/combined_classification/service_configs/combined-classification"
131}
132},
133"bot_emotion_classifier": {
134"connector": {
135"protocol": "http",
136"timeout": 3.0,
137"url": "http://bot-emotion-classifier:8051/model"
138},
139"dialog_formatter": "state_formatters.dp_formatters:user_emotion_bot_mood_formatter",
140"response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
141"previous_services": [
142"annotators.combined_classification"
143],
144"required_previous_services": [
145"annotators.combined_classification"
146],
147"state_manager_method": "add_annotation_prev_bot_utt",
148"is_enabled": true,
149"source": {
150"component": "components/uKasd89kldsIK0Pd.yml",
151"service": "annotators/bot_emotion_classifier/service_configs/bot-emotion-classifier"
152}
153}
154},
155"response_annotators": {
156"sentseg": {
157"connector": {
158"protocol": "http",
159"timeout": 1.5,
160"url": "http://sentseg:8011/sentseg"
161},
162"dialog_formatter": "state_formatters.dp_formatters:last_bot_utt_dialog",
163"response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
164"previous_services": [
165"response_annotator_selectors"
166],
167"state_manager_method": "add_annotation_prev_bot_utt",
168"is_enabled": true,
169"source": {
170"component": "components/1Q9QXih1U2zhCpVm9zxdsA.yml",
171"service": "annotators/SentSeg/service_configs/sentseg"
172}
173}
174},
175"response_annotator_selectors": {
176"connector": {
177"protocol": "python",
178"class_name": "skill_selectors.post_annotator_selector.connector:PostAnnotatorSelectorConnector",
179"annotator_names": [
180"sentseg",
181"ner"
182]
183},
184"response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
185"tags": [
186"selector"
187],
188"is_enabled": true,
189"source": {
190"component": "components/LXrJDIf43gwNmPMNXG5Eg.yml",
191"service": "services/response_annotator_selectors/service_configs/agent"
192}
193},
194"candidate_annotators": {
195"combined_classification": {
196"connector": {
197"protocol": "http",
198"timeout": 2.0,
199"url": "http://combined-classification:8087/batch_model"
200},
201"dialog_formatter": "state_formatters.dp_formatters:hypothesis_histories_list",
202"response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
203"previous_services": [
204"skills"
205],
206"state_manager_method": "add_hypothesis_annotation_batch",
207"is_enabled": true,
208"source": {
209"component": "components/PbLNvh4hrvs47rPaf2bfYQ.yml",
210"service": "annotators/combined_classification/service_configs/combined-classification"
211}
212},
213"sentence_ranker": {
214"connector": {
215"protocol": "http",
216"timeout": 1.0,
217"url": "http://sentence-ranker:8128/respond"
218},
219"dialog_formatter": "state_formatters.dp_formatters:sentence_ranker_formatter",
220"response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
221"previous_services": [
222"skills"
223],
224"state_manager_method": "add_hypothesis_annotation_batch",
225"is_enabled": true,
226"source": {
227"component": "components/XGwmAHtAOu0NDqqG3QCJw.yml",
228"service": "services/sentence_ranker/service_configs/sentence-ranker"
229}
230},
231"emotional_bot_response": {
232"connector": {
233"protocol": "http",
234"timeout": 30.0,
235"url": "http://emotional-bot-response:8050/respond_batch"
236},
237"dialog_formatter": "state_formatters.dp_formatters:bot_mood_emotion_formatter",
238"response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
239"previous_services": [
240"skills"
241],
242"state_manager_method": "add_hypothesis_annotation_batch",
243"is_enabled": true,
244"source": {
245"component": "components/fuipwahef749384h2e.yml",
246"service": "annotators/emotional_bot_response/service_configs/emotional-bot-response"
247}
248}
249},
250"skill_selectors": {
251"description_based_skill_selector": {
252"connector": {
253"protocol": "python",
254"class_name": "skill_selectors.description_based_skill_selector.connector:DescriptionBasedSkillSelectorConnector"
255},
256"dialog_formatter": "state_formatters.dp_formatters:base_skill_selector_formatter_dialog",
257"response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
258"previous_services": [
259"annotators"
260],
261"tags": [
262"selector"
263],
264"is_enabled": true,
265"source": {
266"component": "components/dfsw4bji8bgjq2.yml",
267"service": "skill_selectors/description_based_skill_selector/service_configs/agent"
268}
269}
270},
271"skills": {
272"dff_dream_persona_prompted_skill": {
273"connector": {
274"protocol": "http",
275"timeout": 120.0,
276"url": "http://dff-dream-persona-chatgpt-prompted-skill:8137/respond"
277},
278"dialog_formatter": {
279"name": "state_formatters.dp_formatters:dff_prompted_skill_formatter",
280"skill_name": "dff_dream_persona_prompted_skill"
281},
282"response_formatter": "state_formatters.dp_formatters:skill_with_attributes_formatter_service",
283"previous_services": [
284"skill_selectors"
285],
286"state_manager_method": "add_hypothesis",
287"is_enabled": true,
288"source": {
289"component": "components/W6hdAGshQyMwdQukRXXuKA.yml",
290"service": "skills/dff_template_prompted_skill/service_configs/dff-dream-persona-chatgpt-prompted-skill"
291}
292},
293"dummy_skill": {
294"connector": {
295"protocol": "python",
296"class_name": "skills.dummy_skill.connector:DummySkillConnector"
297},
298"dialog_formatter": "state_formatters.dp_formatters:utt_sentrewrite_modified_last_dialog",
299"response_formatter": "state_formatters.dp_formatters:skill_with_attributes_formatter_service",
300"previous_services": [
301"skill_selectors"
302],
303"state_manager_method": "add_hypothesis",
304"is_enabled": true,
305"source": {
306"component": "components/uYkoK0vRp4bbIg9akI1yw.yml",
307"service": "skills/dummy_skill/service_configs/agent"
308}
309},
310"dff_dream_faq_prompted_skill": {
311"connector": {
312"protocol": "http",
313"timeout": 120.0,
314"url": "http://dff-dream-faq-prompted-skill:8170/respond"
315},
316"dialog_formatter": {
317"name": "state_formatters.dp_formatters:dff_prompted_skill_formatter",
318"skill_name": "dff_dream_faq_prompted_skill"
319},
320"response_formatter": "state_formatters.dp_formatters:skill_with_attributes_formatter_service",
321"previous_services": [
322"skill_selectors"
323],
324"state_manager_method": "add_hypothesis",
325"is_enabled": true,
326"source": {
327"component": "components/jFmKPqMJh0.yml",
328"service": "skills/dff_template_prompted_skill/service_configs/dff-dream-faq-prompted-skill"
329}
330}
331},
332"response_selectors": {
333"response_selector": {
334"connector": {
335"protocol": "http",
336"timeout": 1.0,
337"url": "http://emotion-ranking-based-response-selector:8048/respond"
338},
339"dialog_formatter": "state_formatters.dp_formatters:cropped_dialog",
340"response_formatter": "state_formatters.dp_formatters:base_response_selector_formatter_service",
341"previous_services": [
342"candidate_annotators"
343],
344"state_manager_method": "add_bot_utterance",
345"tags": [
346"selector"
347],
348"is_enabled": true,
349"source": {
350"component": "components/lsaHJAS68dskjHfslkdj2.yml",
351"service": "response_selectors/emotion_ranking_based_response_selector/service_configs/emotion-ranking-based-response-selector"
352}
353}
354}
355},
356"metadata": {
357"display_name": "Dream Emotion",
358"author": "DeepPavlov",
359"description": "Version of Dream with ability to respond according to mood and emotions",
360"version": "0.1.0",
361"date_created": "2023-08-30T12:12:00",
362"ram_usage": "20 GB",
363"gpu_usage": "20 GB",
364"disk_usage": "20 GB"
365}
366}