-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
services/agent_services/service_configs/management_assistant/environment.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
WAIT_HOSTS: "sentseg:8011, ranking-based-response-selector:8002, combined-classification:8087, | ||
sentence-ranker:8128, prompt-selector:8135, openai-api-chatgpt:8145, | ||
dff-roles-prompted-skill:8185" | ||
WAIT_HOSTS_TIMEOUT: ${WAIT_TIMEOUT:-1000} | ||
HIGH_PRIORITY_INTENTS: 1 | ||
RESTRICTION_FOR_SENSITIVE_CASE: 1 | ||
ALWAYS_TURN_ON_ALL_SKILLS: 0 | ||
LANGUAGE: EN | ||
FALLBACK_FILE: fallbacks_dream_en.json |
20 changes: 20 additions & 0 deletions
20
services/agent_services/service_configs/management_assistant/service.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: agent | ||
endpoints: | ||
- respond | ||
compose: | ||
command: sh -c 'bin/wait && python -m deeppavlov_agent.run agent.pipeline_config=assistant_dists/management_assistant/pipeline_conf.json' | ||
environment: | ||
WAIT_HOSTS: "sentseg:8011, ranking-based-response-selector:8002, combined-classification:8087, | ||
sentence-ranker:8128, prompt-selector:8135, openai-api-chatgpt:8145, | ||
dff-roles-prompted-skill:8185" | ||
WAIT_HOSTS_TIMEOUT: ${WAIT_TIMEOUT:-1000} | ||
HIGH_PRIORITY_INTENTS: 1 | ||
RESTRICTION_FOR_SENSITIVE_CASE: 1 | ||
ALWAYS_TURN_ON_ALL_SKILLS: 0 | ||
LANGUAGE: EN | ||
FALLBACK_FILE: fallbacks_dream_en.json | ||
volumes: | ||
- .:/dp-agent | ||
ports: | ||
- 4242:4242 | ||
proxy: null |
8 changes: 8 additions & 0 deletions
8
skills/dff_template_prompted_skill/service_configs/dff-roles-prompted-skill/environment.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
SERVICE_PORT: 8185 | ||
SERVICE_NAME: dff_roles_prompted_skill | ||
PROMPT_FILE: common/prompts/roles.json | ||
GENERATIVE_SERVICE_URL: http://openai-api-chatgpt:8145/respond | ||
GENERATIVE_SERVICE_CONFIG: openai-chatgpt.json | ||
GENERATIVE_TIMEOUT: 120 | ||
N_UTTERANCES_CONTEXT: 7 | ||
ENVVARS_TO_SEND: OPENAI_API_KEY,OPENAI_ORGANIZATION |
31 changes: 31 additions & 0 deletions
31
skills/dff_template_prompted_skill/service_configs/dff-roles-prompted-skill/service.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: dff-roles-prompted-skill | ||
endpoints: | ||
- respond | ||
compose: | ||
env_file: | ||
- .env | ||
- .env_secret | ||
build: | ||
args: | ||
SERVICE_PORT: 8185 | ||
SERVICE_NAME: dff_roles_prompted_skill | ||
PROMPT_FILE: common/prompts/roles.json | ||
GENERATIVE_SERVICE_URL: http://openai-api-chatgpt:8145/respond | ||
GENERATIVE_SERVICE_CONFIG: openai-chatgpt.json | ||
GENERATIVE_TIMEOUT: 120 | ||
N_UTTERANCES_CONTEXT: 7 | ||
ENVVARS_TO_SEND: OPENAI_API_KEY,OPENAI_ORGANIZATION | ||
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: | ||
- 8185:8185 | ||
proxy: null |