Skip to content

Commit

Permalink
Feat/general pm skill (#88)
Browse files Browse the repository at this point in the history
* feat: general pm skill

* feat: general pm prompt

* fix: cards

* fix: prompt

* fix: description

* fix: config
  • Loading branch information
dilyararimovna authored Oct 20, 2023
1 parent 4119745 commit 61a3434
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 13 deletions.
4 changes: 2 additions & 2 deletions assistant_dists/management_assistant/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ services:
- "./common:/src/common"
ports:
- 8145:8145
dff-roles-prompted-skill:
dff-general-pm-prompted-skill:
volumes:
- "./skills/dff_template_prompted_skill:/src"
- "./common:/src/common"
ports:
- 8185:8185
- 8189:8189
dff-meeting-analysis-skill:
volumes:
- "./skills/dff_meeting_analysis_skill:/src"
Expand Down
10 changes: 5 additions & 5 deletions assistant_dists/management_assistant/docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
command: sh -c 'bin/wait && python -m deeppavlov_agent.run agent.pipeline_config=assistant_dists/management_assistant/pipeline_conf.json'
environment:
WAIT_HOSTS: "llm-based-response-selector:8003, combined-classification:8087, sentence-ranker:8128,
prompt-selector:8135, openai-api-chatgpt:8145, dff-roles-prompted-skill:8185, dff-meeting-analysis-skill:8186,
prompt-selector:8135, openai-api-chatgpt:8145, dff-general-pm-prompted-skill:8189, dff-meeting-analysis-skill:8186,
doc-processor-from-atts:8188, llm-based-skill-selector:8182"
WAIT_HOSTS_TIMEOUT: ${WAIT_TIMEOUT:-1000}
HIGH_PRIORITY_INTENTS: 1
Expand Down Expand Up @@ -161,13 +161,13 @@ services:
reservations:
memory: 100M

dff-roles-prompted-skill:
dff-general-pm-prompted-skill:
env_file: [ .env, .env_secret ]
build:
args:
SERVICE_PORT: 8185
SERVICE_NAME: dff_roles_prompted_skill
PROMPT_FILE: common/prompts/roles.json
SERVICE_PORT: 8189
SERVICE_NAME: dff_general_pm_prompted_skill
PROMPT_FILE: common/prompts/general_pm.json
GENERATIVE_SERVICE_URL: http://openai-api-chatgpt:8145/respond
GENERATIVE_SERVICE_CONFIG: openai-chatgpt-long.json
GENERATIVE_TIMEOUT: 120
Expand Down
10 changes: 5 additions & 5 deletions assistant_dists/management_assistant/pipeline_conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@
"service": "skills/dff_meeting_analysis_skill/service_configs/dff-meeting-analysis-skill"
}
},
"dff_roles_prompted_skill": {
"dff_general_pm_prompted_skill": {
"connector": {
"protocol": "http",
"timeout": 120.0,
"url": "http://dff-roles-prompted-skill:8185/respond"
"url": "http://dff-general-pm-prompted-skill:8189/respond"
},
"dialog_formatter": {
"name": "state_formatters.dp_formatters:dff_prompted_skill_formatter",
"skill_name": "dff_roles_prompted_skill"
"skill_name": "dff_general_pm_prompted_skill"
},
"response_formatter": "state_formatters.dp_formatters:skill_with_attributes_formatter_service",
"previous_services": [
Expand All @@ -151,8 +151,8 @@
"state_manager_method": "add_hypothesis",
"is_enabled": true,
"source": {
"component": "components/skjdfhiskenr203r.yml",
"service": "skills/dff_template_prompted_skill/service_configs/dff-roles-prompted-skill"
"component": "components/sdgvjhse8fgy3wq4.yml",
"service": "skills/dff_template_prompted_skill/service_configs/dff-general-pm-prompted-skill"
}
},
"dummy_skill": {
Expand Down
4 changes: 4 additions & 0 deletions common/prompts/general_pm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prompt": "You are a Product Manager Assistant. \n\nProduct Manager's responsibilities are from tracking sales to managing the product, advertising and promotions. Product Manager influences the product and is responsible for its quality and business metrics. Usually, Product Manager should be able to conduct market analysis, test product hypotheses, analyze user experience. Product Manager can also build monetization models, compute costs and P&L. Product Manager can also work on strategy and planning, prioritize tasks, develop methodologies and manage the team.\nAnother skill of this Assistant is to talk about meeting transcripts, summarize them, extract key decisions, problems, completed and current tasks.\n\nRules:\n1. At the beginning of the dialog, greet the user, introduce yourself, inform what you can do, for example, say \"Hi! I am a Product Manager Assistant. I am here to help you with your professional tasks. I also can discuss meeting transcripts.\".\n2. Refuse to discuss non-professional topics, for example, say \"I appreciate your engagingness but I am a professional assistant. Ask me something that can help you in your work.\".\n3. If user asks for some complicated task or question, stop and take a deep breath, then think step by step.\n4. If user suggests some feature request, thank the user and continue the dialog asking what else you can do for the user.\n\nINSTRUCTION: Now respond to a user. Be concise, but detailed when needed.",
"goals": "This agent provides responses on all kind of questions (except of about meeting transcripts), greets user, gives fallbacks, explains capabilities of the assistant, accepts feature requests."
}
2 changes: 1 addition & 1 deletion components.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,6 @@
8186 dff-meeting-analysis-skill
8187 universal-llm-based-skill-selector
8188 doc-processor-from-atts,doc-processor-from-args
8189
8189 dff-general-pm-prompted-skill
8190
8191
27 changes: 27 additions & 0 deletions components/sdgvjhse8fgy3wq4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: dff_general_pm_prompted_skill
display_name: General PM Skill
component_type: Generative
model_type: NN-based
is_customizable: true
author: publisher@deeppavlov.ai
description: This agent provides responses on all kind of questions (except of about meeting transcripts),
greets user, gives fallbacks, explains abilities of the assistant, accepts feature requests.
ram_usage: 100M
gpu_usage: null
group: skills
connector:
protocol: http
timeout: 120.0
url: http://dff-general-pm-prompted-skill:8189/respond
dialog_formatter:
name: state_formatters.dp_formatters:dff_prompted_skill_formatter
skill_name: dff_general_pm_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-general-pm-prompted-skill
date_created: '2023-03-16T09:45:32'
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SERVICE_PORT: 8189
SERVICE_NAME: dff_general_pm_prompted_skill
PROMPT_FILE: common/prompts/general_pm.json
GENERATIVE_SERVICE_URL: http://openai-api-chatgpt:8145/respond
GENERATIVE_SERVICE_CONFIG: openai-chatgpt-long.json
GENERATIVE_TIMEOUT: 120
N_UTTERANCES_CONTEXT: 7
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: dff-general-pm-prompted-skill
endpoints:
- respond
compose:
env_file:
- .env
- .env_secret
build:
args:
SERVICE_PORT: 8189
SERVICE_NAME: dff_general_pm_prompted_skill
PROMPT_FILE: common/prompts/general_pm.json
GENERATIVE_SERVICE_URL: http://openai-api-chatgpt:8145/respond
GENERATIVE_SERVICE_CONFIG: openai-chatgpt-long.json
GENERATIVE_TIMEOUT: 120
N_UTTERANCES_CONTEXT: 7
context: .
dockerfile: ./skills/dff_template_prompted_skill/Dockerfile
deploy:
resources:
limits:
memory: 128M
reservations:
memory: 128M
volumes:
- ./skills/dff_template_prompted_skill:/src
- ./common:/src/common
ports:
- 8189:8189
proxy: null

0 comments on commit 61a3434

Please sign in to comment.