Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Группа действий: Robin AI Core

...

Описание

The action sends a request with the specified parameters to the server with the language model.

...

Action icon

Параметры и их настройки

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
СвойствоОписаниеТипПример заполненияОбязательность заполнения поляПараметры
Context

The context for connecting to a server with a language model

Context Robin AI Core

CreateContext1.Context

Yes

Message

The query that the language model should execute.

If the number of tokens for making a request exceeds 8196, then the "Additional message" parameter must be used

String

Извлеки только предложение, которое содержит фразу.\n\n ##Фраза\n Договор вступает в силу сYes
Additional message

An additional request to the language model. It works with the result obtained from executing the command from the "Message" field

String

"Извлеки дату в формате:\n Дата окончания исполнения : день.месяц.год \n ##Пример\n Дата окончания исполнения : 05.12.2025",No
InstructionInstruction for the model that specifies the criteria for processing a message and the rules for responding to it (role, style, response form, etc.)StringОтвет должен быть сформулирован по пунктам.No
Data sourceInformation from which the model will generate responsesString
No
TemperatureRandomness of token selection to form the answer. The higher the value, the more random the answer will be. If the value is greater than 2, the answer may be characterized by excessive randomness. Valid values: from 0 and higher. The default value is 0.5Number 0,5

No

Max tokensMaximum number of tokens to generate a response. If the parameter value is small, the model may return an incomplete response. Valid values: integers greater than 0. The default value is 500Number 10No
Word repetitionLimit the repetition of words in the response. For values between 0 and 1, the model will repeat words that have already been used. If the value is greater than 1, the model will try not to repeat words. Valid values: more than 0. The default value is 0,9Number 1Нет
Результаты
Results
Result

The response to the request from the language model

String

Особые условия использования 

  • Запрос направляется на сервер с языковой моделью, настроенной в действии "Создать контекст";
  • Запрос составляется из сообщения, сообщения для доп.обработки, инструкции и источника данных. Длина запроса определяется количеством токенов: 
    • Если длина запроса меньше 8196 токенов, то запрос считается коротким. Используется запрос из поля "Сообщение", если заполено поле "Дополнительное сообщение", то оно игнорируется для коротких запросов;
    • Если длина запроса больше 8196 токенов, то запрос считается длинным. Запрос делится на части по 8196 токенов, такие части называются окна. К каждому окну исполняется запрос из поля "Сообщение". Затем ко всем полученным результатам, объединенным вместе, направляется запрос из поля "Дополнительное сообщение";
  • Если в поле "Сообщение" превышена допустимая длина запроса в 8196 токенов, то робот завершится с ошибкой "Превышено количество токенов, отправленных в запросе к языковой модели в поле "Сообщение". Необходимо уменьшить длину запроса и повторить его.";
  • Если в полях "Сообщение"+ "Инструкция"+ "Источник данных" превышена допустимая длина запроса 8196 токенов, при этом поле "Дополнительное сообщение" не заполнено, то робот завершится с ошибкой "Превышено количество токенов, отправленных в запросе к языковой модели. Необходимо уменьшить длину запроса и повторить его или использовать параметр "Дополнительное сообщение"."

Примеры заполнения параметров "Сообщение" и "Дополнительное сообщение". Использовать в случае, когда "Сообщение"+ "Инструкция"+ "Источник данных"превышают 8196 токенов.

"Сообщение": "Извлеки даты договора",
"Дополнительное сообщение": "Извлеки только первую дату договора в формате. Формат: Дата договора: дата договора",



Special conditions of use

  • The request is sent to the server with the language model configured in the Create context action;
  • A request is composed of a message, a message for additional processing, an instruction and a data source. The length of the request is determined by the number of tokens: 
    • If the request length is less than 8196 tokens, the request is considered short. The request from the "Message" field is used, if the "Additional message" field is filled in, it is ignored for short requests;
    • If the length of the request is more than 8196 tokens, the request is considered long. The request is divided into parts of 8196 tokens, such parts are called windows. To each window a query from the "Message" field is executed. Then to all received results combined together a query from the "Additional Message" field is executed;
  • If the allowed request length of 8196 tokens in the "Message" field is exceeded, the robot will terminate with the error "The number of tokens sent in the request to the language model in the "Message" field has been exceeded. You need to reduce the length of the request and repeat the request.";
  • If the allowed request length of 8196 tokens is exceeded in the fields of "Message" + "Instruction" + "Data source" and the "Additional message" field is not filled in, the robot will terminate with the error "The number of tokens sent in the request to the language model has been exceeded. You need to reduce the length of the request and repeat it or use the "Additional message" parameter."


Examples of filling in the "Message" and "Additional message" parameters. Use when "Message" + "Instruction" + "Data source" exceeds 8196 tokens.

"Message": "Extract the contract dates",
"Additional message": "Extract only the first contract date in the format",
"Format": "Contract date: contract date",

"Message": "Extract only the sentence that contains the phrase.\n\n\n ##Phrase\n The contract shall enter into force from",
"Additional message": "Extract the date in the format:\n Date of completion of performance : day.month.year \n ##Example\n Date of completion of performance "Сообщение": "Извлеки только предложение, которое содержит фразу.\n\n ##Фраза\n Договор вступает в силу с",
"Дополнительное сообщение": "Извлеки дату в формате:\n Дата окончания исполнения : день.месяц.год \n ##Пример\n Дата окончания исполнения : 05.12.2025",

"СообщениеMessage": "Извлеки номера договоров Extract contract numbers",
"Дополнительное сообщениеAdditional message": "Извлеки только первый номер договора без даты в формате. Формат: Номер договора: номер договораExtract only the first contract number without the date in the format. Format: Contract number: contract number",

"СообщениеMessage": "Извлеки строго по тексту только часть из пункта 1 Предмет договораExtract strictly from the text only the part from paragraph 1 Subject of the contract",
"Дополнительное сообщениеAdditional message": "Процитируй предмет договора. Ответ дай без дополнительных символов строго в формате Предмет договора : найденный предмет договораQuote the subject of the contract. Give the answer without additional characters strictly in the format Subject of the contract : found subject of the contract",

"Сообщение": "Извлеки только текст, который содержит сумму договора",
"Дополнительное сообщение": "Извлеки сумму договора. Ответ дай без дополнительных символов строго в формате Сумма договора : найденная сумма договора валюта",

Пример использования 1

Задача

Получить сгенерированный ответ на запрос в сервис Robin AI Core.

...

",

"Message": "Extract only the text that contains the contract amount",
"Additional message": "Extract the contract amount. Give the answer without additional characters strictly in the format Contract amount : found contract amount currency",

2 Example of use

Task

Receive a generated response to a request to the Robin AI Core service.

Solution

Воспользоваться действиями "Создать контекст", "Отправить пользовательский запрос" и "Сообщение". 

Use the actions "Create context", "Send a custom request", "Show message". 

...

Implementation

Предусловие

Preface

  1. Move the "Create context
  2. Перетащить на рабочую область действия "Создать контекст
  3. ", "
  4. Отправить пользовательский запрос" и "Сообщение"
  5. Send a custom request", and "Show message" actions to the workspace
    Image Modified
  6. Заполнить параметры действия "Создать контекст".
  7.  Image Removed
  8. Заполнить параметры действия "Отправить пользовательский запрос"
  9. Fill in the parameters of the "Create context" action. Image Added
  10. Fill in the parameters of the "Send a custom request" action
    Image Modified

  11. Перетащить на рабочую область действие "Сообщение". Заполнить параметры
  12. Move the "Show message" action to the workspace. Fill in the parameters.

    Image Modified

  13. Нажать на кнопку "Старт" в верхней панели.  

Результат

Результат выведен в диалоговое окно:

Image Removed

Программный робот отработал успешно.


  1. Click on the "Start" button in the top panel.  

Result

The program robot completed successfully. 

The result is displayed in a dialog box:

Image Added

The generated response of the model according to the specified parameters was received, as well as the chat history for further requestsПолучен сгенерированный ответ модели по заданным параметрам, а также история чата для последующих запросов.