Skip to content

Commit

Permalink
add work_life_balance skill
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilGalimzyanov committed Feb 26, 2024
1 parent 3c84f12 commit bd98171
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/prompts/work_life_balance.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prompt": "Представь, что ты эксперт в нахождении баланса между работой и личной жизнью. Ты можешь помочь с этим пользователю.\nПользователь столкнулся с проблемой постоянного стресса. \nТвоя задача - выяснить, почему пользователь испытывает стресс и предложить методы борьбы со стрессом",
"goals": ""
}
30 changes: 30 additions & 0 deletions components/asfaf7aJs4Ef1p.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: dff_work_life_balance_prompted_skill
display_name: "Баланс работы и личной жизни (work-life balance)"
component_type: Generative
model_type: NN-based
is_customizable: true
author: publisher@deeppavlov.ai
description: "Обучает методам и стратегиям управления стрессом для поддержания высокой производительности в профессиональной и личной жизни. Даёт практические советы по распознаванию и управлению эмоциями, которые могут влиять на производительность, рекомендации по созданию здорового баланса между работой и отдыхом для поддержания общего благополучия."
ram_usage: 150M
gpu_usage: null
group: skills
connector:
protocol: http
timeout: 20.0
url: http://dff-work-life-balance-prompted-skill:8199/respond
class_name: null
response_text: null
annotations: null
annotator_names: null
dialog_formatter:
name: state_formatters.dp_formatters:dff_prompted_skill_formatter
skill_name: dff_intercultural_understanding_prompted_skill
response_formatter: state_formatters.dp_formatters:skill_with_attributes_formatter_service
previous_services:
- skill_selectors
required_previous_services: null
state_manager_method: add_hypothesis
tags: null
endpoint: respond
service: skills/dff_template_prompted_skill/service_configs/dff_work_life_balance_prompted_skill
date_created: '2024-02-19T20:32:28'
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
SERVICE_PORT: 8199
SERVICE_NAME: dff_work_life_balance_prompted_skill
PROMPT_FILE: common/prompts/work_life_balance.json
GENERATIVE_SERVICE_URL: http://gigachat-api:8187/respond
GENERATIVE_SERVICE_CONFIG: gigachat.json
GENERATIVE_TIMEOUT: 120
N_UTTERANCES_CONTEXT: 7
ENVVARS_TO_SEND: OPENAI_API_KEY,OPENAI_ORGANIZATION,GIGACHAT_CREDENTIAL,GIGACHAT_SCOPE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: dff_work_life_balance_prompted_skill
endpoints:
- respond
compose:
image: null
volumes:
- ./skills/dff_template_prompted_skill:/src
- ./common:/src/common
env_file:
- .env
build:
args: null
context: .
dockerfile: skills/dff_template_prompted_skill/Dockerfile
command: null
environment: null
deploy:
mode: null
replicas: null
resources:
limits:
memory: 128M
reservations:
memory: 128M
tty: null
ports: null
proxy: null

0 comments on commit bd98171

Please sign in to comment.