Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: template dist and description #435

Merged
merged 1 commit into from
Apr 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assistant_dists/template_template_prompted/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ If one wants to create a new prompted distribution (distribution containing prom
"connector": {
"protocol": "http",
"timeout": 4.5,
"url": "http://dff-template-template-gpt-j-prompted-skill:template_port/respond"
"url": "http://dff-template-template-prompted-skill:template_port/respond"
},
"dialog_formatter": "state_formatters.dp_formatters:dff_template_template_prompted_skill_formatter",
"response_formatter": "state_formatters.dp_formatters:skill_with_attributes_formatter_service",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ services:
PROMPT_FILE: common/prompts/template_template.json
GENERATIVE_SERVICE_URL: template_service_url
GENERATIVE_SERVICE_CONFIG: default_generative_config.json
GENERATIVE_TIMEOUT: 7
GENERATIVE_TIMEOUT: 10
N_UTTERANCES_CONTEXT: 7
ENVVARS_TO_SEND: OPENAI_API_KEY,OPENAI_ORGANIZATION
context: .
Expand Down
10 changes: 5 additions & 5 deletions assistant_dists/template_template_prompted/pipeline_conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@
"dff_template_template_prompted_skill": {
"connector": {
"protocol": "http",
"timeout": 5.0,
"url": "http://dff-template-template-gpt-j-prompted-skill:template_port/respond"
"timeout": 10.0,
"url": "http://dff-template-template-prompted-skill:template_port/respond"
},
"dialog_formatter": "state_formatters.dp_formatters:dff_template_template_prompted_skill_formatter",
"response_formatter": "state_formatters.dp_formatters:skill_with_attributes_formatter_service",
Expand All @@ -169,7 +169,7 @@
"is_enabled": true,
"source": {
"directory": "skills/dff_template_prompted_skill",
"container": "dff-template-template-gpt-j-prompted-skill",
"container": "dff-template-template-prompted-skill",
"endpoint": "respond"
}
},
Expand Down Expand Up @@ -254,9 +254,9 @@
}
},
"metadata": {
"display_name": "GPT-J-based Prompted Dream",
"display_name": "Template Prompted Dream",
"author": "DeepPavlov",
"description": "Chatbot using prompted generative skill. This is a generative-based chatbot that uses GPT-J service from transformers to generate responses. The considered prompt is `common/template_template.json`.",
"description": "Template Assistant using prompted generative skill. The considered prompt is `common/template_template.json`.",
"version": "0.0.1",
"date_created": "2023-01-10T02:00:00",
"ram_usage": "50 GB",
Expand Down
13 changes: 7 additions & 6 deletions skills/dff_template_prompted_skill/component.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dff-my-template-prompted-skill:
dff-template-template-prompted-skill:
name: dff_my_template_prompted_skill
display_name: My Template Skill
container_name: dff-my-template-prompted-skill
container_name: dff-template-template-prompted-skill
component_type: Generative
model_type: NN-based
is_customizable: true
Expand All @@ -15,12 +15,13 @@ dff-my-template-prompted-skill:
endpoint: respond
build_args:
SERVICE_PORT: template_port
SERVICE_NAME: dff_my_template_prompted_skill
PROMPT_FILE: common/prompts/my_template.json
SERVICE_NAME: dff_template_template_prompted_skill
PROMPT_FILE: common/prompts/template_template.json
GENERATIVE_SERVICE_URL: template_service_url
GENERATIVE_SERVICE_CONFIG: default_generative_config.json
GENERATIVE_TIMEOUT: 5
N_UTTERANCES_CONTEXT: 3
GENERATIVE_TIMEOUT: 10
N_UTTERANCES_CONTEXT: 7
ENVVARS_TO_SEND: OPENAI_API_KEY,OPENAI_ORGANIZATION
date_created: template_date
dff-ai-faq-prompted-skill:
name: dff_ai_faq_prompted_skill
Expand Down
6 changes: 3 additions & 3 deletions skills/dff_template_prompted_skill/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dff-my-template-prompted-skill:
dff-template-template-prompted-skill:
- group: skills
connector:
protocol: http
timeout: 5.0
url: http://dff-my-template-prompted-skill:template_port/respond
timeout: 10.0
url: http://dff-template-template-prompted-skill:template_port/respond
dialog_formatter: state_formatters.dp_formatters:dff_prompted_skill_formatter
response_formatter: state_formatters.dp_formatters:skill_with_attributes_formatter_service
previous_services:
Expand Down