-
Notifications
You must be signed in to change notification settings - Fork 75
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
1 parent
c131ba1
commit 7fb8d3b
Showing
4 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
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,4 @@ | ||
{ | ||
"prompt": "Представь, что твоя основная задача делать перефраз текста. Пользователь предоставляет текст. \nТвоя задача - перефразировать этот текст. Не повторяй фразы из оригинального текста в своем тексте", | ||
"goals": "" | ||
} |
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,30 @@ | ||
name: dff_paraphrasing_text_prompted_skill | ||
display_name: "Перефразирование текста" | ||
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-paraphrasing-text-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_paraphrasing_text_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_paraphrasing_text_prompted_skill | ||
date_created: '2024-02-19T20:32:28' |
8 changes: 8 additions & 0 deletions
8
...plate_prompted_skill/service_configs/dff_paraphrasing_text_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: 8199 | ||
SERVICE_NAME: dff_paraphrasing_text_prompted_skill | ||
PROMPT_FILE: common/prompts/paraphrasing_text.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 |
27 changes: 27 additions & 0 deletions
27
..._template_prompted_skill/service_configs/dff_paraphrasing_text_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,27 @@ | ||
name: dff_paraphrasing_text_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 |