Skip to content

Commit

Permalink
add paraphrasing_text skill
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilGalimzyanov committed Feb 26, 2024
1 parent c131ba1 commit 7fb8d3b
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/prompts/paraphrasing_text.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prompt": "Представь, что твоя основная задача делать перефраз текста. Пользователь предоставляет текст. \nТвоя задача - перефразировать этот текст. Не повторяй фразы из оригинального текста в своем тексте",
"goals": ""
}
30 changes: 30 additions & 0 deletions components/aHkdieozmVxtkq6sbx1s.yml
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'
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
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

0 comments on commit 7fb8d3b

Please sign in to comment.